/* ============================================================
   Google Translate – Toolbar ausblenden
   ============================================================ */
body {
    top: 0 !important;
}

.skiptranslate iframe {
    display: none !important;
}

body > .skiptranslate {
    display: none !important;
}

/* ============================================================
   Gemeinsame Glass-Utilities
   ============================================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(35, 110, 231, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(35, 110, 231, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   Login-Seite
   ============================================================ */
.login-bg {
    min-height: 100vh;
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(35, 110, 231, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.login-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(126, 111, 255, 0.07) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
    pointer-events: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(35, 110, 231, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(35, 110, 231, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.glass-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #236ee7, #7e6fff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(35, 110, 231, 0.3);
    margin: 0 auto 16px;
}

.glass-title {
    color: #1a1a2e;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.glass-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 32px;
}

.glass-input .mud-input-outlined-border {
    border-color: rgba(35, 110, 231, 0.2) !important;
    border-radius: 12px !important;
}

.glass-input .mud-input-root {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 12px !important;
    color: #1a1a2e !important;
}

.glass-input label,
.glass-input .mud-input-label {
    color: #6b7280 !important;
}

.glass-input input,
.glass-input .mud-input input {
    color: #1a1a2e !important;
}

.glass-input .mud-input-adornment .mud-icon-button,
.glass-input .mud-input-adornment svg {
    color: #9ca3af !important;
}

.glass-btn {
    background: linear-gradient(135deg, #236ee7, #7e6fff) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    height: 48px;
    box-shadow: 0 4px 15px rgba(35, 110, 231, 0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.glass-btn:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(35, 110, 231, 0.45) !important;
}

.translate-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    opacity: 0.85;
}

/* ============================================================
   Dashboard-Seite
   ============================================================ */
.dashboard-bg {
    min-height: 100vh;
    background: #f4f6fb;
    padding: 32px 16px;
    position: relative;
    overflow: hidden;
}

.dashboard-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(35, 110, 231, 0.07) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(35, 110, 231, 0.1);
    border-radius: 20px;
    padding: 20px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(35, 110, 231, 0.08);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #236ee7, #7e6fff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(35, 110, 231, 0.3);
}

.brand-name {
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
}

.welcome-card {
    padding: 32px;
    margin-bottom: 24px;
}

.welcome-greeting {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.welcome-name {
    color: #1a1a2e;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-sub {
    color: #6b7280;
    font-size: 0.95rem;
}

.info-card {
    padding: 24px;
    height: 100%;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.icon-blue   { background: rgba(35, 110, 231, 0.1);  color: #236ee7; }
.icon-purple { background: rgba(126, 111, 255, 0.1); color: #7e6fff; }
.icon-green  { background: rgba(22, 163, 74, 0.1);   color: #16a34a; }
.icon-orange { background: rgba(234, 88, 12, 0.1);   color: #ea580c; }

.info-card-label {
    color: #9ca3af;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.info-card-value {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
}

.info-card-value.placeholder {
    color: #d1d5db;
    font-style: italic;
    font-weight: 400;
}

.divider-glass {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 20px 0;
}

/* ============================================================
   Google Translate – globale Positionierung
   ============================================================ */
.translate-global-wrapper {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9999;
    opacity: 0.9;
}

/* Google Translate Widget sichtbar machen */
.skiptranslate {
    display: block !important;
    visibility: visible !important;
}

.goog-te-gadget {
    display: block !important;
    visibility: visible !important;
    color: #000 !important;
}

.goog-te-gadget-simple {
    display: inline-block !important;
    visibility: visible !important;
    white-space: nowrap !important;
}

.goog-te-gadget img {
    display: inline !important;
    visibility: visible !important;
}

/* MudBlazor Reset überschreiben */
#google_translate_element * {
    display: revert !important;
    visibility: visible !important;
}

/* ============================================================
   MeineBuchungen – Zeilenfärbung
   ============================================================ */
.kurs-vergangen td {
    background: rgba(76, 175, 80, 0.12) !important;
}

.kurs-zukunft td {
    background: #236ee7 !important;
    color: white !important;
}

/* ============================================================
   Blazor Reconnect-Overlay
   ============================================================ */
#components-reconnect-modal {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.reconnect-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: #236ee7;
    box-shadow: 0 8px 32px rgba(35, 110, 231, 0.15);
}

/* ============================================================
   Dashboard – Responsive Tab-Navigation
   ============================================================ */

/* Desktop: normale Tabs sichtbar, Bottom Nav versteckt */
.desktop-tabs { display: block; }
.mobile-tabs  { display: none;  }

/* Mobile: Bottom Nav sichtbar, normale Tabs versteckt */
@media (max-width: 599px) {
    .desktop-tabs { display: none;  }
    .mobile-tabs  { display: block; }

    .dashboard-bg {
        padding: 12px 10px;
    }

    .glass-header {
        padding: 12px 14px;
        border-radius: 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .logout-btn {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }

    .welcome-card {
        padding: 18px;
    }

    .welcome-name {
        font-size: 1.4rem;
    }
}

/* Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(35, 110, 231, 0.12);
    box-shadow: 0 -4px 20px rgba(35, 110, 231, 0.08);
    padding-bottom: env(safe-area-inset-bottom); /* iPhone Notch */
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav-item.active {
    color: #236ee7;
}

.mobile-nav-item.active .mud-icon-root {
    filter: drop-shadow(0 2px 6px rgba(35, 110, 231, 0.4));
}

/* ============================================================
   Passwort ändern – Mobile Optimierung
   ============================================================ */
@media (max-width: 599px) {
    .glass-card {
        padding: 28px 18px;
        border-radius: 16px;
        max-width: 100%;
    }

    .glass-title {
        font-size: 1.3rem;
    }

    .glass-subtitle {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    /* Passwort-Seite: weniger padding-top, kein seitlicher Überlauf */
    .dashboard-bg > div[style*="max-width: 480px"] {
        padding-top: 20px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   Dashboard Header – Button Mobile Optimierung
   ============================================================ */
.header-btn {
    min-width: unset !important;
}

@media (max-width: 599px) {
    .header-btn-text {
        display: none;
    }

    .header-btn {
        padding: 6px 8px !important;
        min-width: 36px !important;
        width: 36px !important;
    }

    /* Icon zentrieren wenn kein Text */
    .header-btn .mud-button-label {
        gap: 0 !important;
    }
}

/* ============================================================
   Hilfsklassen Desktop / Mobile Sichtbarkeit
   ============================================================ */
.desktop-only { display: block !important; }
.mobile-only  { display: none  !important; }

@media (max-width: 599px) {
    .desktop-only { display: none  !important; }
    .mobile-only  { display: block !important; }
}

/* ============================================================
   TheorieKursAuswahl – Filter-Leiste
   ============================================================ */
.filter-leiste {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
}

.filter-gruppe {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    margin: 0 4px;
}

@media (max-width: 599px) {
    .filter-leiste {
        flex-direction: column;
        gap: 14px;
        padding: 12px;
    }

    .filter-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    /* Kurs-Karten: voller Abstand unten wegen Bottom-Nav */
    .glass-panel {
        margin-bottom: 6px;
    }
}

/* ============================================================
   MeineBuchungen – Mobile Karten
   ============================================================ */
.buchungs-karten {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 8px 8px;
}

.buchungs-karte {
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.buchungs-karte:last-child {
    margin-bottom: 0;
}

.buchungs-karte-vergangen {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.buchungs-karte-zukunft {
    background: #236ee7;
    border: 1px solid rgba(35, 110, 231, 0.4);
    color: white;
}

.buchungs-karte-titel {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.buchungs-karte-zeile {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.buchungs-karte-icon {
    font-size: 0.9rem !important;
    opacity: 0.75;
}

.buchungs-karte-footer {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 6px;
}

.buchungs-karte-vergangen .buchungs-karte-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* ============================================================
   MeineBuchungen – Stornieren-Button auf blauem Hintergrund
   ============================================================ */
.storno-btn-zukunft {
    color: white !important;
    border-color: rgba(255, 255, 255, 1) !important;
    border-width: medium !important;
}

.storno-btn-zukunft:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

