/* Import emoji fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Segoe+UI+Emoji&display=swap');

/* ============================================
   🌙 GLOBAL DARK THEME SUPPORT
   Wykrywany przez _Host.cshtml PRZED renderem
   Eliminuje FOUC (Flash of Unstyled Content)
   ============================================ */

:root {
    /* Light theme (default) */
    --bg-app: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 100%);
    --bg-base: #f5f7fa;
    
    --inalca-white: #FFFFFF;
    --inalca-green: #00A651;
    --inalca-green-dark: #008541;
    --inalca-green-light: #E8F5E9;
    --inalca-red: #E30613;
    --inalca-red-dark: #C50510;
    --inalca-red-light: #FFEBEE;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --orange: #FF9800;
    --orange-light: #FFF3E0;
    --blue: #2196F3;
    --blue-light: #E3F2FD;
    
    /* NOWE KOLORY DLA IKON */
    --icon-primary: #00A651;     /* Zielony dla głównych ikon */
    --icon-secondary: #2196F3;      /* Niebieski dla informacyjnych */
    --icon-warning: #FF9800;        /* Pomarańczowy dla ostrzeżeń */
    --icon-danger: #E30613;     /* Czerwony dla błędów */
    --icon-success: #4CAF50; /* Jasnozielony dla sukcesu */
    --icon-info: #00BCD4;           /* Cyan dla info */
    --icon-neutral: #757575;        /* Szary dla neutralnych */
    
    /* KOLORY TEKSTU */
    --text-primary: #212121;        /* Główny tekst */
    --text-secondary: #616161;      /* Drugorzędny tekst */
    --text-muted: #9E9E9E;          /* Przyciszony tekst */
    --text-accent: #00A651;  /* Akcent (Inalca Green) */
}

/* 🌙 DARK THEME - aktywowany przez data-theme="dark" */
:root[data-theme="dark"],
html.dark-theme-root {
    --bg-app: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    --bg-base: #0f0f1a;
    
    --gray-50: #1e293b;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-600: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f1f5f9;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Podświetlone kolory dla dark mode */
    --inalca-green: #00C464;
    --inalca-green-light: rgba(0, 166, 81, 0.15);
    --inalca-red-light: rgba(227, 6, 19, 0.15);
    --orange-light: rgba(255, 152, 0, 0.15);
    --blue-light: rgba(33, 150, 243, 0.15);
    
    --icon-primary: #00C464;
    --icon-success: #4ade80;
}

/* ============================================
   🔴 CRITICAL: PŁYNNE PRZEJŚCIA MIĘDZY STRONAMI
   Zapobiega "flash of white/light" przy nawigacji
   ============================================ */

/* Natychmiastowe tło dla dark theme - eliminuje flash */
html[data-theme="dark"],
html.dark-theme-root {
    background: #0f0f1a !important;
}

html[data-theme="dark"] body,
html.dark-theme-root body {
    background: #0f0f1a !important;
}

/* Płynna animacja wejścia dla zawartości strony */
@keyframes smoothPageEnter {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

/* Aplikuj animację do głównych kontenerów */
.main-content,
.szczegoly-container,
.page-container,
.dashboard-container,
.fleet-container {
    animation: smoothPageEnter 0.15s ease-out;
}

/* Natychmiastowe tło (bez animacji) dla kontenerów w dark mode */
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .szczegoly-container,
html[data-theme="dark"] .page-container,
html[data-theme="dark"] .dashboard-container,
html[data-theme="dark"] .fleet-container,
html.dark-theme-root .main-content,
html.dark-theme-root .szczegoly-container,
html.dark-theme-root .page-container,
html.dark-theme-root .dashboard-container,
html.dark-theme-root .fleet-container {
    background: transparent !important;
}

/* Globalne tło dla body - reaguje na data-theme */
html, body {
    background: var(--bg-app);
    color: var(--text-primary);
}

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

body, h1, h2, h3, h4, h5, h6, p, span:not([class*="fa"]):not([class*="icon"]), div:not([class*="fa"]):not([class*="icon"]) {
    font-family: 'Segoe UI', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', Arial, sans-serif;
}

body {
    background: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Dark Theme dla stron Floty - używa data-theme */
:root[data-theme="dark"] body:has(.vehicle-details-page),
:root[data-theme="dark"] body:has(.fleet-container),
:root[data-theme="dark"] body:has(.fleet-vehicle-form-page),
body:has(.vehicle-details-page.dark-theme),
body:has(.fleet-container.dark-theme),
body:has(.fleet-vehicle-form-page.dark-theme) {
    background: #0a0a12 !important;
}


/* Ikony w nagłówkach */
h1 .fas, h1 .far, h1 .fab,
h2 .fas, h2 .far, h2 .fab,
h3 .fas, h3 .far, h3 .fab {
    color: var(--icon-primary);
    margin-right: 10px;
}

/* Ikony w labelkach */
.label .fas, .label .far, .label .fab,
label .fas, label .far, label .fab {
    color: var(--icon-secondary);
    margin-right: 6px;
}

/* Ikony w buttonach - dziedziczą kolor przycisku */
.btn .fas, .btn .far, .btn .fab {
    margin-right: 8px;
}

/* Ikony statusów */
.status-badge .fas,
.priority-badge .fas {
    margin-right: 6px;
}

/* Ikony w timelinach */
.timeline-item .fas {
    color: var(--icon-primary);
    margin-right: 8px;
}

/* Ikony akcji */
.actions-card .fas {
    margin-right: 8px;
}

/* Ikony w kartach */
.card h2 .fas,
.card h3 .fas {
    color: var(--icon-primary);
}

/* Ikony w info-item */
.info-item .label .fas {
    color: var(--icon-info);
}

/* Ikony w alertach */
.alert .fas {
    font-size: 1.2em;
}

.alert-success .fas {
    color: #2E7D32;
}

.alert-error .fas {
    color: #C62828;
}

.alert-info .fas {
  color: #01579B;
}

.alert-warning .fas {
    color: #E65100;
}

/* Ikony statystyk */
.stat-item .fas {
    color: var(--icon-primary);
    margin-right: 8px;
    font-size: 1.2em;
}

/* Ikony w nawigacji */
.header-actions .fas {
    margin-right: 6px;
}

/* Ikony w footerze */
.footer .fas {
    color: var(--inalca-green);
  margin-right: 8px;
}

/* KOLORY SPECIFICZNE DLA RÓŻNYCH TYPÓW IKON */
.fa-wrench,
.fa-tools {
    color: var(--icon-primary) !important;
}

.fa-calendar-alt,
.fa-clock,
.fa-stopwatch {
    color: var(--icon-info) !important;
}

.fa-user,
.fa-users {
    color: var(--icon-secondary) !important;
}

.fa-industry,
.fa-cogs {
    color: var(--icon-neutral) !important;
}

.fa-check,
.fa-check-circle {
    color: var(--icon-success) !important;
}

.fa-times,
.fa-times-circle,
.fa-exclamation-triangle {
    color: var(--icon-danger) !important;
}

.fa-bolt,
.fa-zap {
    color: var(--icon-warning) !important;
}

.fa-info-circle,
.fa-question-circle {
    color: var(--icon-info) !important;
}

/* ========== KOLORY TEKSTÓW - ULEPSZONE ========== */

/* Teksty w kartach */
.card .label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.card .value {
    color: var(--text-primary);
    font-weight: 700;
font-size: 1.05rem;
}

/* Teksty w timeline */
.timeline-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-title {
    color: var(--text-primary);
    font-weight: 700;
}

.timeline-desc {
    color: var(--text-secondary);
}

/* Teksty w info-grid */
.info-grid .label {
    color: var(--text-secondary);
}

.info-grid .value {
  color: var(--text-primary);
}

/* Wyróżnienia kolorystyczne */
.highlight-blue {
    color: var(--blue) !important;
    font-weight: 700;
}

.highlight-green {
    color: var(--icon-success) !important;
    font-weight: 700;
}

.highlight-red {
    color: var(--icon-danger) !important;
    font-weight: 700;
}

.highlight-orange {
    color: var(--icon-warning) !important;
    font-weight: 700;
}

/* Teksty priorytetów z ikonami */
.priority-wysoki {
    color: var(--icon-danger);
}

.priority-normalny {
    color: var(--icon-warning);
}

.priority-niski {
    color: var(--icon-success);
}


.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
  background: linear-gradient(90deg, var(--icon-primary) 0%, var(--icon-secondary) 100%);
}

.start-repair-card::before {
    background: linear-gradient(90deg, var(--icon-warning) 0%, var(--icon-success) 100%);
}

.finish-card::before {
    background: linear-gradient(90deg, var(--icon-success) 0%, var(--icon-primary) 100%);
}

/* ========== APP WRAPPER & LAYOUT ========== */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf0 100%);
}

.dashboard-container {
    flex: 1;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
 padding: 0;
}

/* ========== PROFESSIONAL HEADER ========== */
.header {
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.4);
    margin-bottom: 40px;
}

.header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
  align-items: center;
    gap: 15px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
 content: '';
  position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--inalca-red) 0%, var(--inalca-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
  color: var(--inalca-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: var(--inalca-green-light);
    border-color: var(--inalca-green);
    transform: translateY(-2px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    padding: 0 40px 40px 40px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--inalca-green) 0%, var(--inalca-red) 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card h2 {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
  align-items: center;
    gap: 12px;
}

/* ========== PILNE AWARIE - ENHANCED ========== */
.urgent-faults {
    grid-column: 1;
}

.fault-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fault-item {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--inalca-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.fault-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(227, 6, 19, 0.15);
    border-left-width: 8px;
}

.fault-item.priority-wysoki {
    border-left-color: var(--inalca-red);
    background: linear-gradient(135deg, #fff 0%, var(--inalca-red-light) 100%);
}

.fault-item.priority-normalny {
    border-left-color: var(--orange);
 background: linear-gradient(135deg, #fff 0%, var(--orange-light) 100%);
}

.fault-item.priority-niski {
    border-left-color: var(--inalca-green);
    background: linear-gradient(135deg, #fff 0%, var(--inalca-green-light) 100%);
}

.fault-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  margin-bottom: 15px;
}

.fault-header strong {
    font-size: 1.2rem;
    color: var(--gray-900);
    font-weight: 700;
}

/* ========== PRIORITY BADGES - MODERN ========== */
.priority-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.priority-badge.priority-wysoki {
    background: var(--inalca-red);
 color: white;
    box-shadow: 0 2px 10px rgba(227, 6, 19, 0.3);
}

.priority-badge.priority-normalny {
    background: var(--orange);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

.priority-badge.priority-niski {
    background: var(--inalca-green);
color: white;
    box-shadow: 0 2px 10px rgba(0, 166, 81, 0.3);
}

/* ========== FAULT DETAILS ========== */
.fault-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item .label {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-item .value {
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 600;
}

/* ========== TECHNICIANS SECTION - ENHANCED ========== */
.technicians {
    grid-column: 2;
}

.technician-count {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--inalca-green-light) 0%, #C8E6C9 100%);
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.technician-count::before {
    content: '👷';
    position: absolute;
    font-size: 150px;
    opacity: 0.05;
    right: -30px;
    top: -30px;
}

.count-number {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--inalca-green);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 166, 81, 0.2);
}

.count-label {
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
margin-top: 10px;
}

.technician-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar */
.technician-grid::-webkit-scrollbar {
    width: 8px;
}

.technician-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.technician-grid::-webkit-scrollbar-thumb {
    background: var(--inalca-green);
    border-radius: 10px;
}

.technician-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
}

.technician-card::before {
    content: '';
    position: absolute;
    left: 0;
  top: 0;
    bottom: 0;
    width: 4px;
    background: var(--inalca-green);
  border-radius: 12px 0 0 12px;
    transition: width 0.3s ease;
}

.technician-card:hover {
    border-color: var(--inalca-green);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.15);
    transform: translateX(5px);
}

.technician-card:hover::before {
    width: 6px;
}

.technician-card.in-progress {
    background: linear-gradient(135deg, #fff 0%, var(--orange-light) 100%);
    border-color: var(--orange);
}

.technician-card.in-progress::before {
background: var(--orange);
}

.technician-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.technician-header strong {
    font-size: 1.05rem;
    color: var(--gray-900);
    font-weight: 700;
}

/* ========== STATUS BADGES ========== */
.status-badge {
 padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.available {
    background: #C8E6C9;
    color: #2E7D32;
}

.status-badge.in-progress {
    background: #FFE0B2;
    color: #E65100;
}

/* ========== TECHNICIAN INFO ========== */
.technician-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specialization {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-style: italic;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
  text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--inalca-green);
}

/* ========== LOADING & EMPTY STATES ========== */
.loading, .no-data {
    text-align: center;
    padding: 60px 20px;
color: var(--gray-600);
    font-size: 1.1rem;
}

.loading::before {
    content: '⏳';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

.no-data::before {
    content: '📭';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== PAGE CONTAINER (for other pages) ========== */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--inalca-green);
}

.page-header h1 {
    color: var(--gray-900);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions {
  display: flex;
    gap: 15px;
}

/* ========== FORMS ========== */
.form-card {
    background: white;
    border-radius: 20px;
  padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--gray-900);
  font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--inalca-green);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1);
}

.form-control:hover {
    border-color: var(--gray-400);
}

textarea.form-control {
  min-height: 120px;
    resize: vertical;
}

.form-text {
    display: block;
    margin-top: 8px;
 color: var(--gray-600);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    justify-content: flex-end;
}

/* ========== VALIDATION ========== */
.validation-message {
    color: var(--inalca-red);
    font-size: 0.875rem;
    margin-top: 6px;
    display: block;
}

.validation-summary {
    background: var(--inalca-red-light);
    border-left: 4px solid var(--inalca-red);
    padding: 15px;
 border-radius: 8px;
    margin-bottom: 25px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
    color: var(--inalca-red-dark);
}

/* ========== ALERTS ========== */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin: 20px 0;
font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
  background: #C8E6C9;
    color: #2E7D32;
    border-left: 5px solid #2E7D32;
}

.alert-error {
    background: #FFCDD2;
    color: #C62828;
    border-left: 5px solid #C62828;
}

.alert-info {
    background: #E3F2FD;
    color: #01579B;
    border-left: 5px solid #2196F3;
}

.alert-info-custom {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    color: #01579B;
}

/* ========== PROFESSIONAL FOOTER ========== */
.app-footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    padding: 30px 40px;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-title {
    font-size: 1.2rem;
  font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--inalca-green);
}

.footer-subtitle {
    font-size: 0.9rem;
    margin: 0;
    color: var(--gray-400);
}

.footer-center {
    text-align: center;
    padding: 0 40px;
    border-left: 2px solid var(--gray-700);
 border-right: 2px solid var(--gray-700);
}

.footer-version {
    font-size: 0.85rem;
    margin: 0 0 5px 0;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-year {
    font-size: 0.9rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

.footer-right {
    text-align: right;
}

.footer-author {
    font-size: 0.85rem;
margin: 0 0 5px 0;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-name {
    font-size: 1.1rem;
    margin: 0;
    color: var(--inalca-green);
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .technicians {
      grid-column: 1;
  }
}

@media (max-width: 768px) {
 .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .dashboard-grid {
        padding: 0 20px 20px 20px;
        gap: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

  .btn {
        width: 100%;
        justify-content: center;
    }

    .fault-details {
        grid-template-columns: 1fr;
    }

    .page-header {
   flex-direction: column;
     align-items: flex-start;
gap: 15px;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    /* Footer responsiveness */
    .app-footer {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
     gap: 25px;
  text-align: center;
    }

    .footer-left,
    .footer-right {
        text-align: center;
    }

    .footer-center {
   border-left: none;
  border-right: none;
        border-top: 2px solid var(--gray-700);
        border-bottom: 2px solid var(--gray-700);
        padding: 20px 0;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .fault-item, .technician-card {
    animation: fadeIn 0.5s ease-out;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.mt-2 {
 margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

/* ========== LISTA ZGŁOSZEŃ - ENHANCED STYLES ========== */
.list-container {
  flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
}

.list-header {
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    padding: 35px 40px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.list-header .header-left h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.list-header .header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

/* Search & Filters Section */
.search-filters-section {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

.search-box-container {
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
  left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 16px 55px 16px 55px !important;
    border: 2px solid var(--gray-300);
    border-radius: 50px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.search-input:focus {
    background: white;
    border-color: var(--inalca-green);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1);
}

.btn-clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-300);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-700);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    background: var(--inalca-red);
    color: white;
}

/* Filters Group */
.filters-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
  letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--gray-300);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray-700);
}

.filter-btn:hover {
    border-color: var(--inalca-green);
    background: var(--inalca-green-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    color: white;
    border-color: var(--inalca-green-dark);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.filter-btn.filter-nowa.active {
    background: linear-gradient(135deg, var(--inalca-red) 0%, var(--inalca-red-dark) 100%);
    border-color: var(--inalca-red-dark);
}

.filter-btn.filter-wtrakcie.active {
    background: linear-gradient(135deg, var(--orange) 0%, #F57C00 100%);
    border-color: #F57C00;
}

.filter-btn.filter-zakonczona.active {
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    border-color: var(--inalca-green-dark);
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-count {
 background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
  font-size: 0.85rem;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--inalca-green);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1);
}

.btn-clear-all {
    padding: 12px 24px;
    background: var(--gray-200);
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
}

.btn-clear-all:hover {
    background: var(--inalca-red-light);
    border-color: var(--inalca-red);
    color: var(--inalca-red-dark);
}

/* Results Info */
.results-info {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 25px;
}

.results-text {
    color: var(--gray-700);
    font-size: 1rem;
  display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.results-number,
.results-total {
    color: var(--inalca-green);
    font-size: 1.3rem;
    font-weight: 800;
}

/* Awarie List */
.awarie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
}

/* Enhanced Awaria Card */
.awaria-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.awaria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--inalca-green);
    transition: all 0.3s ease;
}

.awaria-card.priority-wysoki::before {
    background: linear-gradient(90deg, var(--inalca-red) 0%, #D32F2F 100%);
}

.awaria-card.priority-normalny::before {
    background: linear-gradient(90deg, var(--orange) 0%, #F57C00 100%);
}

.awaria-card.priority-niski::before {
    background: linear-gradient(90deg, var(--inalca-green) 0%, #388E3C 100%);
}

.awaria-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--inalca-green);
}

.awaria-card.priority-wysoki:hover {
    border-color: var(--inalca-red);
}

.awaria-card.priority-normalny:hover {
    border-color: var(--orange);
}

/* Awaria Card Header */
.awaria-card-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
  border-bottom: 2px solid var(--gray-100);
}

.awaria-id {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
}

.awaria-id .id-label {
    color: var(--gray-500);
  font-size: 1.2rem;
}

.awaria-badges {
    display: flex;
  gap: 10px;
    flex-wrap: wrap;
}

/* Enhanced Priority Badge */
.priority-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.priority-badge.priority-wysoki {
    background: linear-gradient(135deg, var(--inalca-red) 0%, #D32F2F 100%);
    color: white;
}

.priority-badge.priority-normalny {
    background: linear-gradient(135deg, var(--orange) 0%, #F57C00 100%);
color: white;
}

.priority-badge.priority-niski {
    background: linear-gradient(135deg, var(--inalca-green) 0%, #388E3C 100%);
    color: white;
}

/* Enhanced Status Badge */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
gap: 6px;
}

.status-badge.status-nowa {
    background: var(--inalca-red-light);
    color: var(--inalca-red-dark);
  border: 2px solid var(--inalca-red);
}

.status-badge.status-wtrakcie {
 background: var(--orange-light);
    color: #E65100;
    border: 2px solid var(--orange);
}

.status-badge.status-zakonczona {
    background: var(--inalca-green-light);
    color: var(--inalca-green-dark);
    border: 2px solid var(--inalca-green);
}

/* Awaria Card Content */
.awaria-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.awaria-machine,
.awaria-description {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.awaria-machine .icon,
.awaria-description .icon {
 font-size: 1.5rem;
    flex-shrink: 0;
}

.machine-info,
.description-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.machine-info .label,
.description-info .label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.machine-info .value {
    font-size: 1.2rem;
    color: var(--gray-900);
    font-weight: 800;
}

.description-info .value {
    font-size: 0.95rem;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Awaria Details Grid */
.awaria-details-grid {
    display: grid;
  grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--gray-100);
}

.awaria-details-grid .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
background: var(--gray-50);
    border-radius: 12px;
    border-left: 3px solid var(--inalca-green);
}

.awaria-details-grid .detail-item .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
 gap: 4px;
}

.detail-content .label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-content .value {
    font-size: 0.95rem;
    color: var(--gray-900);
    font-weight: 700;
}

.detail-content .time {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Awaria Card Footer */
.awaria-card-footer {
    padding: 15px 25px;
    background: var(--gray-50);
    border-top: 2px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
}

.btn-details {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
transition: all 0.3s ease;
 display: flex;
    align-items: center;
    gap: 8px;
}

.btn-details:hover {
 transform: translateX(5px);
 box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

/* No Data Container */
.no-data-container {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.no-data-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.no-data-container h3 {
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: 10px;
}

.no-data-container p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Responsive Adjustments for Lista Zgłoszeń */
@media (max-width: 1400px) {
    .awarie-list {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    }
}

@media (max-width: 1024px) {
    .awarie-list {
    grid-template-columns: 1fr;
    }

    .list-header {
    flex-direction: column;
   align-items: flex-start;
 gap: 20px;
    }

    .header-actions {
     width: 100%;
        flex-direction: column;
    }

  .awaria-details-grid {
  grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .list-container {
        padding: 15px;
    }

    .list-header {
     padding: 20px;
        border-radius: 15px 15px 0 0;
}

    .list-header .header-left h1 {
        font-size: 1.6rem;
    }

    .search-filters-section {
    padding: 20px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
  width: 100%;
     justify-content: space-between;
    }

 .filters-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .awaria-card-header {
    flex-direction: column;
      align-items: flex-start;
gap: 15px;
    }

    .awaria-badges {
        width: 100%;
    }

    .results-info {
    padding: 12px 20px;
  }
}

/* ========== SZCZEGÓŁY AWARII - ENHANCED STYLES ========== */
.details-container {
    flex: 1;
    max-width: 1600px;
 width: 100%;
    margin: 0 auto;
    padding: 30px;
}

.details-header {
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.3);
    display: flex;
    justify-content: space-between;
align-items: center;
    margin-bottom: 30px;
}

.details-header .header-left {
  display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.details-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
  margin: 0;
}

.details-grid {
    display: grid;
grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.details-left,
.details-right {
    display: flex;
  flex-direction: column;
    gap: 25px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.info-item {
 padding: 15px;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--inalca-green);
 display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item .label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 700;
}

/* Description Box */
.description-box {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--inalca-green);
    line-height: 1.8;
    color: var(--gray-800);
    font-size: 1rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
  content: '';
    position: absolute;
    left: 15px;
  top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, var(--inalca-green) 0%, var(--gray-300) 100%);
}

.timeline-item {
    position: relative;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.timeline-item:hover {
  border-color: var(--inalca-green);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.15);
    transform: translateX(5px);
}

.timeline-item.completed {
    background: linear-gradient(135deg, #fff 0%, var(--inalca-green-light) 100%);
    border-color: var(--inalca-green);
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 20px;
  width: 16px;
    height: 16px;
    background: var(--inalca-green);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--gray-200);
}

.timeline-item.completed .timeline-dot {
    background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
    box-shadow: 0 0 0 3px var(--inalca-green-light);
}

.timeline-time {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-title {
 font-size: 1.1rem;
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-desc {
font-size: 0.95rem;
    color: var(--gray-700);
}

/* Finish Section */
.finish-section {
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 15px;
}

.finish-section h3 {
    color: var(--gray-900);
 font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.finish-section p {
    color: var(--gray-800);
    line-height: 1.7;
  margin: 0;
    font-size: 1rem;
}

/* Finish Card */
.finish-card {
    background: linear-gradient(135deg, white 0%, var(--inalca-green-light) 100%);
    border: 2px solid var(--inalca-green);
}

.time-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--inalca-green);
    margin: 10px 0;
    text-align: center;
}

.alert-info {
    background: #E3F2FD;
    color: #01579B;
    border-left: 5px solid #2196F3;
}

/* Stats Card */
.stats-card .stat-item {
    padding: 15px;
    background: var(--gray-50);
  border-radius: 12px;
    display: flex;
  justify-content: space-between;
 align-items: center;
    margin-bottom: 15px;
    border-left: 4px solid var(--inalca-green);
}

.stats-card .stat-label {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 600;
}

.stats-card .stat-value {
    font-size: 1.3rem;
    color: var(--gray-900);
    font-weight: 800;
}

.text-red {
    color: var(--inalca-red) !important;
}

.text-green {
    color: var(--inalca-green) !important;
}

/* Actions Card */
.actions-card {
    background: var(--gray-50);
}

.actions-card h3 {
    font-size: 1.2rem;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

/* Responsive for Details */
@media (max-width: 1200px) {
    .details-grid {
  grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .details-container {
        padding: 15px;
    }

    .details-header {
      flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .details-header h1 {
        font-size: 1.5rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -28px;
    }
}

/* ========== REPORT PAGE - RAPORT ========== */
.report-summary {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.report-summary p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.report-summary strong {
    color: var(--inalca-green);
    font-weight: 700;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
 position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--inalca-green) 0%, var(--inalca-red) 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    color: var(--gray-900);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

/* Stat Items */
.stat-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
  display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--inalca-green);
    transition: all 0.3s ease;
}

.stat-item:hover {
 background: var(--inalca-green-light);
    transform: translateX(5px);
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

/* Highlight Colors for Stats */
.highlight-red {
    color: var(--inalca-red) !important;
}

.highlight-orange {
    color: var(--orange) !important;
}

.highlight-green {
    color: var(--inalca-green) !important;
}

/* Priority Labels */
.priority-wysoki {
    color: var(--inalca-red);
    font-weight: 700;
}

.priority-normalny {
    color: var(--orange);
    font-weight: 700;
}

.priority-niski {
    color: var(--inalca-green);
    font-weight: 700;
}

/* Report Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.report-table thead {
 background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
}

.report-table thead th {
 padding: 15px 20px;
    text-align: left;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
}

.report-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.report-table tbody tr:hover {
    background: var(--inalca-green-light);
}

.report-table tbody tr.highlight-row {
    background: linear-gradient(135deg, #fff 0%, var(--orange-light) 100%);
}

.report-table tbody tr.highlight-row:hover {
    background: var(--orange-light);
}

.report-table tbody td {
  padding: 15px 20px;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.report-table tbody td strong {
    color: var(--gray-900);
    font-weight: 700;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.badge-success {
    background: #C8E6C9;
    color: #2E7D32;
}

.badge-warning {
    background: #FFE0B2;
 color: #E65100;
}

.badge-danger {
    background: #FFCDD2;
    color: #C62828;
}

.badge-info {
    background: #B3E5FC;
    color: #01579B;
}

.badge-secondary {
    background: var(--gray-300);
    color: var(--gray-700);
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.loading-container p {
  margin-top: 20px;
    color: var(--gray-600);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Spinner Animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--gray-200);
    border-top-color: var(--inalca-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Button */
.btn-success {
background: linear-gradient(135deg, var(--inalca-green) 0%, var(--inalca-green-dark) 100%);
  color: white;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
}

.btn-success:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-success:disabled:hover {
transform: none;
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--inalca-red) 0%, var(--inalca-red-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-danger:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-danger:disabled:hover {
    transform: none;
}

/* Permission Badge */
.permission-badge {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    border: 2px solid #F57C00;
 border-radius: 12px;
    padding: 12px 16px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.permission-icon {
    font-size: 1.2rem;
}

.permission-text {
    font-size: 0.9rem;
font-weight: 700;
    color: #E65100;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Start Repair Card */
.start-repair-card {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid #2196F3;
}

.start-repair-card h2 {
  color: #1976D2;
}

.info-text {
    color: #0D47A1;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.time-reaction-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.time-btn {
    padding: 12px;
    background: white;
    border: 2px solid #2196F3;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1976D2;
}

.time-btn:hover {
    background: #2196F3;
    color: white;
  transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.manual-time-reaction {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed #2196F3;
}

.manual-time-reaction label {
    display: block;
    color: #1976D2;
    font-weight: 600;
    margin-bottom: 10px;
}

.manual-input-group {
    display: flex;
    gap: 10px;
}

.manual-input-group input {
    flex: 1;
}

.highlight-blue {
    color: #2196F3 !important;
    font-weight: 800 !important;
}
