/* ==========================================================================
   KUBATRANS - GLOBAL MASTER STYLE (FINAL VERSION)
   ========================================================================== */
:root {
  --brand-red: #D9232D;       /* Twój Czerwony */
  --brand-red-dark: #b01c25;  /* Ciemniejszy dla hover */
  --brand-black: #111111;     /* Głęboka czerń */
  --brand-gray-bg: #f4f4f4;   /* Tło strony */
  --brand-white: #ffffff;     /* Białe tło kart */
  --text-main: #333333;       /* Główny tekst */
  --icon-lupa: #e0e0e0;       /* Szary kolor lupy */
}

/* --- 1. BAZA STRONY (RESET) --- */
body {
  background-color: var(--brand-gray-bg) !important;
  color: var(--text-main) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Nadpisujemy domyślne kolory Bootstrapa (usuwamy zieleń/niebieski) */
.text-success, .text-info, .text-primary { color: var(--brand-black) !important; }
.bg-success, .bg-info, .bg-primary { background-color: var(--brand-red) !important; color: #fff !important; }
.badge { font-weight: 600; padding: 0.5em 0.8em; }

a { color: var(--brand-red); text-decoration: none; font-weight: 600; }
a:hover { color: var(--brand-red-dark); }

/* --- 2. NAWIGACJA (NAVBAR) --- */
.navbar {
  background-color: var(--brand-black) !important;
  border-bottom: 3px solid var(--brand-red);
  padding: 15px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbar-brand { color: #ffffff !important; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; }
.nav-link { color: #e0e0e0 !important; font-weight: 500; margin-left: 15px; }
.nav-link:hover, .nav-link.active { color: var(--brand-red) !important; }

/* --- 3. HERO SECTION (Strona Główna) --- */
.hero-section {
  background-color: var(--brand-black) !important;
  background-image: none !important; /* Usuwamy stare tła */
  color: #ffffff !important;
  padding: 100px 0;
  text-align: center;
  border-bottom: 5px solid var(--brand-red);
}

.hero-section h1 {
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 10px;
}

/* KLUCZOWE: Napis "Taniej niż w korporacji" -> CZERWONY */
.red-text,
.hero-section h2,
.hero-section h3 {
  color: var(--brand-red) !important; /* WYMUSZONY CZERWONY */
  font-weight: 800 !important;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  margin-bottom: 30px;
}

.hero-section p { color: #cccccc !important; font-size: 1.2rem; }

/* --- 4. PRZYCISKI I WYSZUKIWARKA --- */
/* Przycisk SZUKAJ -> Czerwony */
.btn-primary, .hero-section .btn {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #ffffff !important;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 30px;
  border-radius: 4px;
  transition: all 0.3s;
}
.btn-primary:hover {
  background-color: var(--brand-red-dark) !important;
  border-color: var(--brand-red-dark) !important;
}

.form-control {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px;
}
.form-control:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 0.25rem rgba(217, 35, 45, 0.25);
}

/* --- 5. IKONY (Auto = Czerwone, Lupa = Szara) --- */
/* Domyślnie wszystkie ikony są CZERWONE */
i, .fa, .fas, .far, .bi {
  color: var(--brand-red) !important;
}

/* WYJĄTEK: LUPA -> SZARA */
.fa-search, .bi-search, button i {
  color: var(--icon-lupa) !important;
}

/* --- 6. KARTY I FORMULARZE --- */
.card, .form-container, .schedule-container {
  background-color: var(--brand-white) !important;
  border: 1px solid #ddd;
  border-top: 4px solid var(--brand-red) !important; /* Czerwony pasek */
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-header {
  background-color: #fff;
  color: var(--brand-black);
  font-weight: 700;
  border-bottom: 2px solid #f4f4f4;
}

h2, h3, h4 { color: var(--brand-black); font-weight: 700; }

/* --- 7. TABELE (Grafik, Admin) --- */
.table {
  background-color: #fff;
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-collapse: collapse;
}
.table thead th {
  background-color: var(--brand-black) !important; /* Czarny nagłówek */
  color: #ffffff !important;
  border-bottom: 3px solid var(--brand-red);
  padding: 15px;
  text-transform: uppercase;
  font-weight: 600;
}
.table tbody td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.table-hover tbody tr:hover {
  background-color: rgba(217, 35, 45, 0.05);
}

/* --- 8. STOPKA --- */
footer {
  background-color: var(--brand-black) !important;
  color: #777;
  border-top: 4px solid var(--brand-red);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}
footer a { color: #fff !important; opacity: 0.7; }
footer a:hover { opacity: 1; color: var(--brand-red) !important; }