/* style.css */
:root{--bg1:#0b1220;--bg2:#111a2e;--muted:#94a3b8;}
body{min-height:100vh;background:radial-gradient(1200px 800px at 20% 10%, #1f2a44 0%, var(--bg1) 40%, var(--bg2) 100%);color:#e5e7eb;}
a{text-decoration:none;}
.container-narrow{max-width:980px;}
.brand{letter-spacing:.5px;font-weight:800;}
.card{background:rgba(15,23,42,.75);border:1px solid rgba(148,163,184,.18);backdrop-filter:blur(10px);border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.25);}
.badge-soft{background:rgba(148,163,184,.14);border:1px solid rgba(148,163,184,.18);color:#e5e7eb;}
.flashcard{max-width:520px;margin:0 auto;border-radius:22px;}
.flashcard .card-body{padding:22px 18px;}
.fc-front{font-size:clamp(1.35rem, 3.8vw, 1.9rem);font-weight:700;}
.fc-back{margin-top:10px;font-size:clamp(1.1rem, 3.2vw, 1.5rem);color:#cbd5e1;}
.hint{color:var(--muted);font-size:.95rem;}
.btn{border-radius:14px;padding:.7rem 1rem;}
.btn-wide{min-width:160px;}
.footer-actions{position:sticky;bottom:0;background:linear-gradient(to top, rgba(11,18,32,.92), rgba(11,18,32,0));padding:12px 0 4px;}
input[type="file"], input[type="text"]{background:rgba(148,163,184,.08);border:1px solid rgba(148,163,184,.20);border-radius:14px;padding:12px;color:#e5e7eb;}
.form-control:focus{box-shadow:none;border-color:rgba(148,163,184,.45);}
.table{color:#e5e7eb;}
.table td,.table th{border-color:rgba(148,163,184,.18);}


/* Mocniej widoczny tytuł rozdziału na ciemnym tle */
.chapter-title{
  color:#ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  letter-spacing: .2px;
}


/* Lepsza czytelność formularzy na ciemnym tle */
.form-label, label, .form-check-label{
  color:#e5e7eb;
}
.form-control::placeholder{
  color: rgba(226, 232, 240, .55);
}
.exam-instructions{
  color:#cbd5e1;
}
.exam-question{
  color:#f8fafc;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}


/* Bootstrap override (żeby tekst na kartach nie był czarny) */
:root{
  --bs-body-bg: #0b1220;
  --bs-body-color: #e5e7eb;
  --bs-secondary-color: #cbd5e1;
  --bs-secondary-bg: rgba(148,163,184,.14);
}
.card{ color:#e5e7eb; }
.fc-front, .fc-back{
  color:#f8fafc;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.fc-back{ color:#e2e8f0; }
.hint{ color:#cbd5e1; }

.badge-soft{ font-weight: 600; }


/* v2.5 – twarde wymuszenie jasnych kolorów (żeby słowa były zawsze czytelne) */
#front, #back, .fc-front, .fc-back{
  color:#ffffff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.65) !important;
}
.fc-front{ font-weight: 800 !important; }
.fc-back{ color:#e2e8f0 !important; font-weight: 700 !important; }

.flashcard, .card{
  background: rgba(15,23,42,.88) !important;
  color:#e5e7eb !important;
}

.card-body, .container, .table, .badge, .progress, .progress-bar{
  color:#e5e7eb;
}


/* v2.7 – wyniki egzaminu: wymuś jasny tekst w tabelach Bootstrapa */
.table, .table td, .table th, .table thead th, .table tbody td{
  color:#e5e7eb !important;
}
.table thead th{
  color:#f8fafc !important;
  font-weight: 700;
}
