/* _content/Sportly.Web/Components/Layout/BottomNav.razor.rz.scp.css */
.bottomnav[b-wcfguhr2qj] {
    display: none;
}

@media (max-width: 720px) {
    .bottomnav[b-wcfguhr2qj] {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bottomnav-bg);
        border-top: 1px solid var(--border);
        z-index: 40;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    [data-theme="modern"] .bottomnav[b-wcfguhr2qj] {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .bottomnav[b-wcfguhr2qj]  .bottomnav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        padding: 0.5rem 0.3rem;
        min-height: 56px;
        color: var(--bottomnav-text);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 500;
        transition: color 0.15s ease;
    }

    .bottomnav[b-wcfguhr2qj]  .bottomnav-item i {
        font-size: 1.35rem;
    }

    .bottomnav[b-wcfguhr2qj]  .bottomnav-item.active {
        color: var(--bottomnav-active);
    }

    .bottomnav[b-wcfguhr2qj]  .bottomnav-item.active i {
        color: var(--bottomnav-active-icon);
    }
}
/* _content/Sportly.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.main[b-vwh6uijieq] {
    background: var(--sportly-bg, #f5f7fb);
    min-height: calc(100vh - 56px);
}

.main-inner[b-vwh6uijieq] {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem 1.25rem;
}

@media (max-width: 720px) {
    .main[b-vwh6uijieq] {
        /* leave room for fixed bottom nav (56px) + safe area */
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }

    .main-inner[b-vwh6uijieq] {
        padding: 1rem 1rem 1.5rem 1rem;
    }
}

#blazor-error-ui[b-vwh6uijieq] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-vwh6uijieq] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* _content/Sportly.Web/Components/Layout/ThemeSwitcher.razor.rz.scp.css */
.theme-switcher[b-yxeywv1mnl] {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.theme-switcher .theme-btn[b-yxeywv1mnl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0;
}

.theme-switcher .theme-btn:hover[b-yxeywv1mnl] {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
/* Active state дүрмүүд app.css-д (scoped CSS [data-theme] ancestor хүрч чадахгүй) */

@media (max-width: 720px) {
    .theme-switcher[b-yxeywv1mnl] {
        padding: 2px;
    }
    .theme-switcher .theme-btn[b-yxeywv1mnl] {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}
/* _content/Sportly.Web/Components/Layout/TopNav.razor.rz.scp.css */
.topnav[b-86iquno2c3] {
    background: var(--topnav-grad);
    color: var(--topnav-text);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-soft);
}

[data-theme="modern"] .topnav[b-86iquno2c3] {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topnav-inner[b-86iquno2c3] {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Picker mode — brand зүүнд, ThemeSwitcher баруун буланд */
.topnav-minimal .topnav-inner[b-86iquno2c3] {
    justify-content: space-between;
}

.topnav-minimal .topnav-brand[b-86iquno2c3] {
    margin-right: auto;
}

.topnav-brand[b-86iquno2c3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--topnav-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.topnav-brand i[b-86iquno2c3] {
    color: var(--accent);
    font-size: 1.3rem;
}

.topnav-logo[b-86iquno2c3] {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.topnav-links[b-86iquno2c3] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    margin-left: 1rem;
}

.topnav-links[b-86iquno2c3]  .topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    color: var(--topnav-text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    min-height: 40px;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.topnav-links[b-86iquno2c3]  .topnav-link:hover {
    background: var(--topnav-hover);
    color: var(--topnav-text);
}

.topnav-links[b-86iquno2c3]  .topnav-link.active {
    background: var(--topnav-active);
    color: var(--topnav-text);
}

.topnav-links[b-86iquno2c3]  .topnav-link i {
    font-size: 1rem;
}

.topnav-auth[b-86iquno2c3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
}

.profile-menu[b-86iquno2c3] {
    position: relative;
}

.profile-trigger[b-86iquno2c3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: var(--topnav-text);
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.15s ease;
    padding: 0;
}

.profile-trigger:hover[b-86iquno2c3] {
    background: rgba(255, 255, 255, 0.18);
}

.profile-trigger i[b-86iquno2c3] {
    font-size: 1.4rem;
    line-height: 1;
}

.profile-trigger img[b-86iquno2c3] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-panel[b-86iquno2c3] {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.85rem;
    display: none;
    z-index: 100;
}

.profile-menu.is-open .profile-panel[b-86iquno2c3] {
    display: block;
}

.profile-name[b-86iquno2c3] {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    text-align: center;
    word-break: break-word;
}

/* Logout button — theme-aware */
.profile-logout[b-86iquno2c3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border-radius: 9px;
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.08);
    color: #c0392b;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.profile-logout i[b-86iquno2c3] {
    font-size: 1rem;
}

.profile-logout:hover[b-86iquno2c3] {
    background: rgba(220, 53, 69, 0.16);
    border-color: rgba(220, 53, 69, 0.55);
}

.profile-logout:active[b-86iquno2c3] {
    transform: translateY(1px);
}

[data-theme="dark"] .profile-logout[b-86iquno2c3] {
    color: #ff7c87;
    border-color: rgba(255, 124, 135, 0.35);
    background: rgba(255, 124, 135, 0.10);
}

[data-theme="dark"] .profile-logout:hover[b-86iquno2c3] {
    background: rgba(255, 124, 135, 0.20);
    border-color: rgba(255, 124, 135, 0.55);
}

[data-theme="modern"] .profile-logout[b-86iquno2c3] {
    color: #ff7eb6;
    border-color: rgba(255, 93, 173, 0.40);
    background: rgba(255, 61, 154, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="modern"] .profile-logout:hover[b-86iquno2c3] {
    background: rgba(255, 61, 154, 0.24);
    border-color: rgba(255, 93, 173, 0.65);
    box-shadow: 0 4px 16px rgba(255, 61, 154, 0.25);
}

/* Modern theme — panel-ийг уншигдахаар blur+tint болгох */
[data-theme="modern"] .profile-panel[b-86iquno2c3] {
    background: rgba(26, 10, 46, 0.78);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .profile-panel[b-86iquno2c3] {
    background: var(--surface-elev);
}

.topnav-user[b-86iquno2c3] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--topnav-text-muted);
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.topnav-user i[b-86iquno2c3] {
    font-size: 1.3rem;
}

.topnav-btn[b-86iquno2c3] {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--topnav-text);
    cursor: pointer;
    min-height: 40px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.topnav-btn:hover[b-86iquno2c3] {
    background: var(--topnav-hover);
    color: var(--topnav-text);
}

.topnav-btn-in[b-86iquno2c3] {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.topnav-btn-in:hover[b-86iquno2c3] {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--on-accent);
}

.topnav-btn-out[b-86iquno2c3] {
    border-color: var(--border-soft);
}

@media (max-width: 720px) {
    .topnav-inner[b-86iquno2c3] {
        padding: 0 0.85rem;
        gap: 0.5rem;
    }
    .topnav-links[b-86iquno2c3] { display: none; }
    .topnav-user span[b-86iquno2c3] { display: none !important; }
    .topnav-btn span[b-86iquno2c3] { display: none !important; }
    .topnav-btn[b-86iquno2c3] { padding: 0.45rem 0.6rem; }
}
