/* ===================================================================== */
/* BiotechGYM - Light Visual Theme with Dark Top Banner                  */
/* ===================================================================== */

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.pulse-glow {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  animation: pulse-subtle 3s infinite ease-in-out;
}

/* Global Light Background and Defaults */
html, body {
  background-color: #f8fafc !important; /* Soft, clean light canvas */
  color: #0f172a !important; /* Deep slate-900 for optimal contrast */
  overflow-x: hidden;
  max-width: 100vw;
}

main {
  background-color: #f8fafc !important;
}

/* ===================================================================== */
/* 1. TOP BANNER / HEADER: STRICTLY BLACK (Requested by User)           */
/* ===================================================================== */
header {
  background-color: #020617 !important; /* Solid Slate-950 */
  border-bottom: 1px solid #1e293b !important;
  color: #ffffff !important;
}

header a, 
header button, 
header span, 
header div, 
header p {
  /* Prevent light theme inheritance inside header */
}

header .text-white {
  color: #ffffff !important;
}

header .text-slate-400 {
  color: #94a3b8 !important;
}

header .text-slate-300 {
  color: #cbd5e1 !important;
}

header .bg-slate-900 {
  background-color: #0f172a !important;
}

header .border-slate-800 {
  border-color: #1e293b !important;
}

/* ===================================================================== */
/* 2. CARDS & PANELS (Glass-Panel converted to Light Cards)              */
/* ===================================================================== */
.glass-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important; /* Slate-200 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel-hover:hover {
  border-color: #06b6d4 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.15) !important;
}

/* ===================================================================== */
/* 3. TYPOGRAPHY & HIGH CONTRAST TEXT COLORS                             */
/* ===================================================================== */
/* Headings outside header */
main h1, main h2, main h3, main h4, main h5,
main h1.text-white, main h2.text-white, main h3.text-white, main h4.text-white,
div[id$="Modal"] h1, div[id$="Modal"] h2, div[id$="Modal"] h3, div[id$="Modal"] h4 {
  color: #0f172a !important; /* Slate-900 */
}

/* Text elements that had text-white, EXCEPT buttons/badges with colored or dark backgrounds */
main :not(header):not(header *):not(button):not(a.bg-gradient-to-r):not(button.bg-gradient-to-r):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-emerald"]):not([class*="bg-cyan"]):not([class*="bg-red"]):not([class*="bg-amber"]):not([class*="bg-slate-800"]):not([class*="bg-slate-700"]):not([class*="bg-black"]).text-white,
div[id$="Modal"] :not(button):not(a.bg-gradient-to-r):not(button.bg-gradient-to-r):not([class*="bg-purple"]):not([class*="bg-cyan"]):not([class*="bg-slate-800"]).text-white {
  color: #0f172a !important;
}

/* ===================================================================== */
/* 3.B DARK BADGES, PILLS & CHIPS (White text on dark elements)          */
/* ===================================================================== */
main span.bg-slate-800:not(.timeline-phase-pill):not(.exercise-quota-pill),
main span[class*="bg-slate-800"]:not(.timeline-phase-pill):not(.exercise-quota-pill),
main span.bg-slate-700:not(.timeline-phase-pill):not(.exercise-quota-pill),
main span[class*="bg-slate-700"]:not(.timeline-phase-pill):not(.exercise-quota-pill),
main span.bg-black:not(.timeline-phase-pill):not(.exercise-quota-pill),
main span[class*="bg-black"]:not(.timeline-phase-pill):not(.exercise-quota-pill),
main .bg-slate-800.text-white:not(td):not(tr):not(.timeline-phase-pill):not(.exercise-quota-pill),
main [class*="bg-slate-800"].text-white:not(td):not(tr):not(.timeline-phase-pill):not(.exercise-quota-pill),
main [class*="bg-slate-700"].text-white:not(td):not(tr):not(.timeline-phase-pill):not(.exercise-quota-pill),
main [class*="bg-black"].text-white:not(td):not(tr):not(.timeline-phase-pill):not(.exercise-quota-pill),
div[id$="Modal"] span.bg-slate-800:not(.timeline-phase-pill):not(.exercise-quota-pill),
div[id$="Modal"] [class*="bg-slate-800"].text-white:not(.timeline-phase-pill):not(.exercise-quota-pill) {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

main span.bg-slate-800:not(.timeline-phase-pill):not(.exercise-quota-pill) *:not(.timeline-phase-pill):not(.exercise-quota-pill),
main span[class*="bg-slate-800"]:not(.timeline-phase-pill):not(.exercise-quota-pill) *:not(.timeline-phase-pill):not(.exercise-quota-pill),
main [class*="bg-slate-800"].text-white:not(td):not(tr) *:not(.timeline-phase-pill):not(.exercise-quota-pill),
main [class*="bg-slate-700"].text-white:not(td):not(tr) *:not(.timeline-phase-pill):not(.exercise-quota-pill),
main [class*="bg-black"].text-white:not(td):not(tr) *:not(.timeline-phase-pill):not(.exercise-quota-pill) {
  color: #ffffff !important;
}

/* ===================================================================== */
/* 3.C TIMELINE PHASE PILLS (Black text on light pill badge)             */
/* ===================================================================== */
#timeline-buttons-grid .timeline-phase-pill,
#timeline-buttons-grid span[class*="rounded-full"],
.timeline-phase-pill,
span.timeline-phase-pill {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#timeline-buttons-grid .timeline-phase-pill *,
#timeline-buttons-grid span[class*="rounded-full"] *,
.timeline-phase-pill *,
span.timeline-phase-pill * {
  color: #0f172a !important;
}

/* ===================================================================== */
/* 3.D EXERCISE QUOTA PILLS (Weekly quota badges in exercise headers)    */
/* ===================================================================== */
.exercise-quota-pill,
span.exercise-quota-pill,
main .exercise-quota-pill {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.exercise-quota-pill *,
span.exercise-quota-pill * {
  background-color: transparent !important;
}

.exercise-quota-pill span:first-child {
  color: #475569 !important;
}

/* Secondary & Subtitle Text */
main .text-slate-400,
div[id$="Modal"] .text-slate-400 {
  color: #475569 !important; /* Slate-600: strong readable contrast on light backgrounds */
}

main .text-slate-500,
div[id$="Modal"] .text-slate-500 {
  color: #64748b !important; /* Slate-500 */
}

main .text-slate-300,
div[id$="Modal"] .text-slate-300,
main .text-slate-200,
div[id$="Modal"] .text-slate-200,
main .text-slate-100,
div[id$="Modal"] .text-slate-100 {
  color: #334155 !important; /* Slate-700 */
}

/* ===================================================================== */
/* 4. INNER TILES, BOXES, CARD HEADERS & BORDERS                         */
/* ===================================================================== */
/* Dark slate inner tiles converted to soft clean light backgrounds */
main .bg-slate-900,
main .bg-slate-900\/90,
main .bg-slate-900\/80,
main .bg-slate-900\/70,
main .bg-slate-900\/60,
main .bg-slate-900\/50,
main .bg-slate-900\/40,
main .bg-slate-950,
main .bg-slate-950\/90,
main .bg-slate-950\/80,
main .bg-slate-950\/70,
main .bg-slate-950\/60,
main .bg-slate-950\/40,
div[id$="Modal"] .bg-slate-900,
div[id$="Modal"] .bg-slate-900\/90,
div[id$="Modal"] .bg-slate-950,
div[id$="Modal"] .bg-slate-950\/90,
main [class*="from-slate-900"],
main [class*="via-slate-850"] {
  background-image: none !important;
  background-color: #f1f5f9 !important; /* Slate-100 */
}

/* Borders */
main .border-slate-800,
main .border-slate-800\/80,
main .border-slate-800\/60,
main .border-slate-700,
main .border-slate-700\/80,
div[id$="Modal"] .border-slate-800,
div[id$="Modal"] .border-slate-700 {
  border-color: #e2e8f0 !important; /* Slate-200 */
}

main .divide-slate-800,
main .divide-slate-800\/60,
main .divide-slate-700 {
  border-color: #e2e8f0 !important;
}

/* Decorative background blur blobs in cards */
.blur-3xl {
  opacity: 0.25 !important;
}

/* ===================================================================== */
/* 5. BADGES & CHIPS (Light pastel backgrounds with vivid contrast)      */
/* ===================================================================== */
/* Purple Badges */
main [class*="bg-purple-950"],
div[id$="Modal"] [class*="bg-purple-950"] {
  background-color: #f3e8ff !important; /* Purple-100 */
  border-color: #d8b4fe !important; /* Purple-300 */
  color: #7e22ce !important; /* Purple-700 */
}

main [class*="bg-purple-950"] *,
div[id$="Modal"] [class*="bg-purple-950"] * {
  color: #7e22ce !important;
}

main .text-purple-400,
div[id$="Modal"] .text-purple-400 {
  color: #7e22ce !important;
}

main .text-purple-300,
div[id$="Modal"] .text-purple-300 {
  color: #6b21a8 !important;
}

/* Cyan Badges */
main [class*="bg-cyan-950"],
div[id$="Modal"] [class*="bg-cyan-950"] {
  background-color: #ecfeff !important; /* Cyan-100 */
  border-color: #a5f3fc !important; /* Cyan-300 */
  color: #0e7490 !important; /* Cyan-700 */
}

main [class*="bg-cyan-950"] *,
div[id$="Modal"] [class*="bg-cyan-950"] * {
  color: #0e7490 !important;
}

main .text-cyan-400,
main .text-cyan-300,
div[id$="Modal"] .text-cyan-400 {
  color: #0891b2 !important; /* Cyan-600 */
}

/* Emerald Badges */
main [class*="bg-emerald-950"],
div[id$="Modal"] [class*="bg-emerald-950"] {
  background-color: #dcfce7 !important; /* Emerald-100 */
  border-color: #86efac !important; /* Emerald-300 */
  color: #15803d !important; /* Emerald-700 */
}

main [class*="bg-emerald-950"] *,
div[id$="Modal"] [class*="bg-emerald-950"] * {
  color: #15803d !important;
}

main .text-emerald-400 {
  color: #16a34a !important; /* Emerald-600 */
}

/* Red Badges */
main [class*="bg-red-950"],
div[id$="Modal"] [class*="bg-red-950"] {
  background-color: #fee2e2 !important; /* Red-100 */
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

main [class*="bg-red-950"] *,
div[id$="Modal"] [class*="bg-red-950"] * {
  color: #b91c1c !important;
}

main button[class*="bg-red-950"]:hover {
  background-color: #fecaca !important;
  color: #991b1b !important;
  border-color: #f87171 !important;
}

main .text-red-400,
main .text-red-300 {
  color: #dc2626 !important;
}

/* Amber Badges */
main [class*="bg-amber-950"],
div[id$="Modal"] [class*="bg-amber-950"] {
  background-color: #fef3c7 !important; /* Amber-100 */
  border-color: #fde68a !important;
  color: #b45309 !important;
}

main [class*="bg-amber-950"] *,
div[id$="Modal"] [class*="bg-amber-950"] * {
  color: #b45309 !important;
}

main .text-amber-400 {
  color: #d97706 !important;
}

/* ===================================================================== */
/* 6. BUTTONS & CHIPS                                                    */
/* ===================================================================== */
/* Secondary Slate Buttons (e.g. Edit Profile, Back to Dashboard) */
main a.bg-slate-800,
main button.bg-slate-800,
main a.bg-slate-900,
main button.bg-slate-900,
div[id$="Modal"] button.bg-slate-800,
div[id$="Modal"] button.bg-slate-900 {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0e7490 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

main a.bg-slate-800:hover,
main button.bg-slate-800:hover,
main a.bg-slate-900:hover,
main button.bg-slate-900:hover,
div[id$="Modal"] button.bg-slate-800:hover,
div[id$="Modal"] button.bg-slate-900:hover {
  background-color: #f8fafc !important;
  border-color: #06b6d4 !important;
  color: #0891b2 !important;
}

/* Exercise Quick Jump Chips */
main a[href*="#ex-"],
main a[href*="#client-ex-"] {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

main a[href*="#ex-"]:hover,
main a[href*="#client-ex-"]:hover {
  border-color: #06b6d4 !important;
  color: #0891b2 !important;
  background-color: #ecfeff !important;
}

/* Direct Analyze button on exercise cards */
main button.bg-cyan-950\/80,
main a.bg-cyan-950\/80 {
  background-color: #ecfeff !important;
  border: 1px solid #a5f3fc !important;
  color: #0891b2 !important;
}

main button.bg-cyan-950\/80:hover,
main a.bg-cyan-950\/80:hover {
  background-color: #cffafe !important;
  border-color: #06b6d4 !important;
  color: #0e7490 !important;
}

/* Purple secondary action buttons */
main a.bg-purple-950\/80,
main button.bg-purple-950\/80 {
  background-color: #faf5ff !important;
  border: 1px solid #d8b4fe !important;
  color: #7e22ce !important;
}

main a.bg-purple-950\/80:hover,
main button.bg-purple-950\/80:hover {
  background-color: #f3e8ff !important;
  border-color: #a855f7 !important;
  color: #6b21a8 !important;
}

/* Primary Gradient Buttons */
button[class*="from-cyan"],
a[class*="from-cyan"] {
  color: #020617 !important; /* Dark text on bright cyan gradient */
}

button[class*="from-purple"],
a[class*="from-purple"] {
  color: #ffffff !important; /* White text on purple gradient */
}

/* ===================================================================== */
/* 7. TABLES (Athletes Roster, Reports Breakdown, Admin Tables)          */
/* ===================================================================== */
main thead,
main thead tr,
div[id$="Modal"] thead {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

main thead th,
div[id$="Modal"] thead th {
  color: #475569 !important;
}

main tbody tr {
  background-color: #ffffff !important;
}

main tbody tr:hover,
main table tr:hover {
  background-color: #f8fafc !important;
}

main tbody td,
main table td {
  background-color: transparent !important;
  color: #1e293b !important;
}

main tbody td *,
main table td * {
  background-color: transparent !important;
}

main tbody td.text-white,
main tbody td .text-white,
main tbody tr.text-white,
main table td.text-white,
main table td .text-white {
  color: #1e293b !important;
  background-color: transparent !important;
}

main tbody td a span.text-white,
main table td a span.text-white {
  color: #0f172a !important;
}

/* ===================================================================== */
/* 8. FORM INPUTS & SELECTS                                              */
/* ===================================================================== */
main input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]),
main select,
main textarea,
div[id$="Modal"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]),
div[id$="Modal"] select,
div[id$="Modal"] textarea {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

main input::placeholder,
div[id$="Modal"] input::placeholder {
  color: #94a3b8 !important;
}

main input:focus,
main select:focus,
main textarea:focus,
div[id$="Modal"] input:focus,
div[id$="Modal"] select:focus,
div[id$="Modal"] textarea:focus {
  border-color: #06b6d4 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2) !important;
}

main input[readonly],
main input[disabled],
div[id$="Modal"] input[readonly],
div[id$="Modal"] input[disabled] {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

/* ===================================================================== */
/* 9. MODALS & POPUPS                                                    */
/* ===================================================================== */
#analyzeModal > div,
#addClientModal > div,
#authModal > div,
div[id$="Modal"] > div.glass-panel {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

div[id$="Modal"] button[onclick*="close"] {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
div[id$="Modal"] button[onclick*="close"]:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Modal Drag & Drop zone */
#videoDropZone {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

#videoDropZone:hover {
  border-color: #06b6d4 !important;
  background-color: #ecfeff !important;
}

/* ===================================================================== */
/* 10. SCROLLBARS & FOOTER                                               */
/* ===================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}
