/* =====================================================================
   Magically Me — Admin brand theme
   ---------------------------------------------------------------------
   This file is layered ON TOP of AdminLTE + style.css. It only overrides
   look-and-feel (colours, fonts, logo, spacing). It changes no behaviour.
   To fully undo the rebrand: remove the two <link>/font lines that load
   this file (see templates/base/css.html) — nothing else depends on it.

   Brand: deep purple + lime green (#8BDE3C). Sora for headings, Inter body.
   ===================================================================== */

:root {
  --mm-plum:        #2B193C;   /* deep brand purple (sidebar base)      */
  --mm-plum-2:      #382250;   /* slightly lifted purple (hover/panel)  */
  --mm-plum-3:      #1E1029;   /* darkest purple (logo area)            */
  --mm-lime:        #8BDE3C;   /* primary lime accent                   */
  --mm-lime-600:    #6FBE2A;   /* lime pressed/hover                    */
  --mm-ink:         #1F1630;   /* body text on white                    */
  --mm-muted:       #6E6580;   /* secondary text                        */
  --mm-line:        #ECE8F2;   /* hairline borders on white             */
  --mm-bg:          #FFFFFF;   /* content background                    */
  --mm-bg-soft:     #F7F5FB;   /* soft panel background                 */
  --mm-radius:      14px;
  --mm-radius-sm:   10px;
  --mm-shadow:      0 6px 22px rgba(43, 25, 60, 0.08);
}

/* ---------- Typography ------------------------------------------------ */
body,
.content-wrapper,
.form-control,
.btn,
p, span, td, th, label, a, input, select, textarea {
  font-family: "Inter", "Poppins", sans-serif !important;
  color: var(--mm-ink);
}
h1, h2, h3, h4, h5, h6,
.box-title, .login-box-msg, .small-box h3 {
  font-family: "Sora", "Inter", sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Content area = white ------------------------------------- */
.content-wrapper,
.wrapper {
  background: var(--mm-bg) !important;
}

/* ===================================================================== */
/*  LEFT NAVIGATION  —  deep purple, lime highlights                      */
/* ===================================================================== */
.main-sidebar,
.left-side,
.skin-blue .main-sidebar,
.skin-blue .sidebar a {
  background: var(--mm-plum) !important;
}
.main-sidebar { box-shadow: 2px 0 12px rgba(30,16,41,0.18); }

/* Logo block above the sidebar */
.skin-blue .main-header .logo,
.main-header .logo {
  background: var(--mm-plum-3) !important;
  color: #fff !important;
  display: block !important;
  text-align: center;
  padding: 14px 12px !important;
  height: auto !important;
  line-height: 1;
}
.main-header .logo .logo-lg { display: inline-block; }
.main-header .logo .logo-lg img {
  width: 178px !important;
  height: auto !important;
  max-height: none !important;
  vertical-align: middle;
  filter: brightness(0) invert(1) !important;   /* white logo, upper-left */
}
.main-header .logo:hover { background: var(--mm-plum-3) !important; }

/* Menu items */
.skin-blue .sidebar-menu > li > a,
.skin-blue .sidebar a {
  color: #E7DFF3 !important;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sidebar-menu > li > a { padding: 13px 16px; }
.sidebar-menu > li > a img {
  width: 18px; height: 18px; margin-right: 10px;
  /* keep the existing white-ish icons readable on purple */
  filter: brightness(0) invert(1);
  opacity: .85;
}
/* Keep each menu item's own icon on hover/active — the old theme swapped
   every icon to a magic wand; this stops that. */
.skin-blue .sidebar-menu > li.active > a img,
.skin-blue .sidebar-menu > li:hover > a img,
.skin-blue .sidebar-menu > li.active > a.content-menu img,
.skin-blue .sidebar-menu > li.content-menu:hover > a img {
  content: normal !important;
}

/* Keep sidebar label text light — the global ink colour must not darken the
   menu <span>s (they'd vanish on the purple). Inherit the link's own colour. */
.skin-blue .sidebar-menu > li > a span,
.skin-blue .sidebar-menu .treeview-menu > li > a span,
.skin-blue .sidebar a span { color: inherit !important; }

/* Hover + active = lime accent */
.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li.menu-open > a,
.skin-blue .sidebar-menu > li > a:hover {
  background: var(--mm-plum-2) !important;
  color: #FFFFFF !important;
  border-left-color: var(--mm-lime) !important;
}
.skin-blue .sidebar-menu > li:hover > a img,
.skin-blue .sidebar-menu > li.active > a img { opacity: 1; }

/* Submenu (Content -> Videos / Playlists): a plain, clean dropdown —
   no dark panel behind it, no filled squares. Just indented links. */
.sidebar-menu .treeview-menu {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sidebar-menu .treeview-menu > li > a,
.sidebar-menu .treeview-menu > li > a[style] {
  color: #C4B8DA !important;
  font-weight: 500;
  padding: 10px 8px 10px 48px !important;
  background: transparent !important;
  border-left: 3px solid transparent;
}
.sidebar-menu .treeview-menu > li > a:hover,
.sidebar-menu .treeview-menu > li.active > a {
  color: #FFFFFF !important;
  background: transparent !important;
  border-left-color: var(--mm-lime) !important;
}

/* ---------- Responsive navigation ------------------------------------ */
.main-sidebar,
.content-wrapper,
.main-footer { transition: transform .25s ease, margin-left .25s ease; }

/* DESKTOP (bigger than iPad): sidebar is always visible, no hamburger,
   no sliding. */
@media (min-width: 1025px) {
  .main-sidebar { transform: none !important; width: 230px !important; }
  .content-wrapper, .main-footer { margin-left: 230px !important; }
  .main-header .navbar .sidebar-toggle { display: none !important; }
}

/* iPad AND SMALLER: off-canvas mobile nav opened by the hamburger. Hidden by
   default; slides in when AdminLTE marks the body open/collapsed. */
@media (max-width: 1024px) {
  .main-header .navbar .sidebar-toggle { display: inline-block !important; }
  .main-sidebar {
    transform: translate(-100%, 0) !important;
    width: 230px !important;
    z-index: 1035;
  }
  .content-wrapper, .main-footer { margin-left: 0 !important; }
  body.sidebar-open .main-sidebar,
  body.sidebar-collapse .main-sidebar { transform: translate(0, 0) !important; }
}

/* ===================================================================== */
/*  TOP BAR                                                               */
/* ===================================================================== */
.skin-blue .main-header .navbar { background: #FFFFFF !important; box-shadow: 0 1px 0 var(--mm-line); }
.skin-blue .main-header .navbar .nav > li > a { color: var(--mm-ink) !important; }
.skin-blue .main-header .navbar .sidebar-toggle { color: var(--mm-plum) !important; }
.skin-blue .main-header .navbar .sidebar-toggle:hover { background: var(--mm-bg-soft) !important; }
.main-header .navbar .user-menu .user-image { border: 2px solid var(--mm-lime); }

/* ===================================================================== */
/*  DASHBOARD STAT TILES                                                  */
/* ===================================================================== */
.small-box {
  background: #FFFFFF !important;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  padding: 20px 20px 16px;
  position: relative;
  overflow: hidden;
}
.small-box::before {           /* lime accent bar */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--mm-lime);
}
.small-box:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(43,25,60,.12); }
.small-box h3 { color: var(--mm-plum) !important; font-size: 34px !important; margin: 0 0 2px; }
.small-box p  { color: var(--mm-muted) !important; font-weight: 600; margin: 0; }
.small-box .icon { color: rgba(139,222,60,.18); }

/* Generic card used on the new dashboard */
.mm-card {
  background: #fff; border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius); box-shadow: var(--mm-shadow);
  padding: 18px 20px; margin-bottom: 24px;
}
.mm-card h4 {
  font-family: "Sora", sans-serif; font-weight: 700; color: var(--mm-plum);
  margin: 0 0 14px; font-size: 16px; display: flex; align-items: center; gap: 8px;
}
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; border-bottom: 1px solid var(--mm-line); gap: 12px;
}
.mm-list li:last-child { border-bottom: 0; }
.mm-list .mm-title { font-weight: 600; color: var(--mm-ink); }
.mm-list .mm-meta  { color: var(--mm-muted); font-size: 12.5px; white-space: nowrap; }
.mm-pill {
  background: rgba(139,222,60,.16); color: var(--mm-lime-600);
  font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.mm-empty { color: var(--mm-muted); font-style: italic; padding: 8px 2px; }

/* Mini signup-trend bar chart (pure CSS/SVG, no JS) */
.mm-trend { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.mm-trend .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mm-trend .bar > span.fill {
  width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--mm-lime), var(--mm-lime-600));
  border-radius: 6px 6px 0 0; min-height: 3px;
}
.mm-trend .bar > span.lbl { font-size: 11px; color: var(--mm-muted); }
.mm-trend .bar > span.val { font-size: 12px; font-weight: 700; color: var(--mm-plum); }

/* ===================================================================== */
/*  BOXES, TABLES, BUTTONS, PAGINATION, MODALS                           */
/* ===================================================================== */
.box {
  border-radius: var(--mm-radius); border: 1px solid var(--mm-line);
  box-shadow: var(--mm-shadow); border-top: 3px solid var(--mm-lime);
}
.box-header { color: var(--mm-plum); }

.table > thead > tr > th,
.box .table tr:first-child th,
.table tr[style] th { background: var(--mm-bg-soft) !important; color: var(--mm-plum) !important;
  font-family: "Sora", sans-serif; font-weight: 600; border: 0 !important; }
.table > tbody > tr > td, .table td { vertical-align: middle; color: var(--mm-ink); }
.table > tbody > tr:hover { background: var(--mm-bg-soft); }

/* Primary buttons -> lime (note: NOT a blanket .btn-block rule — that would
   also catch the block-style "No" dismiss button in the logout modal) */
.btn-primary, .btn-yes, .btn.btn-success {
  background: var(--mm-lime) !important;
  border-color: var(--mm-lime) !important;
  color: var(--mm-plum) !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}
.btn-primary:hover, .btn-yes:hover, .btn.btn-success:hover {
  background: var(--mm-lime-600) !important; border-color: var(--mm-lime-600) !important; color: #10240a !important;
}
/* Secondary / dismiss buttons — a quiet neutral grey, clearly distinct from
   the lime primary (never competes with "Yes") */
.btn-no, .btn-default {
  border-radius: 999px !important; border: 0 !important;
  color: #5A5368 !important; background: #ECEAF2 !important; font-weight: 600 !important;
}
.btn-no:hover, .btn-default:hover { background: #E0DBEA !important; color: var(--mm-ink) !important; }

/* "Add Video" / "Add Playlist" primary buttons (custom class) */
.add-groomer-cls, .add-groomer-cls:focus {
  background: var(--mm-lime) !important;
  color: var(--mm-plum) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(139,222,60,.30) !important;
}
.add-groomer-cls i { color: var(--mm-plum) !important; font-style: normal; }
.add-groomer-cls:hover { background: var(--mm-lime-600) !important; color: #10240a !important; }

/* Clear labelled row-action buttons (Users / Videos lists) */
.mm-actions { display: inline-flex; gap: 8px; align-items: center; }
.mm-act {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.mm-act i { font-size: 12px; }
.mm-act.view  { background: rgba(43,25,60,.06);  color: var(--mm-plum); }
.mm-act.edit  { background: rgba(139,222,60,.18); color: var(--mm-lime-600); }
.mm-act.reset { background: rgba(184,134,11,.14); color: #9A7B12; }
.mm-act.del   { background: rgba(226,80,94,.10);  color: #C0392B; }
.mm-act.view:hover  { background: rgba(43,25,60,.12); }
.mm-act.edit:hover  { background: rgba(139,222,60,.30); }
.mm-act.reset:hover { background: rgba(184,134,11,.26); }
.mm-act.del:hover   { background: rgba(226,80,94,.20); }

/* Search + filter controls */
.box-header .form-control, #filter, #search {
  border-radius: 999px !important; border: 1px solid var(--mm-line) !important;
}
.refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--mm-bg-soft); color: var(--mm-plum);
}

/* Pagination */
.pagination > li > a, .center-pagination a { color: var(--mm-plum) !important; }
.pagination > .active > a, .pagination > li > a:hover {
  background: var(--mm-lime) !important; border-color: var(--mm-lime) !important; color: var(--mm-plum) !important;
}

/* Modals — roomy, with a clean centred button row */
.modal-content { border-radius: 18px; border: 0; box-shadow: 0 24px 70px rgba(30,16,41,.32); }
.modal-title { font-family: "Sora", sans-serif; color: var(--mm-plum); }
.modal-body { padding: 36px 42px !important; }
.modal-body h3, .modal-body h4 { font-family: "Sora", sans-serif; color: var(--mm-plum); margin: 0 0 10px; }
.modal-body > p { color: var(--mm-muted); margin: 0 0 6px; }
.mm-modal-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
/* Confirm buttons: consistent pills wherever they appear (delete / reset / logout) */
.btn-yes {
  display: inline-block; padding: 11px 28px !important; border-radius: 999px !important;
  background: var(--mm-lime) !important; color: var(--mm-plum) !important;
  font-weight: 700 !important; text-decoration: none !important; border: 0 !important;
}
.btn-yes:hover { background: var(--mm-lime-600) !important; color: #10240a !important; }
.mm-modal-actions .btn-no {
  display: inline-block; padding: 11px 28px !important; text-decoration: none !important;
}

/* ===================================================================== */
/*  LOGIN / OTP / FORGOT-PASSWORD (standalone pages)                     */
/* ===================================================================== */
/* Dark background for every login/auth screen, with light content on top. */
body.login-page {
  background: radial-gradient(1100px 620px at 50% -8%, #3A2255 0%, #241436 46%, #180C24 100%) !important;
  color: #EAE3F5 !important;
}
/* the AdminLTE login card is white by default — make it transparent so the
   dark background shows through and the light content is legible */
.login-page .login-box-body,
.login-page .register-box-body {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* remove the old pink/orange corner decorations */
.login-page .bg-1, .login-page .bg-2, .login-page .bg-3, .login-page .bg-4 { display: none !important; }
/* white logo on the dark background */
.login-page .login-logo img { filter: brightness(0) invert(1); max-height: 60px; width: auto; }
.login-page .login-box-msg { color: #FFFFFF !important; font-family: "Sora", sans-serif; }
.login-page .login-sub, .login-page p { color: #C6BBDD !important; }
.login-page label { color: #EAE3F5 !important; }
.login-page .form-control {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1.5px solid rgba(255,255,255,.28) !important;
  color: #FFFFFF !important; border-radius: 0 !important;
  padding-left: 16px !important;   /* breathing room so text isn't crowded left */
  padding-right: 34px !important;  /* clear of the envelope / eye icon */
}
/* verification-screen copy: white, with the email address bold */
.login-page .login-sub { color: #FFFFFF !important; }
.login-page .form-control::placeholder { color: rgba(255,255,255,.5) !important; }
.login-page .form-control:focus { border-bottom-color: var(--mm-lime) !important; box-shadow: none; }
.login-page .fa, .login-page .glyphicon { color: rgba(255,255,255,.55) !important; }
.login-page button.btn,
.login-page button.btn.btn-block {
  background: var(--mm-lime) !important;
  color: var(--mm-plum) !important;
  border-radius: 999px !important;
  font-family: "Sora", sans-serif; font-weight: 700;
  box-shadow: 0 8px 22px rgba(139,222,60,.28);
}
.login-page button.btn:hover { background: var(--mm-lime-600) !important; color: #10240a !important; }
.login-page a, .login-page a:hover { color: var(--mm-lime) !important; }

/* Softened "Back to Login" secondary button — a quiet ghost on the dark bg,
   with its label the same size as the primary and centred in the pill */
.login-page .btn-new {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.32) !important;
  border-radius: 999px !important;
  padding: 12px !important;
  margin-top: 14px;
  font-family: "Sora", sans-serif; font-weight: 600;
}
.login-page .btn-new, .login-page .btn-new a, .login-page .btn-new a:hover {
  color: #FFFFFF !important;
}
/* neutralise the login page's small/offset <a> styling inside this button */
.login-page .btn-new a {
  font-size: 16px !important;
  line-height: 1 !important;
  position: static !important;
  top: 0 !important;
  display: inline-block;
  text-decoration: none !important;
}
/* Consistent, centred labels for every secondary button in the admin */
.btn-no, .btn-default, .mm-modal-actions .btn-no {
  font-size: 15px !important;
  text-align: center;
  line-height: 1.2 !important;
}
.login-page .btn-new:hover { background: rgba(255,255,255,.08) !important; }

/* OTP digit boxes on the dark background */
.login-page .otp-input, .otp-input, input.otp, .otp-field input {
  border-radius: 12px !important;
  border: 1.5px solid rgba(255,255,255,.3) !important;
  background: rgba(255,255,255,.06) !important;
  color: #FFFFFF !important;
}
.login-page .otp-input:focus, .otp-input:focus { border-color: var(--mm-lime) !important; }

/* Single, paste-friendly verification-code field */
.login-page .otp-single { max-width: 340px; margin: 0 auto 6px; }
.login-page .otp-code {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 20px;
  font-family: "Sora", sans-serif;
  padding-right: 16px !important;   /* stay centred (no right icon here) */
}
.login-page .otp-code::placeholder { letter-spacing: normal; font-size: 15px; }
