/* =============================================================================
   ZFC Meuselwitz - Globale Styles
   Alle gemeinsamen Styles für die gesamte Application
   ============================================================================= */

/* Material Icons Font */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/material-icons/MaterialIcons.woff2') format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* =============================================================================
   ZFC CI-Farben (CSS Custom Properties)
   ============================================================================= */
:root {
    /* ZFC Brand Colors */
    --zfc-red: #C8102E;
    --zfc-red-dark: #9a0c23;
    --zfc-red-light: #e65c70;
    --zfc-white: #FFFFFF;
    --zfc-black: #1A1A1A;
    --zfc-gold: #FFD700;
    
    /* Override Bootstrap Primary Color globally */
    --bs-primary: #C8102E;
    --bs-primary-rgb: 200, 16, 46;
    --bs-link-color: #C8102E;
    --bs-link-color-rgb: 200, 16, 46;
    --bs-link-hover-color: #9a0c23;
    --bs-link-hover-color-rgb: 154, 12, 35;
    
    /* Bootstrap Button Variables */
    --bs-btn-bg: #C8102E;
    --bs-btn-border-color: #C8102E;
    --bs-btn-hover-bg: #9a0c23;
    --bs-btn-hover-border-color: #9a0c23;
    --bs-btn-active-bg: #9a0c23;
    --bs-btn-active-border-color: #9a0c23;
    --bs-btn-focus-shadow-rgb: 200, 16, 46;
}

/* Global active/focus state override for all interactive elements */
*:focus-visible {
    outline-color: #C8102E !important;
}

/* Dropdown item active state */
.dropdown-item:active,
.dropdown-item.active {
    background-color: #C8102E !important;
    color: white !important;
}

/* List group active state */
.list-group-item.active {
    background-color: #C8102E !important;
    border-color: #C8102E !important;
}

/* Pagination active state */
.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.25) !important;
}
.page-item.active .page-link {
    background-color: #C8102E !important;
    border-color: #C8102E !important;
}

/* Nav pills/tabs active state */
.nav-pills .nav-link.active {
    background-color: #C8102E !important;
}

/* =============================================================================
   Bootstrap Primary Color Override
   ============================================================================= */
.btn-primary {
    background-color: var(--zfc-red) !important;
    border-color: var(--zfc-red) !important;
}
.btn-primary:hover {
    background-color: var(--zfc-red-dark) !important;
    border-color: var(--zfc-red-dark) !important;
}
.btn-primary:focus, 
.btn-primary:active, 
.btn-primary.active,
.btn-primary:first-child:active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: var(--zfc-red-dark) !important;
    border-color: var(--zfc-red-dark) !important;
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.5) !important;
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.5) !important;
}
.btn-outline-primary {
    color: var(--zfc-red) !important;
    border-color: var(--zfc-red) !important;
}
.btn-outline-primary:hover {
    background-color: var(--zfc-red) !important;
    border-color: var(--zfc-red) !important;
    color: white !important;
}
.btn-outline-primary:focus, 
.btn-outline-primary:active, 
.btn-outline-primary.active,
.btn-outline-primary:first-child:active,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    background-color: var(--zfc-red) !important;
    border-color: var(--zfc-red) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.5) !important;
}
.btn-outline-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.5) !important;
}
/* Override Bootstrap's default blue focus ring for all buttons */
.btn:focus, .btn:active, .btn:first-child:active {
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.25) !important;
}
.text-primary {
    color: var(--zfc-red) !important;
}
.bg-primary {
    background-color: var(--zfc-red) !important;
}
.border-primary {
    border-color: var(--zfc-red) !important;
}

/* Links */
a {
    color: var(--zfc-red);
}
a:hover {
    color: var(--zfc-red-dark);
}

/* =============================================================================
   Form Styling
   ============================================================================= */
.form-control:focus, .form-select:focus {
    border-color: var(--zfc-red);
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.25);
}
.form-check-input:checked {
    background-color: var(--zfc-red);
    border-color: var(--zfc-red);
}

/* =============================================================================
   Navbar
   ============================================================================= */
.navbar-zfc {
    background-color: var(--zfc-red);
}
.navbar-zfc .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.navbar-zfc .nav-link:hover {
    color: white;
}
.navbar-zfc .nav-link.active {
    color: white !important;
    font-weight: 500;
}
.navbar-zfc .navbar-brand {
    color: white;
    font-weight: 500;
}
.nav-link.active {
    color: var(--zfc-red) !important;
}

/* =============================================================================
   Card Styling
   ============================================================================= */
.card-header-zfc {
    background-color: var(--zfc-red);
    color: white;
}
.card-header-zfc .material-icons {
    margin-right: 8px;
}

/* =============================================================================
   Table Styling
   ============================================================================= */
.table-zfc thead {
    background-color: var(--zfc-red);
    color: white;
}

/* =============================================================================
   Sticky Footer Layout
   ============================================================================= */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
}

/* =============================================================================
   Toast Notifications
   ============================================================================= */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
}

/* =============================================================================
   Profil Styling
   ============================================================================= */
.profil-bild {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--zfc-red);
}
.profil-bild-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profil-bild-placeholder .material-icons {
    font-size: 48px;
    color: #9e9e9e;
}

/* =============================================================================
   Info Grid
   ============================================================================= */
.info-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 2px;
}
.info-value {
    font-weight: 500;
}

/* =============================================================================
   Dashboard Cards
   ============================================================================= */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: inherit;
}
.dashboard-card .card-body {
    text-align: center;
    padding: 2rem;
}
.dashboard-card .material-icons {
    font-size: 48px;
    color: var(--zfc-red);
    margin-bottom: 1rem;
}

/* =============================================================================
   Stepper (Multi-Step Forms)
   ============================================================================= */
.stepper-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
.stepper-step.active .step-number {
    background: var(--zfc-red);
    color: white;
}
.stepper-step.completed .step-number {
    background: #198754;
    color: white;
}

/* Step Content */
.step-content {
    display: none;
}
.step-content.active {
    display: block;
}

/* =============================================================================
   Auth Pages
   ============================================================================= */
.auth-card {
    max-width: 450px;
    margin: 2rem auto;
}

/* =============================================================================
   CAPTCHA
   ============================================================================= */
.captcha-image {
    max-width: 200px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* =============================================================================
   Toast/Snackbar Notifications
   ============================================================================= */
.toast-container {
    z-index: 1100 !important;
}

.toast {
    min-width: 280px;
}

.toast .material-icons {
    font-size: 20px;
}

/* =============================================================================
   Utility Classes
   ============================================================================= */
.page-content {
    padding-top: 20px;
    padding-bottom: 40px;
}
