* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
ttp
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-container {
    background: #2d2d3a;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #404050;
}

.search-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #404050;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #1a1a2e;
    color: #e0e0e0;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #404050;
    border-radius: 8px;
    font-size: 14px;
    background: #1a1a2e;
    color: #e0e0e0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #2d2d3a;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    border: 1px solid #404050;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.table-container {
    background: #2d2d3a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    border: 1px solid #404050;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
}

.nutrition-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nutrition-table th:first-child {
    border-top-left-radius: 15px;
}

.nutrition-table th:last-child {
    border-top-right-radius: 15px;
}

.nutrition-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #404050;
    color: #e0e0e0;
}

.nutrition-table tbody tr {
    transition: background-color 0.2s ease;
}

.nutrition-table tbody tr:hover {
    background-color: #1a1a2e;
}

.nutrition-table tbody tr:nth-child(even) {
    background-color: #21212a;
}

.nutrition-table tbody tr:nth-child(even):hover {
    background-color: #1a1a2e;
}

.category-vegetables {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.category-fruits {
    background: #FF9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.category-dairy {
    background: #2196F3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.category-protein {
    background: #9C27B0;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.category-other {
    background: #607D8B;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.potassium-high {
    color: #4CAF50;
    font-weight: bold;
}

.potassium-medium {
    color: #FFD700;
}

.potassium-low {
    color: #f44336;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .sort-controls {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .nutrition-table {
        font-size: 0.9rem;
    }

    .nutrition-table th,
    .nutrition-table td {
        padding: 8px 10px;
    }

    .container {
        padding: 15px;
    }
}

.author a {
    color: #e0e0e0;
    text-decoration: none;
}

.author a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .search-container {
        padding: 20px;
    }

    .nutrition-table th,
    .nutrition-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}
