/* ==========================================================================
   Priyo Brand System
   Midnight Blue (#191970) anchors trust · Signal Amber (#FFBF00) marks action.
   60 / 30 / 10 — Paper dominates, Midnight structures, Amber accents (one CTA).
   Type: Geist (UI/body) · Instrument Serif (display) · JetBrains Mono (numerals).
   Refs: priyo-brand-guidelines.html + Priyo-Design-Color-Guide.jpeg
   ========================================================================== */
:root {
  --midnight: #191970;
  --midnight-deep: #0F0F4A;
  --midnight-soft: #2D2D8E;
  --midnight-mist: #ECECF5;
  --amber: #FFBF00;
  --amber-deep: #E6AC00;
  --amber-soft: #FFF8E1;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  --ink: #0F172A;       /* text primary  */
  --slate: #64748B;     /* text secondary*/
  --muted: #94A3B8;     /* text muted    */
  --paper: #F8FAFC;     /* app background*/
  --surface: #FFFFFF;
  --border: #E2E8F0;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ===== Auth pages =================================================== */

/* Light-mode surface: paper with a restrained Midnight→Amber atmosphere. */
.priyo-auth-page {
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(255, 191, 0, 0.10) 0%, transparent 60%),
    radial-gradient(70% 60% at -10% 110%, rgba(25, 25, 112, 0.10) 0%, transparent 55%),
    var(--paper) !important;
  font-family: var(--font-sans);
  color: var(--ink);
}

/* Brand wordmark / logo lockup above the card */
.priyo-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  text-decoration: none;
}
.priyo-auth-brand:hover { text-decoration: none; }
.priyo-auth-logo {
  height: 46px;
  width: auto;
  display: block;
}

/* The card itself */
.priyo-auth {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  overflow: hidden;
}
/* Amber signal — the single 10% accent on the surface */
.priyo-auth::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--amber);
}

/* Headlines — editorial serif, Midnight */
.priyo-auth h1 {
  font-family: var(--font-serif);
  font-weight: 400 !important;
  letter-spacing: -0.02em;
  color: var(--midnight) !important;
  line-height: 1.05;
}
.priyo-auth p,
.priyo-auth .text-gray-600 { color: var(--slate) !important; }

/* Labels */
.priyo-auth label,
.priyo-auth .text-gray-700 {
  color: var(--ink) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Inputs — Midnight-anchored, Amber focus ring (overrides per-page blue) */
.priyo-auth input[type="text"],
.priyo-auth input[type="email"],
.priyo-auth input[type="password"],
.priyo-auth input[type="tel"],
.priyo-auth input[type="number"],
.priyo-auth select,
.priyo-auth textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.priyo-auth input[type="text"]:focus,
.priyo-auth input[type="email"]:focus,
.priyo-auth input[type="password"]:focus,
.priyo-auth input[type="tel"]:focus,
.priyo-auth input[type="number"]:focus,
.priyo-auth select:focus,
.priyo-auth textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.25);
}
.priyo-auth input::placeholder { color: var(--muted); }

/* Primary CTA — Amber background, Midnight text. The one action that matters. */
.priyo-auth button[type="submit"],
.priyo-auth .btn-priyo-primary {
  background: var(--amber) !important;
  color: var(--midnight) !important;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s, transform 0.05s;
}
.priyo-auth button[type="submit"]:hover,
.priyo-auth .btn-priyo-primary:hover { background: var(--amber-deep) !important; }
.priyo-auth button[type="submit"]:active { transform: translateY(1px); }

/* Secondary / structural actions — Midnight */
.priyo-auth .btn-priyo-secondary {
  background: var(--midnight) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.priyo-auth .btn-priyo-secondary:hover { background: var(--midnight-deep) !important; }

/* SSO buttons — neutral, outline (third-party marks read clearly) */
.priyo-auth .sso-btn {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans);
  background: var(--surface) !important;
  transition: background 0.18s, border-color 0.18s;
}
.priyo-auth .sso-btn:hover {
  background: var(--paper) !important;
  border-color: var(--midnight-soft) !important;
}

/* Links — Midnight, Amber on hover (structure, not signal) */
.priyo-auth a:not(.sso-btn):not([class*="bg-"]),
.priyo-auth .text-priyo-blue {
  color: var(--midnight) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.priyo-auth a:not(.sso-btn):not([class*="bg-"]):hover,
.priyo-auth .text-priyo-blue:hover { color: var(--amber-deep) !important; }

/* Password-requirements helper box → Midnight mist */
.priyo-auth #password-rules,
.priyo-auth .bg-blue-50 {
  background: var(--midnight-mist) !important;
  color: var(--midnight) !important;
  border-radius: var(--radius-sm);
}

/* Divider line tint */
.priyo-auth .border-gray-200 { border-color: var(--border) !important; }

/* OTP / verification code input — monospace, spaced, centered */
.priyo-auth input#id_otp,
.priyo-auth input[name="otp"] {
  font-family: var(--font-mono);
}

/* Terms footnote */
.priyo-auth .text-gray-500 { color: var(--muted) !important; }

/* ===== Toast notifications (brand semantic colors) ================== */
.toast-notification { border-left-width: 4px; border-radius: var(--radius-sm); }
.toast-notification { background: #FEECEC; border-left-color: var(--error); }
.toast-notification.success { background: #E7F8F1; border-left-color: var(--success); }
.toast-notification.info { background: var(--midnight-mist); border-left-color: var(--info); }
.toast-notification .toast-content { color: var(--ink); }

/* ==========================================================================
   App / account & profile pages (Bootstrap-based surfaces)
   Brand overrides so non-auth pages inherit the identity too.
   ========================================================================== */
body { font-family: var(--font-sans); }

.btn-primary {
  background-color: var(--amber) !important;
  border-color: var(--amber) !important;
  color: var(--midnight) !important;
  font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--amber-deep) !important;
  border-color: var(--amber-deep) !important;
  color: var(--midnight) !important;
}
.btn-secondary {
  background-color: var(--midnight) !important;
  border-color: var(--midnight) !important;
  color: #fff !important;
}
.btn-secondary:hover { background-color: var(--midnight-deep) !important; }
.btn-outline-primary {
  color: var(--midnight) !important;
  border-color: var(--midnight) !important;
}
.btn-outline-primary:hover {
  background-color: var(--midnight) !important;
  color: #fff !important;
}

a { color: var(--midnight); }
a:hover { color: var(--amber-deep); }

.form-control:focus,
.custom-select:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.25) !important;
}

.card { border-radius: var(--radius); border-color: var(--border); }

/* ===== Account/profile top navbar ================================== */
/* Clean paper bar carrying the full Priyo logo (reads on white), aligned
   with page content, subtle border + shadow. Replaces the dark Bootstrap bar. */
.priyo-navbar {
  background: var(--midnight) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  min-height: 60px;
  padding: 0.5rem 0;
}
.priyo-navbar-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-sans) !important;
}
.priyo-navbar-logo { height: 30px; width: auto; display: block; }
.priyo-navbar-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.78) !important;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.priyo-navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.priyo-navbar-toggler .fa { color: #fff; }

/* Sidebar menu — brand hover/active */
.sidebar-menu li a { color: var(--ink) !important; border-radius: var(--radius-sm); }
.sidebar-menu li a i { color: var(--slate); width: 18px; text-align: center; }
.sidebar-menu li:hover { background: var(--midnight-mist) !important; border-radius: var(--radius-sm); }
.sidebar-menu li:hover a,
.sidebar-menu li:hover a i { color: var(--midnight) !important; }

/* Service cards on the account home */
.home-navigation .card { box-shadow: var(--shadow-sm); transition: box-shadow 0.18s, transform 0.18s; }
.home-navigation .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.home-navigation .card .card-title { color: var(--midnight); font-weight: 700; letter-spacing: -0.01em; }

.alert-success { background: #E7F8F1; border-color: var(--success); color: #0B6B4F; }
.alert-warning { background: #FEF6E7; border-color: var(--warning); color: #8A5A00; }
.alert-danger,
.alert-error { background: #FEECEC; border-color: var(--error); color: #9B2C2C; }
.alert-info { background: var(--midnight-mist); border-color: var(--info); color: var(--midnight); }

.badge-primary { background-color: var(--midnight) !important; color: #fff !important; }
.badge-warning { background-color: var(--amber) !important; color: var(--midnight) !important; }
.badge-success { background-color: var(--success) !important; color: #fff !important; }

/* ==========================================================================
   Profile page — section cards, key/value rows, badges, and modals
   ========================================================================== */
.profile-content { max-width: 1120px; }

/* Section cards (Basic info / Contact info / Personal info) */
.profile-info {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-info .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.profile-info .card-title h5 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--midnight);
}
.profile-info .card-body { padding: 6px 24px 12px; }

/* Key / value rows */
.profile-info .card-body .container { border-bottom: 1px solid var(--border); padding: 14px 0; }
.profile-info .card-body .container .row { color: var(--slate); }
.profile-info .card-body .container .row .info-value { color: var(--ink); font-weight: 500; }
.profile-info .card-body .container .row .info-value p { margin: 0; }

/* "Update …" pill buttons (and the modal's Upload Photo pill) */
.btn-rounded, .btn-sm-rounded {
  border-radius: 999px !important;
  background: var(--midnight-mist) !important;
  color: var(--midnight) !important;
  border: none !important;
  font-weight: 600;
  font-family: var(--font-sans);
}
.btn-rounded:hover, .btn-sm-rounded:hover { background: #DCDCEF !important; color: var(--midnight-deep) !important; }
.btn-rounded i, .btn-sm-rounded i { color: var(--amber-deep); }

/* Verified / Not-verified badges → soft pills */
.profile-info .badge { border-radius: 999px; padding: 0.42em 0.85em; font-weight: 600; font-size: 0.78rem; }
.profile-info .badge-success { background-color: #E7F8F1 !important; color: #0B6B4F !important; }
.profile-info .badge-danger { background-color: #FEECEC !important; color: #9B2C2C !important; }

/* Avatars */
.profile-photo #image-show, .thumb-100, .thumb-50 { border: 2px solid var(--border); object-fit: cover; }

/* ----- Modals (profile edit dialogs) ----- */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 24px; align-items: center; }
.modal-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--midnight);
}
.modal-header .close { color: var(--slate); opacity: 1; text-shadow: none; font-weight: 400; }
.modal-header .close:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 1rem; }
.modal-body .form-group label { color: var(--ink); font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.modal-body .form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--ink);
}
.modal-footer { border-top: 1px solid var(--border); padding: 16px 24px; }
/* Primary modal action gets full weight; align it to the right */
.modal-footer .btn-primary { padding: 0.55rem 1.4rem; }
