/* FloTrac-HPI Study Files — ktomadyzur.pl colour scheme */

/* ── Colour variables (light + force-override dark mode) ── */
:root,
:root.dark {
  --blue:             #6366f1;
  --dark-blue:        #4f46e5;
  --background:       #f1f5f9;
  --surfacePrimary:   #ffffff;
  --surfaceSecondary: rgba(99,102,241,0.08);
  --textPrimary:      #64748b;
  --textSecondary:    #1e293b;
  --borderPrimary:    rgba(0,0,0,0.10);
  --borderSecondary:  rgba(0,0,0,0.20);
  --divider:          rgba(0,0,0,0.06);
  --hover:            rgba(99,102,241,0.07);
  --action:           #4f46e5;
}

/* ── Login page ── */
#login {
  background: #f1f5f9 !important;
  color-scheme: light;
}

#login img {
  display: block !important;
  height: 3.5em !important;
  width: auto !important;
  margin: 0 auto 0.5em !important;
}

#login h1 {
  color: #4f46e5 !important;
  font-size: 1.6em !important;
  font-weight: 700 !important;
  margin-bottom: 1em !important;
}

#login form {
  background: #ffffff !important;
  border-top: 4px solid #6366f1 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(99,102,241,0.16), 0 2px 8px rgba(0,0,0,0.06) !important;
  padding: 2em 1.5em 1.5em !important;
  color-scheme: light;
}

/* Force light inputs regardless of OS dark mode */
#login input,
#login input.input {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 6px !important;
  padding: 0.6em 1em !important;
  width: 100% !important;
  margin-bottom: 0.6em !important;
  font-size: 1em !important;
  color-scheme: light;
}

#login input::placeholder         { color: #94a3b8 !important; }
#login input:focus                 {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18) !important;
  outline: none !important;
  background: #ffffff !important;
}

#login button,
#login .button {
  background: #6366f1 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  width: 100% !important;
  padding: 0.65em !important;
  margin-top: 0.3em !important;
}
#login button:hover { background: #4f46e5 !important; }

#login p { color: #6366f1 !important; }

/* ── Top header bar (visible after login) ── */
header {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 12px rgba(79,70,229,0.30) !important;
  color: #ffffff !important;
}

header a,
header a:hover  { color: #ffffff !important; }
header title    { color: #ffffff !important; font-weight: 600 !important; }

/* Show logo in header */
header img {
  display: block !important;
  height: 2em !important;
  width: auto !important;
}

header .action          { color: #ffffff !important; }
header .action:hover    { background: rgba(255,255,255,0.18) !important; border-radius: 4px; }

/* ── Buttons ── */
.button--blue           { background: #6366f1 !important; }
.button--blue:hover     { background: #4f46e5 !important; }
.button--flat           { color: #4f46e5 !important; }
.button--flat:hover     { background: rgba(99,102,241,0.08) !important; }

/* ── Dashboard nav tabs ── */
.dashboard #nav ul li.active {
  border-color: #6366f1 !important;
  color:        #6366f1 !important;
}

/* ── File list ── */
.item:hover    { background: rgba(99,102,241,0.05) !important; }
.item.selected { background: rgba(99,102,241,0.12) !important; border-color: #6366f1 !important; }

/* ── Upload progress ── */
progress::-webkit-progress-value { background: #6366f1 !important; }
progress::-moz-progress-bar      { background: #6366f1 !important; }
