@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #080a10;
    --bg-secondary: #121824;
    --text-primary: #f5f5f7;
    --text-secondary: #00e5ff;
    --text-muted: #7e8e9f;
    
    --accent-amber: #00e676;
    --accent-coral: #00b0ff;
    --accent-mint: #05ffc5;
    --accent-blue: #00e5ff;
    --accent-red: #ff3b30;
    
    --glass-bg: rgba(18, 24, 36, 0.45);
    --glass-border: rgba(0, 229, 255, 0.08);
    --glass-highlight: rgba(0, 229, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 10%, rgba(0, 229, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(0, 230, 118, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(0, 176, 255, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.dashboard-panel {
    padding: 2rem;
}

/* Navigation Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(11, 12, 16, 0.75);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 2.2rem;
    width: 2.2rem;
    object-fit: contain;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Typography and Headings */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Auth Pages Styling */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25);
    background: rgba(0, 0, 0, 0.3);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue));
    color: #0b0c10;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-highlight);
}

.btn-danger {
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.4);
    color: #ef5350;
}

.btn-danger:hover {
    background: rgba(239, 83, 80, 0.25);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-amber);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    font-family: var(--font-sans);
}

.btn-text:hover {
    color: var(--accent-coral);
}

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-amber);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-amber);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Essenswahl View */
.choices-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.choices-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.choices-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Dish Cards */
.dish-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-amber));
    opacity: 0.8;
}

.dish-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
}

.dish-card-header {
    margin-bottom: 1.5rem;
}

.dish-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.dish-last-eaten {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dish-last-eaten span {
    font-weight: 600;
    color: var(--accent-amber);
}

.dish-ingredients-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dish-ingredients {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.dish-actions {
    display: flex;
    gap: 1rem;
}

/* Modal Stylings */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.85);
    z-index: 1000;
    overflow-y: auto; /* Allow scrolling if modal is taller than viewport */
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    margin: auto 0; /* Center vertically if it fits, scroll if overflows */
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Compact Modal Forms to prevent vertical overflow */
.modal .form-group {
    margin-bottom: 0.85rem;
}
.modal .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}
.modal .checkbox-group {
    margin-top: 0.25rem;
}

/* AI Recommendation View */
.ai-suggestion-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: center;
}

.ai-header {
    margin-bottom: 2rem;
}

.ai-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.ai-header p {
    color: var(--text-muted);
}

.ai-pulse-icon {
    font-size: 4rem;
    margin: 1.5rem 0;
    color: var(--accent-blue);
    animation: pulse 2s infinite;
}

.ai-button-wrapper {
    margin-bottom: 2.5rem;
}

.ai-result-panel {
    display: none;
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.5s ease;
}

.ai-result-panel.active {
    display: block;
}

.ai-result-header {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 1rem;
}

.ai-result-header h3 {
    font-size: 1.4rem;
    color: #fff;
}

.ai-result-header span {
    font-size: 0.85rem;
    color: var(--accent-mint);
    font-weight: 600;
}

/* Dish List Management */
.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-sans);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-amber);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.dishes-table-container {
    overflow-x: auto;
}

.dishes-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dishes-table th {
    padding: 1rem;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.dishes-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.dishes-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-dish-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.table-ingredients {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    border: 1px solid transparent;
}

.action-btn-edit {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-blue);
    border-color: rgba(0, 229, 255, 0.2);
}

.action-btn-edit:hover {
    background: rgba(0, 229, 255, 0.2);
}

.action-btn-delete {
    background: rgba(239, 83, 80, 0.1);
    color: #ef5350;
    border-color: rgba(239, 83, 80, 0.2);
}

.action-btn-delete:hover {
    background: rgba(239, 83, 80, 0.2);
}

/* Spinner / Loading Animations */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease;
}

.alert-danger {
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: #ef5350;
}

.alert-success {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
}

.alert-warning {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.25);
    color: #ffe082;
}

.alert-info {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.25);
    color: #b2fefb;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments for Mobile & Tablets */
@media (max-width: 768px) {
    :root {
        --radius-md: 10px;
        --radius-lg: 14px;
    }

    body {
        font-size: 0.9rem;
    }

    header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem !important;
        text-align: center;
        position: relative;
    }

    .logo {
        font-size: 1.5rem !important;
        justify-content: center;
    }

    .nav-user {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-user span {
        font-size: 0.8rem;
    }

    #pwa-install-btn {
        width: 100% !important;
        margin-right: 0 !important;
        justify-content: center;
    }

    .nav-user .btn {
        width: 100% !important;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .container {
        margin: 0.75rem auto;
        padding: 0 0.75rem;
    }

    /* Horizontal scrollable tab navigation on mobile */
    .tabs-nav {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.25rem;
        padding-bottom: 0.4rem;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid var(--glass-border);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .tabs-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .tab-btn {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.6rem !important;
        flex-shrink: 0;
    }

    .tab-btn.active::after {
        bottom: -8px;
        height: 2px;
    }

    .dashboard-panel {
        padding: 1rem !important;
    }

    /* Dish Cards adjustments */
    .choices-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dish-card {
        min-height: auto;
        padding: 1.25rem;
    }

    .dish-name {
        font-size: 1.3rem;
    }

    .dish-ingredients {
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
    }

    .dish-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dish-actions .btn {
        width: 100% !important;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    /* Modal adjustments */
    .modal {
        padding: 0.75rem;
    }

    .modal-content {
        padding: 1.25rem;
        max-width: 100%;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-body {
        margin-bottom: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100% !important;
    }

    /* AI Recipe Generator */
    .ai-suggestion-container {
        padding: 1.25rem !important;
    }

    .ai-header h2 {
        font-size: 1.6rem;
    }

    .ai-pulse-icon {
        font-size: 2.5rem;
    }

    /* Table adjustments */
    .manage-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .search-bar {
        max-width: 100%;
    }

    .manage-header .btn {
        width: 100% !important;
    }

    /* Responsive Table to Cards conversion for Dishes */
    #view-gerichte .dishes-table-container {
        overflow-x: visible;
    }

    #view-gerichte .dishes-table,
    #view-gerichte .dishes-table tbody,
    #view-gerichte .dishes-table tr,
    #view-gerichte .dishes-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    #view-gerichte .dishes-table thead {
        display: none;
    }

    #view-gerichte .dishes-table tr {
        margin-bottom: 1.25rem;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    #view-gerichte .dishes-table tr:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    #view-gerichte .dishes-table td {
        border-bottom: none;
        padding: 0.5rem 0;
        text-align: left;
    }

    #view-gerichte .dishes-table td:nth-child(1) {
        /* Dish Name */
        padding-top: 0;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #view-gerichte .table-dish-name {
        font-size: 1.2rem;
        font-weight: 700;
        color: #fff;
    }

    #view-gerichte .dishes-table td:nth-child(2) {
        /* Ingredients */
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #view-gerichte .dishes-table td:nth-child(2)::before {
        content: "Zutaten";
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--accent-amber);
    }

    #view-gerichte .table-ingredients {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

    #view-gerichte .dishes-table td:nth-child(3) {
        /* Last eaten */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #view-gerichte .dishes-table td:nth-child(3)::before {
        content: "Zuletzt gegessen";
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    #view-gerichte .dishes-table td:nth-child(3) span {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    #view-gerichte .dishes-table td:nth-child(4) {
        /* Actions */
        padding-bottom: 0;
    }

    #view-gerichte .table-actions {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        width: 100%;
    }

    #view-gerichte .table-actions .action-btn-sm {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: var(--radius-md);
        text-align: center;
        justify-content: center;
        width: 100% !important;
    }

    /* Responsive Table to Cards conversion for Admin Invite Codes */
    #view-admin .dishes-table-container {
        overflow-x: visible;
    }

    #view-admin .dishes-table,
    #view-admin .dishes-table tbody,
    #view-admin .dishes-table tr,
    #view-admin .dishes-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    #view-admin .dishes-table thead {
        display: none;
    }

    #view-admin .dishes-table tr {
        margin-bottom: 1.25rem;
        padding: 1.25rem;
        border-radius: var(--radius-lg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    }

    #view-admin .dishes-table tr.code-active {
        background: rgba(129, 199, 132, 0.05);
        border: 1px solid rgba(129, 199, 132, 0.15);
    }

    #view-admin .dishes-table tr.code-used {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0.85;
    }

    #view-admin .dishes-table td {
        border-bottom: none;
        padding: 0.5rem 0;
        text-align: left;
    }

    #view-admin .dishes-table td:nth-child(1) {
        /* Code */
        padding-top: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #view-admin .dishes-table td:nth-child(1)::before {
        content: "Code";
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--accent-amber);
    }

    #view-admin .dishes-table td:nth-child(2) {
        /* Erstellt am */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.5rem;
    }

    #view-admin .dishes-table td:nth-child(2)::before {
        content: "Erstellt am";
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    #view-admin .dishes-table td:nth-child(3) {
        /* Verwendet am */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.5rem;
    }

    #view-admin .dishes-table td:nth-child(3)::before {
        content: "Verwendet am";
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    #view-admin .dishes-table td:nth-child(4) {
        /* Verwendet von */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    #view-admin .dishes-table td:nth-child(4)::before {
        content: "Verwendet von";
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    #view-admin .dishes-table td:nth-child(5) {
        /* Actions */
        padding-bottom: 0;
    }

    #view-admin .table-actions {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    #view-admin .table-actions .action-btn-sm {
        width: 100% !important;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: var(--radius-md);
        text-align: center;
        justify-content: center;
    }
}

/* Extra small screen adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.25rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Wochenplanung Styles (Refined)
   ========================================================================== */

.wochenplan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.wochenplan-title-wrapper {
    display: flex;
    flex-direction: column;
}

.wochenplan-title-wrapper h2 {
    margin-bottom: 0.25rem;
}

.wochenplan-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.wochenplan-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wochenplan-nav-btn:hover {
    background: var(--glass-highlight);
    color: var(--accent-amber);
}

.wochenplan-nav-label {
    font-weight: 600;
    font-size: 1rem;
    padding: 0 1rem;
    min-width: 250px;
    text-align: center;
    user-select: none;
}

/* Day selector calendar strip for mobile */
.wochenplan-day-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
}

.wochenplan-day-selector::-webkit-scrollbar {
    display: none; /* Hide scrollbars completely on Chrome/Safari/Opera */
}

.wochenplan-day-tab {
    flex: 0 0 calc(14.28% - 0.43rem); /* Fit 7 days exactly if space allows, or let it scroll on very small screens */
    min-width: 60px;
    background: rgba(31, 40, 51, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wochenplan-day-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.wochenplan-day-tab.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.wochenplan-day-tab.today:not(.active) {
    border-color: rgba(0, 229, 255, 0.4);
}

.wochenplan-day-tab-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.wochenplan-day-tab.active .wochenplan-day-tab-name {
    color: var(--accent-blue);
}

.wochenplan-day-tab-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Wochenplan Day Grid */
.wochenplan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.day-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: var(--transition-normal);
}

.day-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.day-card.today {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15), var(--shadow-lg);
    background: rgba(0, 229, 255, 0.04);
}

.day-card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.day-card.today .day-card-header {
    border-bottom-color: rgba(0, 229, 255, 0.2);
}

.day-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.day-card.today .day-card-title {
    color: var(--accent-amber);
}

.day-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.day-card-dishes {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Labeled actions and Column Layout for planned dish item */
.weekly-dish-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    transition: var(--transition-fast);
    gap: 0.6rem;
}

.weekly-dish-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.weekly-dish-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    color: var(--text-primary);
}

.weekly-dish-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
}

.weekly-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.weekly-btn-delete {
    background: rgba(239, 83, 80, 0.1);
    color: #ef5350;
    border-color: rgba(239, 83, 80, 0.15);
}

.weekly-btn-delete:hover {
    background: rgba(239, 83, 80, 0.2);
    border-color: #ef5350;
}

.weekly-btn-eat {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-blue);
    border-color: rgba(0, 229, 255, 0.15);
}

.weekly-btn-eat:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

/* Green eaten badge state */
.weekly-dish-logged {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-mint);
    border: 1px solid rgba(0, 230, 118, 0.2);
    user-select: none;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.1);
}

.day-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.btn-add-weekly {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

.btn-add-weekly:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

/* Modal Search List */
.modal-search-wrapper {
    margin-bottom: 1.5rem;
}

.modal-dish-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.25rem;
}

.modal-dish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-dish-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-amber);
}

.modal-dish-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.modal-dish-item-ingredients {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    text-align: left;
}

.modal-dish-add-btn {
    color: var(--accent-blue);
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.modal-dish-item:hover .modal-dish-add-btn {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

/* Responsive queries: Mobile calendar strip view vs. Desktop grid view */
@media (max-width: 767px) {
    .wochenplan-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wochenplan-nav-label {
        min-width: unset;
        flex-grow: 1;
    }
    
    /* Day selector strip is shown on mobile */
    .wochenplan-day-selector {
        display: flex;
    }
    
    /* Hide all day cards by default on mobile */
    .wochenplan-grid {
        grid-template-columns: 1fr;
    }
    
    .wochenplan-grid .day-card {
        display: none;
        min-height: unset;
    }
    
    /* Only show the active mobile day card */
    .wochenplan-grid .day-card.active-mobile-day {
        display: flex;
    }
}

@media (min-width: 768px) {
    /* Hide day selector strip on desktop */
    .wochenplan-day-selector {
        display: none !important;
    }
    
    /* Display all cards in a grid layout with minimum column width of 320px */
    .wochenplan-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .wochenplan-grid .day-card {
        display: flex !important; /* Force show all days on desktop */
    }
}

/* Tinder Swipe Styles */
.swipe-container {
    perspective: 1000px;
}
.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), opacity var(--transition-normal), box-shadow var(--transition-fast);
    cursor: grab;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem; /* Reduced padding from 2rem to gain significant vertical content space */
    box-sizing: border-box;
    background: #0d121f; /* Completely opaque background to prevent card content bleeding through */
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transform-origin: 50% 100%;
}
.swipe-card:active {
    cursor: grabbing;
}
.swipe-card.current {
    z-index: 10;
}
.swipe-card.next {
    z-index: 5;
    transform: scale(0.94) translateY(16px);
    opacity: 0.6;
    pointer-events: none;
}
.swipe-card.next * {
    opacity: 0 !important;
}

/* Swipe Action Animations */
.swipe-card.swipe-left {
    transform: translate(-150%, 50px) rotate(-20deg) !important;
    opacity: 0 !important;
    pointer-events: none;
}
.swipe-card.swipe-right {
    transform: translate(150%, 50px) rotate(20deg) !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Swipe Card Internals */
.swipe-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}
.swipe-card .dish-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}
.swipe-card .dish-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.swipe-card .dish-ingredients-title {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.swipe-card .dish-ingredients {
    font-size: 0.85rem;
    color: var(--text-primary);
    max-height: 55px;
    overflow-y: auto;
    line-height: 1.4;
}
.swipe-card .dish-score-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.swipe-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
}
.swipe-card .badge.badge-health {
    border-color: rgba(0, 229, 255, 0.2);
    color: var(--text-secondary);
}
.swipe-card .badge.badge-effort {
    border-color: rgba(0, 230, 118, 0.2);
    color: var(--accent-amber);
}

/* Filter chips styling */
.chip {
    outline: none;
    box-shadow: none;
}
.chip:hover {
    background: rgba(0, 229, 255, 0.1) !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
    color: var(--text-primary) !important;
}
.chip.active {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue)) !important;
    border-color: transparent !important;
    color: #0b0c10 !important;
    font-weight: 600 !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
}

/* Premium Checkbox Toggle Chips */
.checkbox-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    width: 100%;
}
.meal-checkbox-label {
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.meal-checkbox-label input[type="checkbox"] {
    display: none;
}
.meal-checkbox-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.meal-checkbox-label:hover .meal-checkbox-tag {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.25);
    color: var(--text-primary);
}
.meal-checkbox-label input[type="checkbox"]:checked + .meal-checkbox-tag {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue)) !important;
    border-color: transparent !important;
    color: #0b0c10 !important;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) !important;
}

/* Eaten/Selected Card Styles */
.swipe-card.eaten {
    border-color: var(--accent-amber) !important;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.35) !important;
}
.swipe-card.eaten .swipe-card-content {
    opacity: 0.95;
}

/* Swipe Action Buttons styling */
.btn-swipe-skip {
    width: auto;
    min-width: 140px;
    border-radius: 30px;
    font-weight: bold;
    background: rgba(239, 83, 80, 0.15) !important;
    border: 1px solid rgba(239, 83, 80, 0.4) !important;
    color: #ef5350 !important;
    transition: var(--transition-normal);
}
.btn-swipe-skip:hover {
    background: rgba(239, 83, 80, 0.25) !important;
    border-color: rgba(239, 83, 80, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 83, 80, 0.25) !important;
}

.btn-swipe-eat {
    width: auto;
    min-width: 140px;
    border-radius: 30px;
    font-weight: bold;
    color: #0b0c10 !important;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-blue)) !important;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3) !important;
    transition: var(--transition-normal);
}
.btn-swipe-eat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4) !important;
    filter: brightness(1.1);
}

.btn-swipe-next {
    width: auto;
    min-width: 220px;
    border-radius: 30px;
    font-weight: bold;
    color: #0b0c10 !important;
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-blue)) !important;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3) !important;
    transition: var(--transition-normal);
}
.btn-swipe-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4) !important;
    filter: brightness(1.1);
}

/* Disable resizing globally on all textareas */
textarea {
    resize: none;
}

/* Swipe Details Modal Styles */
.details-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.details-meta-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.details-meta-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.details-meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

.details-ingredients-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.details-ingredients-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--accent-amber);
    margin-bottom: 0.5rem;
}

.details-ingredients-list {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.details-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.details-tag {
    background: rgba(26, 172, 172, 0.15);
    border: 1px solid rgba(26, 172, 172, 0.3);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Wochentag Selection List Buttons */
.day-select-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.day-select-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateX(4px);
}

.day-select-btn.today {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.day-select-btn.today:hover {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

/* Clear Search Button */
.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: var(--transition-fast);
    z-index: 5;
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Passkeys List Styling */
.passkeys-list {
    max-height: 200px;
    overflow-y: auto;
}

.passkeys-list .glass-panel {
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.passkeys-list .glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04) !important;
}


