body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    margin: 0;
    padding: 20px;
    color: #1f2937;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-controls {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    padding: 8px 0;
    border-radius: 12px 12px 0 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1e40af;
}

.controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    font-size: 18px;
    color: #1e40af;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.icon-btn:hover {
    color: #3b82f6;
    transform: scale(1.2);
}

.admin-only {
    display: none;
}

#save-list-btn.unsaved { color: #dc2626; }
#save-list-btn.saved { color: #10b981; }
#toggle-view-btn.grid-view { color: #10b981; }
#toggle-view-btn.list-view { color: #1e40af; }

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-bar {
    position: relative;
    width: 180px;
}

.search-bar input {
    width: 100%;
    padding: 6px 28px 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 4px rgba(59,130,246,0.4);
}

.search-bar .search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 4px;
}

.tab {
    padding: 4px 10px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.tab:hover {
    background: #d1d5db;
    color: #1e40af;
}

.tab.active {
    background: none;
    color: #1e40af;
    border-bottom: 2px solid #1e40af;
}

@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 { font-size: 16px; }

    .icon-btn { font-size: 16px; }

    .search-bar { width: 140px; }
    .search-bar input { font-size: 10px; padding: 4px 24px 4px 6px; }
    .search-bar .search-icon { font-size: 12px; right: 6px; }

    .tab { font-size: 10px; padding: 3px 6px; }
}
