/* Akshaya Nidhi - shared brand layer (loaded AFTER each panel's own css)
   Same look as the public landing page: ivory + deep maroon + gold,
   Cormorant Garamond headings, Hind body text. */
:root{
  --ak-maroon-950:#2a040c; --ak-maroon-900:#3a0510; --ak-maroon-700:#6e0f26;
  --ak-gold:#d9a937; --ak-gold-light:#f1d58a; --ak-ivory:#fbf6ea; --ak-sand:#f1e7cf;
  --ak-serif:'Cormorant Garamond',Georgia,serif; --ak-sans:'Hind',system-ui,sans-serif;

  --body-bg:#fbf6ea; --box-bg-light:#f6eedb;
  --maroon-900:#3a0510; --maroon-700:#6e0f26;
  --text-main:#2b1a1e; --text-muted:#6b5a5e;
}
body{font-family:var(--ak-sans);background-color:var(--body-bg);color:var(--text-main);font-size:1rem}

/* headings use the logo serif */
h1,h2,h3,h4,.font-brand,.page-title-header,.auth-card h2,.auth-card h4{font-family:var(--ak-serif);font-weight:700;letter-spacing:.01em}
.page-title-header{font-size:1.7rem}
.auth-card h4{font-size:1.6rem}

/* buttons: pill shape, solid gold like the landing page */
.btn-gold{background:var(--ak-gold);color:var(--ak-maroon-900);border:2px solid var(--ak-gold);border-radius:999px;box-shadow:none;font-weight:600;letter-spacing:0}
.btn-gold:hover,.btn-gold:focus{background:var(--ak-gold-light);border-color:var(--ak-gold-light);color:var(--ak-maroon-900);transform:none;box-shadow:none}
.btn-outline-gold{border-radius:999px;border:2px solid var(--ak-maroon-700);color:var(--ak-maroon-700);background:transparent;box-shadow:none}
.btn-outline-gold:hover{background:var(--ak-maroon-700);border-color:var(--ak-maroon-700);color:#fff;transform:none}
.btn-maroon,.btn-primary{border-radius:999px}
.btn-maroon-soft{border-radius:999px}
.btn-outline-maroon{border-radius:999px}
.input-group .btn,.input-group .btn-maroon-soft{border-radius:0 .5rem .5rem 0}
.form-control:focus,.form-select:focus{border-color:var(--ak-gold);box-shadow:0 0 0 .2rem rgba(217,169,55,.25)}

/* cards */
.card,.stat-widget{border-radius:16px}

/* top bar */
.app-navbar{background:var(--ak-ivory);border-bottom:1px solid rgba(217,169,55,.4)}

/* sidebar: deep maroon with gold, same as the landing header */
.app-sidebar{background:var(--ak-maroon-900);border-right:1px solid rgba(217,169,55,.3);box-shadow:2px 0 24px rgba(42,4,12,.25)}
.sidebar-header{background:var(--ak-maroon-950);border-bottom:1px solid rgba(217,169,55,.3);padding:.4rem 1.2rem}
.brand-logo{flex-direction:column;align-items:flex-start;gap:3px}
.sidebar-logo{display:block;height:44px;width:auto}
.role-tag{font:600 .66rem/1 var(--ak-sans);letter-spacing:.14em;color:var(--ak-gold);text-transform:uppercase;padding-left:2px}
.menu-category{color:var(--ak-gold)}
.nav-link-custom{color:#ecdcda}
.nav-link-custom .nav-icon{color:var(--ak-gold)}
.nav-link-custom:hover{background:rgba(241,213,138,.1);color:var(--ak-gold-light)}
.nav-link-custom:hover .nav-icon{color:var(--ak-gold-light)}
.nav-link-custom.active{background:rgba(217,169,55,.17);color:var(--ak-gold-light);border-left:3px solid var(--ak-gold)}
.nav-link-custom.active .nav-icon{color:var(--ak-gold-light)}
.submenu-link{color:#d9c4c3}
.submenu-link::before{color:var(--ak-gold)}
.submenu-link:hover{background:rgba(241,213,138,.08);color:var(--ak-gold-light)}
.submenu-link.active{background:rgba(217,169,55,.14);color:var(--ak-gold-light)}
.sidebar-footer{background:var(--ak-maroon-950);border-top:1px solid rgba(217,169,55,.3)}
.app-sidebar .text-gold-light{color:var(--ak-gold-light)!important}
.app-sidebar .text-maroon-muted{color:#cdb8b6!important}
.app-sidebar .text-gold{color:var(--ak-gold)!important}
.app-sidebar .btn-outline-gold{border-color:var(--ak-gold);color:var(--ak-gold)}
.app-sidebar .btn-outline-gold:hover{background:var(--ak-gold);color:var(--ak-maroon-900)}

/* login pages */
.auth-wrapper{background:radial-gradient(circle at 50% 20%,#5a0c20 0%,#3a0510 55%,#2a040c 100%)}
.auth-wrapper::before{display:none}
.auth-card{background:var(--ak-ivory);border:2px solid var(--ak-gold);border-radius:22px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.auth-logo{display:block;margin:0 auto .4rem;max-width:300px;width:100%;height:auto}
.auth-header{margin-bottom:1.2rem}
.auth-card .text-gold-light{color:var(--ak-maroon-700)!important}
.auth-card .btn-gold{width:100%}

/* ---- fixes round 2 ---- */

/* links maroon instead of Bootstrap blue */
:root{
  --bs-link-color:#6e0f26;
  --bs-link-color-rgb:110,15,38;
  --bs-link-hover-color:#3a0510;
  --bs-link-hover-color-rgb:58,5,16;
}

/* card titles in the logo serif font */
.gold-card h5,.gold-card h6{font-family:var(--ak-serif);font-weight:700;letter-spacing:.01em}
.gold-card h5{font-size:1.45rem}
.gold-card h6{font-size:1.2rem}
.modal-title{font-size:1.35rem}

/* numbers: keep them straight and clear */
h1,h2,h3,h4,.font-brand,.page-title-header{font-variant-numeric:lining-nums}
h3.text-gold,h3.text-warning,.stat-widget h3,.stat-widget h4{font-family:var(--ak-sans);letter-spacing:0}

/* ---- input groups (icon box + input + button) and OTP fields ---- */
.input-group > .form-control:focus,
.input-group > .form-select:focus { z-index: 3; }

/* icon box on the left: solid maroon with a gold icon */
.input-group-text {
  background: linear-gradient(135deg, #7a172a 0%, #4e0d19 100%);
  border: 1.5px solid #4e0d19;
  color: #f1d58a;
  min-width: 46px;
  justify-content: center;
  border-radius: 8px 0 0 8px;
}
/* input right after the icon box: straight left edge */
.input-group > .input-group-text + .form-control { border-left: 0 !important; border-radius: 0 8px 8px 0; }

/* button on the right of an input (Send OTP / Verify OTP / Change Number / eye icon) */
.input-group > .form-control:not(:last-child) { border-radius: 8px 0 0 8px; }
.input-group > .btn {
  border-radius: 0 8px 8px 0;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  gap: .5rem;
}
.input-group > .btn-gold {
  background: var(--ak-gold);
  border: 1.5px solid #b3820a;
  border-left-width: 0;
  color: var(--ak-maroon-900);
}
.input-group > .btn-gold:hover,
.input-group > .btn-gold:focus {
  background: var(--ak-gold-light);
  border-color: #b3820a;
  color: var(--ak-maroon-900);
}
.input-group > .btn-outline-maroon { border-left-width: 0; }
.input-group > .btn:disabled { opacity: .65; }

/* OTP boxes: big, bold, centered digits */
input[autocomplete="one-time-code"] {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--ak-maroon-900) !important;
  text-align: center;
}
input[autocomplete="one-time-code"]::placeholder {
  color: #cdb98f !important;
  font-weight: 400;
}

/* ---- curved ends for input groups (icon box / input / button) ---- */
.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text,
.input-group > .btn {
  border-radius: 0 !important;
}

/* left end of the group */
.input-group > :first-child {
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
}

/* A button is always the right end of the group.
   (":last-child" does not work here: hidden d-none buttons come after it.) */
.input-group > .btn {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* a field with no button after it */
.input-group > .form-control:last-child,
.input-group > .form-select:last-child {
  border-top-right-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* ---- password field: input + eye icon are ONE box and highlight together ---- */
.input-group:has(> .btn-maroon-soft) {
  flex-wrap: nowrap;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid rgba(122, 23, 42, 0.22);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-group:has(> .btn-maroon-soft):focus-within {
  border-color: #7a172a;
  box-shadow: 0 0 0 0.2rem rgba(201, 158, 42, 0.28);
}

/* the input itself: no own border / glow, the box around it does that */
.input-group:has(> .btn-maroon-soft) > .form-control,
.input-group:has(> .btn-maroon-soft) > .form-control:focus {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

/* the eye button: no background, no border, only a maroon icon */
.input-group:has(> .btn-maroon-soft) > .btn.btn-maroon-soft,
.input-group:has(> .btn-maroon-soft) > .btn.btn-maroon-soft:hover,
.input-group:has(> .btn-maroon-soft) > .btn.btn-maroon-soft:focus,
.input-group:has(> .btn-maroon-soft) > .btn.btn-maroon-soft:active {
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  transform: none;
  color: #7a172a;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.input-group:has(> .btn-maroon-soft) > .btn.btn-maroon-soft:hover {
  color: #3a0510;
}

/* ---- every input group highlights as ONE box (icon box + input + button) ---- */
.input-group {
  border-radius: 12px;
  transition: box-shadow 0.15s;
}
.input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(201, 158, 42, 0.28);
}

/* inner field: only the maroon border, the gold glow comes from the whole group */
.input-group > .form-control:focus,
.input-group > .form-select:focus {
  border-color: #7a172a !important;
  box-shadow: none !important;
}

/* a little more breathing space in the sidebar header */
.sidebar-header { padding: 0.75rem 1.2rem 0.7rem; }
.role-tag { margin-top: 2px; }

/* ---- pagination: ivory + maroon + gold (admin and user panels) ---- */
.pagination {
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.pagination .page-link {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  background: #ffffff;
  color: #3a0510;
  border: 1.5px solid rgba(201, 158, 42, 0.55);
  border-radius: 10px !important;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pagination .page-link:hover {
  background: #f5ead4;
  border-color: #7a172a;
  color: #3a0510;
}
.pagination .page-link:focus {
  background: #f5ead4;
  color: #3a0510;
  border-color: #7a172a;
  box-shadow: 0 0 0 0.2rem rgba(201, 158, 42, 0.28);
}

/* current page: solid maroon with gold number */
.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus {
  background: linear-gradient(135deg, #7a172a 0%, #4e0d19 100%);
  border-color: #4e0d19;
  color: #f1d58a;
}

/* disabled prev / next arrows */
.pagination .page-item.disabled .page-link {
  background: #fbf6ea;
  border-color: rgba(201, 158, 42, 0.35);
  color: #a89a8f;
}