@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --admin-bg: #f3f6fb;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f8fbff;
  --admin-border: #dbe3ef;
  --admin-text: #172033;
  --admin-muted: #6a768d;
  --admin-primary: #3b82f6;
  --admin-primary-dark: #1d4ed8;
  --admin-accent: #8b5cf6;
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-shadow: 0 10px 28px rgba(19, 38, 77, 0.08);
  --admin-shadow-soft: 0 14px 30px rgba(20, 38, 74, 0.1);
}

body.hold-transition.sidebar-mini {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, #eef4ff 0%, #f7f8fd 100%);
  color: var(--admin-text);
}

.content-wrapper,
.right-side {
  background: #f3f7fc !important;
  color: #1e293b;
}

.content {
  padding: 22px;
}

.content-header {
  color: #0f172a !important;
}

.content-header > h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a !important;
}

.content-header > h1 > small {
  color: #475569 !important;
  font-size: 14px;
  margin-left: 8px;
}

.breadcrumb {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(32, 53, 90, 0.06);
  color: #1e293b;
}

.breadcrumb > li,
.breadcrumb > li > a,
.breadcrumb > .active {
  color: #334155 !important;
}

.main-header .logo {
  background: linear-gradient(135deg, #1e293b 0%, #334155 65%, #475569 100%);
  color: #f8fafc;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main-header .navbar {
  background: linear-gradient(120deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

.main-header .navbar .sidebar-toggle,
.main-header .navbar .nav > li > a {
  color: #eef2ff;
}

.main-header .navbar .nav > li > a:hover,
.main-header .navbar .sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.main-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.sidebar-menu > li > a {
  color: #dbe6f6;
  padding: 12px 16px;
  margin: 6px 10px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-menu > li > a > .fa {
  min-width: 18px;
  margin-right: 8px;
}

.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(124, 58, 237, 0.36));
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.35);
}

.box,
.small-box,
.info-box,
.nav-tabs-custom,
.callout,
.modal-content,
.main-footer {
  border: 1px solid var(--admin-border) !important;
  border-radius: 14px;
  box-shadow: var(--admin-shadow);
}

.box {
  background: var(--admin-surface);
}

.box,
.small-box,
.info-box,
.modal-content,
.main-footer,
.breadcrumb,
.table,
.nav-tabs-custom {
  backdrop-filter: blur(1.5px);
}

.box-header {
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 16px;
}

.box-title {
  font-weight: 600;
  color: #0f172a !important;
}

.box-body {
  padding: 16px;
  color: #1e293b;
}

.small-box {
  overflow: hidden;
  box-shadow: var(--admin-shadow-soft);
}

.small-box > .inner {
  padding: 18px;
}

.small-box h3 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.small-box p {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.small-box .icon {
  opacity: 0.16;
  right: 12px;
  top: 8px;
}

.small-box.bg-aqua {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
}

.small-box.bg-blue {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

.small-box > .small-box-footer {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.2);
  font-weight: 600;
}

.box.box-solid.bg-teal-gradient {
  background: linear-gradient(130deg, #0f766e 0%, #0ea5a4 50%, #0284c7 100%) !important;
}

.box.box-solid.bg-teal-gradient .box-title,
.box.box-solid.bg-teal-gradient .box-header > .fa,
.box.box-solid.bg-teal-gradient .btn,
.box.box-solid.bg-teal-gradient .chart,
.box.box-solid.bg-teal-gradient a,
.box.box-solid.bg-teal-gradient p,
.box.box-solid.bg-teal-gradient span {
  color: #f8fafc !important;
}

.box.box-solid.bg-teal-gradient .morris-hover,
.box.box-solid.bg-teal-gradient .morris-hover-point {
  color: #0f172a !important;
}

.box.box-solid.bg-teal-gradient .btn.bg-teal {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary,
.btn-info {
  background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-accent) 100%);
  border-color: transparent;
}

.btn-primary:hover,
.btn-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.btn-default {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-soft);
  color: var(--admin-text);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: 10px !important;
  border: 1px solid #cfd9e8 !important;
  box-shadow: none;
  min-height: 38px;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #7aa7f8 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.table > thead > tr > th {
  background: #f3f7fe;
  color: #334155;
  border-bottom: 1px solid var(--admin-border);
  font-weight: 600;
}

.table > tbody > tr > td {
  border-top: 1px solid #ebf1f7;
  vertical-align: middle;
  color: #1f2a3d;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 8px !important;
  margin: 0 3px;
  color: var(--admin-primary-dark);
  border: 1px solid #d2deee;
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
}

.main-footer {
  background: #ffffff;
  color: #5d6a7d;
  margin-top: 12px;
}

a {
  color: #245edb;
}

a:hover,
a:focus {
  color: #1e40af;
}

.help-block,
.text-muted {
  color: #64748b !important;
}

label,
.control-label,
.box-body,
.box-body p,
.content-header,
.content-header .breadcrumb > li,
.content-header .breadcrumb > li > a {
  color: #1e293b;
}

.main-header .navbar .nav > li > a,
.main-header .navbar .sidebar-toggle,
.main-header .logo,
.main-header .logo:hover {
  color: #ffffff !important;
}

.dropdown-menu > li > a {
  color: #1f2937;
}

.dropdown-menu > li > a:hover {
  background: #eef4ff;
  color: #1e3a8a;
}

.form-horizontal .box-body .form-group {
  margin-right: 0;
  margin-left: 0;
}

.dataTables_filter label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: right;
}

.dataTables_filter label input.input-sm {
  margin: 0;
}

.progress {
  display: none;
  position: relative;
  width: 200px;
  border: 1px solid #ddd;
  padding: 1px;
  border-radius: 3px;
  margin: 0 auto;
}

.bar {
  background-color: #424242;
  width: 0%;
  height: 20px;
  border-radius: 3px;
}

.percent {
  position: absolute;
  display: inline-block;
  top: 1px;
  left: 48%;
  color: #ffffff;
  font-weight: 700;
}

/* MapMySound dark-orange brand theme override */
:root {
  --mms-bg: #0f1117;
  --mms-surface: #151a24;
  --mms-surface-soft: #1b2230;
  --mms-border: #2a3344;
  --mms-text: #edf2ff;
  --mms-text-muted: #aab7cf;
  --mms-accent: #ff9a62;
  --mms-accent-soft: #ffb58d;
  --mms-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.hold-transition.sidebar-mini {
  background: radial-gradient(circle at 85% 15%, rgba(255, 106, 26, 0.14), transparent 35%),
              radial-gradient(circle at 15% 80%, rgba(255, 140, 75, 0.08), transparent 40%),
              linear-gradient(170deg, #0c1018 0%, #121722 50%, #0d1119 100%);
  color: var(--mms-text);
}

.main-header .logo {
  background: linear-gradient(140deg, #171d28 0%, #0f131d 100%) !important;
  color: #ffffff !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header .navbar {
  background: linear-gradient(90deg, #ff9a62 0%, #ffad7a 45%, #ffc7a8 100%) !important;
  box-shadow: 0 12px 22px rgba(255, 154, 98, 0.24);
}

.main-header .navbar .nav > li > a,
.main-header .navbar .sidebar-toggle {
  color: #fff7f2 !important;
}

.main-sidebar {
  background: linear-gradient(180deg, #0f131d 0%, #151b27 100%) !important;
}

.sidebar-menu > li > a {
  color: #d8e1f2 !important;
  margin: 6px 10px;
  border-radius: 10px;
}

.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a {
  background: linear-gradient(90deg, rgba(255, 106, 26, 0.32), rgba(255, 106, 26, 0.2)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 140, 75, 0.32);
}

.content-wrapper,
.right-side {
  background: transparent !important;
  color: var(--mms-text) !important;
}

.content-header > h1,
.box-title {
  color: #f7f9ff !important;
}

.content-header > h1 > small {
  color: #c8d3ea !important;
}

.breadcrumb {
  background: rgba(21, 26, 36, 0.92) !important;
  border: 1px solid var(--mms-border) !important;
  box-shadow: var(--mms-shadow);
}

.breadcrumb > li,
.breadcrumb > li > a,
.breadcrumb > .active {
  color: #d0dbef !important;
}

.box,
.small-box,
.info-box,
.nav-tabs-custom,
.callout,
.modal-content,
.main-footer,
.table,
.dropdown-menu {
  background: var(--mms-surface) !important;
  border: 1px solid var(--mms-border) !important;
  color: var(--mms-text) !important;
  box-shadow: var(--mms-shadow);
}

.box-header {
  border-bottom: 1px solid var(--mms-border) !important;
}

.box-body,
.box-body p,
label,
.control-label {
  color: #e8eefc !important;
}

.table > thead > tr > th {
  background: #1a2231 !important;
  border-bottom: 1px solid var(--mms-border) !important;
  color: #dce6fb !important;
}

.table > tbody > tr > td {
  border-top: 1px solid #263041 !important;
  color: #f0f4ff !important;
}

.table-hover > tbody > tr:hover {
  background: rgba(255, 106, 26, 0.08) !important;
}

.small-box.bg-aqua {
  background: linear-gradient(130deg, #ff9a62 0%, #ffb58d 100%) !important;
}

.small-box.bg-blue {
  background: linear-gradient(130deg, #1f2f4d 0%, #334b73 100%) !important;
}

.small-box > .small-box-footer {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff4ed !important;
}

.box.box-solid.bg-teal-gradient {
  background: linear-gradient(120deg, #1a2333 0%, #1f3a4e 55%, #2f5a73 100%) !important;
}

.box.box-solid.bg-teal-gradient .box-title,
.box.box-solid.bg-teal-gradient .box-header > .fa,
.box.box-solid.bg-teal-gradient .btn,
.box.box-solid.bg-teal-gradient .chart,
.box.box-solid.bg-teal-gradient a,
.box.box-solid.bg-teal-gradient p,
.box.box-solid.bg-teal-gradient span {
  color: #f7fbff !important;
}

.btn-primary,
.btn-info,
.btn-success {
  background: linear-gradient(120deg, #ff9a62 0%, #ffb58d 100%) !important;
  border-color: #ffa978 !important;
  color: #fff !important;
}

.btn-danger {
  background: linear-gradient(120deg, #c73535 0%, #e05252 100%) !important;
  border-color: #de5858 !important;
}

.btn-default {
  background: #1c2433 !important;
  border-color: #334156 !important;
  color: #f2f6ff !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background: #111722 !important;
  border: 1px solid #344156 !important;
  color: #edf4ff !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #ffb58d !important;
  box-shadow: 0 0 0 3px rgba(255, 154, 98, 0.16) !important;
}

.form-control::placeholder {
  color: #8da0bf;
}

.pagination > li > a,
.pagination > li > span {
  background: #151c28 !important;
  border: 1px solid #334055 !important;
  color: #dce6fb !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: #ff9a62 !important;
  border-color: #ff9a62 !important;
  color: #fff !important;
}

.dropdown-menu > li > a {
  color: #ecf2ff !important;
}

.dropdown-menu > li > a:hover {
  background: rgba(255, 106, 26, 0.16) !important;
  color: #fff !important;
}

a {
  color: #ffb58d;
}

a:hover,
a:focus {
  color: #ffd1b7;
}

.main-footer {
  color: #c8d3ea !important;
}

.help-block,
.text-muted {
  color: #a7b3c8 !important;
}

/* Final UI polish layer: cleaner, balanced, modern */
:root {
  --mms-page-max: 1400px;
  --mms-panel: #171e2a;
  --mms-panel-2: #1d2635;
  --mms-line: #2a3548;
  --mms-white-90: rgba(241, 246, 255, 0.9);
}

body.hold-transition.sidebar-mini {
  letter-spacing: 0.01em;
}

.wrapper {
  background: transparent;
}

.content-wrapper > .content,
.content-wrapper > .content-header {
  max-width: var(--mms-page-max);
}

.content-header {
  padding: 18px 22px 0;
}

.content-wrapper > .content {
  padding-top: 14px;
}

.content-header > h1 {
  font-size: 26px;
  font-weight: 700;
}

.content-header > h1 > small {
  font-size: 13px;
  font-weight: 500;
}

.main-header .logo {
  font-size: 21px;
}

.main-header .navbar {
  border: 0;
}

.main-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-menu {
  margin-top: 10px;
}

.sidebar-menu > li > a {
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.sidebar-menu > li > a > span {
  white-space: nowrap;
}

.sidebar-menu > li > a > .fa {
  opacity: 0.95;
}

.sidebar-menu > li.active > a {
  box-shadow: 0 10px 22px rgba(255, 154, 98, 0.16);
}

.box,
.small-box,
.info-box,
.nav-tabs-custom,
.callout,
.modal-content,
.table,
.dropdown-menu {
  border-radius: 16px !important;
}

.box {
  background: linear-gradient(180deg, var(--mms-panel) 0%, var(--mms-panel-2) 100%) !important;
}

.box-header {
  padding: 14px 18px;
}

.box-body {
  padding: 18px;
}

.box-title {
  font-size: 16px;
}

.small-box {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.small-box h3 {
  font-size: 32px;
}

.small-box p {
  font-size: 14px;
}

.small-box > .small-box-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
  border-radius: 9px;
  font-size: 12px;
  padding: 7px 12px;
  line-height: 1.25;
}

.btn + .btn {
  margin-left: 4px;
}

.btn-primary,
.btn-info,
.btn-success {
  box-shadow: 0 8px 18px rgba(255, 154, 98, 0.2);
}

.btn-danger {
  box-shadow: 0 8px 18px rgba(199, 53, 53, 0.18);
}

.table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table > thead > tr > th {
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: var(--mms-line) !important;
}

.table > tbody > tr > td {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top-color: var(--mms-line) !important;
}

.table > tbody > tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: 10px !important;
  min-height: 40px;
}

.form-group label {
  margin-bottom: 8px;
  color: var(--mms-white-90) !important;
  font-weight: 600;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 10px !important;
  min-width: 36px;
  text-align: center;
}

.main-footer {
  margin: 18px 18px 16px;
  border-radius: 12px;
  background: rgba(20, 27, 38, 0.95) !important;
  border: 1px solid var(--mms-line) !important;
}

/* Final brand color alignment: match app splash style */
:root {
  --mms-accent: #e77a36;
  --mms-accent-soft: #f0a06c;
}

body.hold-transition.sidebar-mini {
  background: radial-gradient(circle at 50% 90%, rgba(231, 122, 54, 0.11), transparent 34%),
              radial-gradient(circle at 15% 10%, rgba(231, 122, 54, 0.07), transparent 28%),
              linear-gradient(168deg, #0a0d13 0%, #10151f 58%, #0b0f16 100%) !important;
}

.main-header .logo {
  background: linear-gradient(145deg, #111723 0%, #0d121b 100%) !important;
}

.main-header .navbar {
  background: linear-gradient(90deg, #1a2332 0%, #212f43 65%, #2c3d55 100%) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.main-sidebar {
  background: linear-gradient(180deg, #0b1018 0%, #121a27 100%) !important;
}

.sidebar-menu > li > a {
  color: #d7e0f0 !important;
}

.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a {
  background: linear-gradient(90deg, rgba(231, 122, 54, 0.22), rgba(231, 122, 54, 0.1)) !important;
  border-color: rgba(231, 122, 54, 0.32) !important;
}

.box,
.small-box,
.info-box,
.nav-tabs-custom,
.callout,
.modal-content,
.table,
.dropdown-menu {
  background: linear-gradient(180deg, #151b27 0%, #1a2230 100%) !important;
  border-color: #2a3446 !important;
}

.breadcrumb {
  background: rgba(18, 25, 36, 0.9) !important;
  border-color: #2a3446 !important;
}

.table > thead > tr > th {
  background: #1a2230 !important;
}

.table > tbody > tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015) !important;
}

.small-box.bg-aqua {
  background: linear-gradient(130deg, #c7672d 0%, #e38a4f 100%) !important;
}

.small-box.bg-blue {
  background: linear-gradient(130deg, #24344d 0%, #2f4566 100%) !important;
}

.box.box-solid.bg-teal-gradient {
  background: linear-gradient(120deg, #1a2435 0%, #25384e 55%, #2f4967 100%) !important;
}

.btn-primary,
.btn-info,
.btn-success {
  background: linear-gradient(120deg, #d97637 0%, #eda16f 100%) !important;
  border-color: #e18a53 !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
  background: linear-gradient(120deg, #e1874d 0%, #f2af82 100%) !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: #d97637 !important;
  border-color: #d97637 !important;
}

a {
  color: #eda16f;
}

a:hover,
a:focus {
  color: #f6bc97;
}

/* Fix content layout + help-content readability */
.content-wrapper > .content-header,
.content-wrapper > .content {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.content {
  padding: 18px 20px 24px !important;
}

.box {
  width: 100%;
}

.box-body {
  padding: 20px !important;
}

/* Improve long form pages like help content */
.box .form-group {
  margin-bottom: 22px;
}

.box .form-group label,
.box .form-group .control-label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
}

.box textarea.form-control {
  min-height: 64px;
  line-height: 1.45;
  resize: vertical;
}

.box input.form-control,
.box textarea.form-control {
  background: #121a26 !important;
  border: 1px solid #334258 !important;
  color: #f2f6ff !important;
}

.box input.form-control:focus,
.box textarea.form-control:focus {
  border-color: #e18a53 !important;
  box-shadow: 0 0 0 3px rgba(217, 118, 55, 0.18) !important;
}

.box hr {
  border-top: 1px solid #2b3648;
}

/* Exact sidebar bar color style from reference */
:root {
  --mms-ref-bg: #0b1220;
  --mms-ref-panel: #101826;
  --mms-ref-border: #2a3a52;
  --mms-ref-active-border: rgba(205, 108, 49, 0.75);
  --mms-ref-active-fill-start: rgba(63, 39, 30, 0.86);
  --mms-ref-active-fill-end: rgba(43, 33, 30, 0.82);
  --mms-ref-glow: rgba(205, 108, 49, 0.22);
  --mms-ref-text: #f6f3ef;
  --mms-ref-muted: #cfd8e6;
}

body.hold-transition.sidebar-mini {
  background: linear-gradient(175deg, #090f1b 0%, #0d1524 45%, #0a1220 100%) !important;
}

.main-header .navbar {
  background: linear-gradient(90deg, #142033 0%, #17263b 60%, #1b2c42 100%) !important;
  border-bottom: 1px solid rgba(205, 108, 49, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.main-header .logo {
  background: linear-gradient(135deg, #0f1727 0%, #131e30 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.main-header .logo .mms-header-logo {
  display: inline-block;
  height: auto;
  vertical-align: middle;
}

.main-header .logo .mms-header-logo-lg {
  max-height: 42px;
  max-width: 150px;
}

.main-header .logo .mms-header-logo-mini {
  height: 38px;
  width: 38px;
  object-fit: cover;
  object-position: top center;
}

.main-sidebar {
  background: linear-gradient(180deg, #090f1b 0%, #0e1726 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-menu > li > a {
  color: var(--mms-ref-muted) !important;
  border: 1px solid transparent;
  border-radius: 11px !important;
  margin: 7px 10px;
  min-height: 44px;
}

.sidebar-menu > li > a .fa {
  color: #e8edf7;
}

.sidebar-menu > li:hover > a {
  background: rgba(36, 46, 66, 0.78) !important;
  border-color: rgba(205, 108, 49, 0.35) !important;
  color: var(--mms-ref-text) !important;
}

.sidebar-menu > li.active > a {
  background: linear-gradient(90deg, var(--mms-ref-active-fill-start) 0%, var(--mms-ref-active-fill-end) 100%) !important;
  border: 1px solid var(--mms-ref-active-border) !important;
  color: #fffaf5 !important;
  box-shadow: 0 8px 18px var(--mms-ref-glow);
}

.sidebar-menu > li.active > a .fa {
  color: #ffd7bd !important;
}

.box,
.small-box,
.info-box,
.nav-tabs-custom,
.callout,
.modal-content,
.table,
.dropdown-menu,
.main-footer,
.breadcrumb {
  background: linear-gradient(180deg, #111a2a 0%, #162235 100%) !important;
  border-color: #2b3b53 !important;
}

.btn-primary,
.btn-info,
.btn-success {
  background: linear-gradient(120deg, #bd6d3e 0%, #d98b5f 100%) !important;
  border-color: #c9794c !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover {
  background: linear-gradient(120deg, #ca7a4d 0%, #e39b73 100%) !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: #c97848 !important;
  border-color: #c97848 !important;
}

a {
  color: #e3a076;
}

a:hover,
a:focus {
  color: #efbc9c;
}

/* Fix hover glitch inside Summernote editor */
.note-editor.note-frame {
  border: 1px solid #334258 !important;
  border-radius: 10px;
  overflow: hidden;
  background: #121a26 !important;
}

.note-editor.note-frame .note-toolbar,
.note-editor.note-frame .note-statusbar {
  background: #0f1622 !important;
  border-color: #2d3a4f !important;
}

.note-editor.note-frame .note-editing-area {
  background: #121a26 !important;
}

.note-editor.note-frame .note-editable {
  background: #121a26 !important;
  color: #edf4ff !important;
  min-height: 220px;
}

.note-editor.note-frame .note-editable img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.note-editor.note-frame .note-editable p,
.note-editor.note-frame .note-editable span,
.note-editor.note-frame .note-editable div,
.note-editor.note-frame .note-editable li,
.note-editor.note-frame .note-editable strong,
.note-editor.note-frame .note-editable em {
  color: #edf4ff !important;
  background: transparent !important;
}

.note-editor.note-frame .note-editable a {
  color: #eda16f !important;
  background: transparent !important;
}

.note-editor.note-frame .note-editable a:hover,
.note-editor.note-frame .note-editable a:focus {
  color: #f6bc97 !important;
  background: transparent !important;
}

.note-editor.note-frame .note-editable mark,
.note-editor.note-frame .note-editable kbd {
  color: #edf4ff !important;
  background: rgba(231, 122, 54, 0.2) !important;
  border-radius: 4px;
}

/* Header account dropdown redesign */
.navbar-nav > .mms-user-menu > .dropdown-menu {
  width: 280px !important;
  min-width: 280px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.navbar-nav > .mms-user-menu > .dropdown-menu > .user-header {
  height: auto !important;
  min-height: auto !important;
  background: linear-gradient(140deg, #1e355e 0%, #2f4d81 100%) !important;
  padding: 20px 18px 16px !important;
  text-align: center;
}

.mms-user-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mms-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #f8fbff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mms-user-title {
  margin: 4px 0 0 !important;
  color: #f2f7ff !important;
  font-size: 22px !important;
  font-weight: 600 !important;
}

.mms-user-subtitle {
  margin: 0 !important;
  color: rgba(235, 242, 255, 0.82) !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
}

.navbar-nav > .mms-user-menu > .dropdown-menu > .user-footer {
  background: #121c2c !important;
  border-top: 1px solid rgba(118, 145, 194, 0.26) !important;
  padding: 12px !important;
  text-align: center;
}

.mms-signout-btn {
  width: 100%;
  border-radius: 8px !important;
  background: linear-gradient(120deg, #cc7440 0%, #e29a67 100%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.mms-signout-btn:hover {
  background: linear-gradient(120deg, #d88252 0%, #ecad81 100%) !important;
}

.note-editor.note-frame .note-placeholder {
  color: #8ea3c4 !important;
}

/* Force-fix: neutralize any inherited inline/tag hover glitches in editor */
.note-editor.note-frame .note-editable *,
.note-editor.note-frame .note-editable *:hover,
.note-editor.note-frame .note-editable *:focus,
.note-editor.note-frame .note-editable *:active {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #edf4ff !important;
  text-shadow: none !important;
}

.note-editor.note-frame .note-editable kbd,
.note-editor.note-frame .note-editable mark,
.note-editor.note-frame .note-editable code,
.note-editor.note-frame .note-editable pre,
.note-editor.note-frame .note-editable samp {
  background: transparent !important;
  color: #edf4ff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.note-editor.note-frame .note-editable a,
.note-editor.note-frame .note-editable a:hover,
.note-editor.note-frame .note-editable a:focus,
.note-editor.note-frame .note-editable a:active {
  color: #f3c1a0 !important;
  text-decoration: underline;
  background: transparent !important;
}

/* Remove bootstrap label/badge pill styling inside editor content */
.note-editor.note-frame .note-editable .label,
.note-editor.note-frame .note-editable .badge,
.note-editor.note-frame .note-editable [class*="label-"],
.note-editor.note-frame .note-editable [class*="badge-"] {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #edf4ff !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  white-space: normal !important;
}

/* Restore Summernote to original-like visible style */
.note-editor.note-frame {
  background: #ffffff !important;
  border: 1px solid #d2d6de !important;
  border-radius: 0 !important;
}

.note-editor.note-frame .note-toolbar,
.note-editor.note-frame .note-statusbar {
  background: #f5f5f5 !important;
  border-color: #d2d6de !important;
}

.note-editor.note-frame .note-toolbar .btn,
.note-editor.note-frame .note-toolbar .note-btn {
  background: #ffffff !important;
  border: 1px solid #c8ccd3 !important;
  color: #222222 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
}

.note-editor.note-frame .note-toolbar .btn:hover,
.note-editor.note-frame .note-toolbar .note-btn:hover,
.note-editor.note-frame .note-toolbar .btn:focus,
.note-editor.note-frame .note-toolbar .note-btn:focus {
  background: #eeeeee !important;
  border-color: #b8bdc7 !important;
  color: #111111 !important;
}

.note-editor.note-frame .note-toolbar .note-icon-caret,
.note-editor.note-frame .note-toolbar [class^="note-icon-"],
.note-editor.note-frame .note-toolbar [class*=" note-icon-"],
.note-editor.note-frame .note-toolbar .fa {
  color: #222222 !important;
}

.note-editor.note-frame .note-editing-area,
.note-editor.note-frame .note-editable {
  background: #ffffff !important;
  color: #222222 !important;
}

.note-editor.note-frame .note-editable,
.note-editor.note-frame .note-editable * {
  color: #222222 !important;
  background-color: transparent !important;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.note-editor.note-frame .note-editable a,
.note-editor.note-frame .note-editable a:hover,
.note-editor.note-frame .note-editable a:focus {
  color: #3c8dbc !important;
  text-decoration: underline !important;
}

.note-editor.note-frame .note-placeholder {
  color: #8b95a5 !important;
}

/* Form action area + submit button styling */
.box-footer {
  background: transparent !important;
  border-top: 1px solid #2b3b53 !important;
  padding: 14px 18px !important;
}

.box-footer .btn.btn-primary,
.box-footer .btn.btn-success,
.box-footer .btn.btn-info {
  min-width: 120px;
  height: 38px;
  padding: 8px 18px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* Remodal popup theme (manage sounds/comments) */
.remodal-overlay {
  background: rgba(6, 12, 24, 0.75) !important;
}

.remodal {
  background: linear-gradient(180deg, #141c2a 0%, #192436 100%) !important;
  border: 1px solid #2b3b53 !important;
  border-radius: 12px !important;
  color: #eaf1ff !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

.remodal h2,
.remodal h3,
.remodal p,
.remodal #commentTitle,
.remodal #modal1Desc,
.remodal #commentList {
  color: #eaf1ff !important;
}

.remodal .text-muted {
  color: #9fb0cb !important;
}

.remodal .remodal-close:before {
  color: #e1e9f7 !important;
}

.remodal .remodal-close:hover:before {
  color: #f6bc97 !important;
}

.remodal .list-group-item {
  background: #111928 !important;
  border: 1px solid #2b3b53 !important;
  color: #eaf1ff !important;
}

.remodal .remodal-confirm,
.remodal .remodal-cancel {
  min-width: 96px;
  height: 36px;
  border-radius: 8px !important;
  border: 0 !important;
  font-weight: 600;
}

.remodal .remodal-confirm {
  background: linear-gradient(120deg, #bd6d3e 0%, #d98b5f 100%) !important;
  color: #fff !important;
}

.remodal .remodal-cancel {
  background: #2a354a !important;
  color: #e8efff !important;
}

/* Summernote hard fix: always keep typed text visible */
.note-editor.note-frame .note-editable {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  caret-color: #1f2937 !important;
}

.note-editor.note-frame .note-editable,
.note-editor.note-frame .note-editable p,
.note-editor.note-frame .note-editable div,
.note-editor.note-frame .note-editable span,
.note-editor.note-frame .note-editable li,
.note-editor.note-frame .note-editable font,
.note-editor.note-frame .note-editable b,
.note-editor.note-frame .note-editable strong,
.note-editor.note-frame .note-editable i,
.note-editor.note-frame .note-editable em,
.note-editor.note-frame .note-editable u,
.note-editor.note-frame .note-editable small {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

.note-editor.note-frame .note-editable [style*="color"],
.note-editor.note-frame .note-editable font[color],
.note-editor.note-frame .note-editable span[style] {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}