/* =====================================================================
   Fixly – Sidebar (dunkel) und Mobile AppBar
   ===================================================================== */

/* Drawer: dunkler Hintergrund */
.fixly-drawer .mud-drawer-content,
.mud-drawer.fixly-drawer {
    background-color: #1e293b !important;
    color: #fff !important;
}

/* Drawer Header mit App-Name und Version untereinander */
.fixly-drawer-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fixly-app-title {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.fixly-header-version {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    line-height: 1.2;
    margin-top: 0.1rem;
}

/* NavLinks in der Sidebar weiss */
.fixly-drawer .mud-nav-link,
.fixly-drawer .mud-nav-link .mud-icon-root,
.fixly-drawer .mud-list-item-text {
    color: rgba(255, 255, 255, 0.85) !important;
}

.fixly-drawer .mud-nav-link:hover,
.fixly-drawer .mud-nav-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.fixly-drawer .mud-nav-link.active .mud-icon-root {
    color: #fff !important;
}

/* Sidebar Footer */
.fixly-drawer-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.fixly-nav-user .mud-nav-link-text,
.fixly-nav-user .mud-icon-root {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}



/* Mobile AppBar: gleiche Farbe wie Sidebar */
.fixly-mobile-appbar,
.fixly-mobile-appbar.mud-appbar {
    background-color: #1e293b !important;
    color: #fff !important;
}

.fixly-mobile-version {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

/* Auf Desktop: Mobile AppBar verstecken (MudBlazor macht das per d-sm-none,
   aber das Padding des MudMainContent wird durch die AppBar verschoben – korrigieren) */
@media (min-width: 600px) {
    .fixly-mobile-appbar {
        display: none !important;
    }
}

/* Auf Mobile: MudMainContent hat keinen left-margin wegen des Drawers */
@media (max-width: 599px) {
    .fixly-main-content {
        margin-left: 0 !important;
    }
}

/* =====================================================================
   Sichtbarer Tastaturfokus (Accessibility)
   ===================================================================== */
/* Sichtbarer Tastaturfokus (Accessibility) */
:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 2px;
}

html, body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
}

h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* =====================================================================
   Auth-Seiten (Login / Register) – zentriert im Viewport
   ===================================================================== */

.fixly-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
}

.fixly-auth-card-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.fixly-auth-card {
    padding: 2rem;
    border-radius: 8px;
}

.fixly-auth-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

/* =====================================================================
   Eingabefelder der statisch gerenderten Account-Formulare
   ===================================================================== */
/* Eingabefelder der statisch gerenderten Account-Formulare (Login/Register).
   MudBlazor-Eingaben funktionieren in SSR-Formularen nicht zuverlaessig,
   daher native Felder mit eigenem, barrierefreiem Styling. */
.fixly-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 4px;
    background-color: #fff;
}

.fixly-input:focus {
    border-color: #1976d2;
}

/* Nativer Primary-Button fuer statisch gerenderte Auth-Seiten (kein MudButton,
   damit das native Form-Submit nicht vom MudBlazor-Click-Handler verschluckt wird). */
.fixly-btn-primary {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background-color: #1976d2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fixly-btn-primary:hover {
    background-color: #1565c0;
}

.fixly-btn-primary:focus-visible {
    outline: 2px solid #1565c0;
    outline-offset: 2px;
}

.fixly-btn-fullwidth {
    width: 100%;
}

label {
    font-weight: 500;
}

small {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.8rem;
}
