/* =========================================================
   ROMS-DASH MASTER STYLESHEET (DARK & LIGHT MODE)
   ========================================================= */
:root {
  --bg-topbar-line: #4f5a69;
  --bg-header-main: #364150;
  --bg-sidebar: #364150;
  --bg-workspace: #17202a;
  --bg-dashboard-card: #041b24;
  --bg-empty-grey: #5a6675;
  --text-primary: #ffffff;
  --text-muted: #95a5a6;
  --text-main: #ffffff;
  --accent-teal: #00f5d4;
  --accent-blue: #2980b9;
  --accent-red: #e74c3c;
  --sidebar-panel-width: 260px;
  --combined-header-height: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}

body {
  background-color: var(--bg-workspace);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #374151; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: #4b5563; }

#roms-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--accent-teal);
  z-index: 3000;
  transition: width 0.1s ease-out;
}

#roms-top-block-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.roms-mini-topbar {
  height: 30px;
  background-color: var(--bg-topbar-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  font-size: 0.75rem;
  color: #e2e8f0;
  transition: margin-top 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.mini-left-socials a {
  color: #e2e8f0;
  margin-right: 15px;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
}

.mini-right-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

#roms-main-header {
  height: 60px;
  background-color: var(--bg-header-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-radius: 0 0 25px 25px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#roms-main-header.flat-state {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-left-side,
.header-right-side,
.dashboard-logo-brand {
  display: flex;
  align-items: center;
}

.header-left-side,
.header-right-side { gap: 20px; }

.dashboard-logo-brand { gap: 12px; }
.brand-logo { max-height: 40px; }
.brand-title { margin-top: 6px; margin-bottom: 0; line-height: 1; }
.brand-subtitle { margin: 3px 0 0 0; line-height: 1; }
.brand-text-titles h1 { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.5px; }
.brand-text-titles p { font-size: 0.7rem; color: var(--text-muted); }

.header-action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.header-search-box {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 6px 15px;
  border-radius: 20px;
  gap: 10px;
}

.header-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 140px;
}

.notification-bell-container { position: relative; cursor: pointer; }

.active-green-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-teal);
  border-radius: 50%;
}

.user-profile-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #7f8c8d;
  padding: 2px;
  cursor: pointer;
}

.avatar-fallback-img {
  width: 100%;
  height: 100%;
  background-color: #bdc3c7;
  border-radius: 50%;
}

#roms-page-layout {
  display: flex;
  margin-top: calc(var(--combined-header-height) + 10px);
  min-height: calc(100vh - var(--combined-header-height) - 10px);
  transition: margin-top 0.3s ease;
}

#roms-sidebar-panel {
  width: var(--sidebar-panel-width);
  background-color: var(--bg-sidebar);
  position: fixed;
  top: calc(var(--combined-header-height) + 10px);
  left: 0;
  bottom: 0;
  border-top-right-radius: 20px;
  overflow-y: auto;
  z-index: 1000;
  transition: left 0.3s ease, top 0.3s ease, width 0.3s ease, background-color 0.3s ease;
}

.inner-sidebar-nav ul { list-style: none; padding-left: 0; }

.inner-sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.inner-sidebar-nav ul li a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-text { flex: 1; text-align: left; white-space: nowrap; }

.inner-sidebar-nav ul li.active-link > a,
.inner-sidebar-nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--accent-teal);
}

.nav-group-title {
  padding: 12px 15px 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-chevron { font-size: 0.65rem; opacity: 0.6; flex-shrink: 0; }

.badge-blue-new {
  background-color: var(--accent-blue);
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: bold;
  flex-shrink: 0;
}

#roms-workspace-area {
  margin-left: var(--sidebar-panel-width);
  flex: 1;
  padding: 0 15px 20px 15px;
  transition: margin-left 0.3s ease;
  max-width: 100vw;
  overflow-x: hidden;
}

#roms-sidebar-panel.collapsed { width: 70px !important; }

#roms-sidebar-panel.collapsed .nav-text,
#roms-sidebar-panel.collapsed .nav-chevron,
#roms-sidebar-panel.collapsed .nav-group-title,
#roms-sidebar-panel.collapsed .badge-blue-new {
  display: none !important;
}

#roms-sidebar-panel.collapsed .inner-sidebar-nav ul li a {
  justify-content: center;
  padding: 15px 0;
  gap: 0;
}

#roms-sidebar-panel.collapsed .inner-sidebar-nav ul li a i { width: auto; font-size: 1.3rem; }
#roms-sidebar-panel.collapsed ~ #roms-workspace-area { margin-left: 70px !important; }

.roms-grey-blocks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.block-item {
  height: 110px;
  background-color: var(--bg-empty-grey);
  border-radius: 20px 0 20px 0 !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.block-item::after,
.block-bg-icon {
  position: absolute;
  bottom: -15px;
  right: 5px;
  font-size: 7rem;
  color: rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.block-item::after {
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-weight: 900;
  content: "";
}

.block-subtitle { font-size: 0.7rem; color: #cbd5e1; z-index: 1; position: relative; }
body:not(.dark-mode) .block-subtitle { color: #334155; }
.block-value { font-size: 2.2rem; z-index: 1; position: relative; }

.roms-workspace-row-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.content-data-card {
  background-color: var(--bg-dashboard-card);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-width: 0 !important;
  max-width: 100% !important;
}

.split-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.text-info h6 { color: var(--accent-teal); font-size: 0.8rem; margin-bottom: 6px; letter-spacing: 0.5px; }
.text-info h3 { font-size: 1.7rem; margin-bottom: 8px; }
.text-info p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

.radial-ring-border {
  width: 60px;
  height: 60px;
  border: 4px solid var(--accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-percentage { font-weight: bold; color: var(--accent-teal); font-size: 0.9rem; }

.split-card-footer,
.three-columns-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 15px;
}

.split-card-footer { margin-top: 20px; font-size: 0.8rem; }
.split-card-footer h4 { margin: 2px 0; }
.three-columns-footer { text-align: center; }
.three-columns-footer > div { width: 33.33%; }
.three-columns-footer h4 { font-size: 0.95rem; margin: 2px 0; }
.three-columns-footer small { font-size: 0.75rem; color: var(--text-muted); }

.center-large-ring-box { display: flex; justify-content: center; padding: 5px 0 15px 0; }
.large-radial-ring {
  width: 95px;
  height: 95px;
  border: 6px solid var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.inner-ring-labels small { display: block; color: var(--text-muted); font-size: 0.7rem; }

.total-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.horizontal-bars-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bar-track { width: 100%; height: 6px; background-color: rgba(255, 255, 255, 0.04); border-radius: 3px; }
.bar-fill-progress { height: 100%; background-color: var(--accent-teal); border-radius: 3px; }

.roms-workspace-row-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 15px;
  margin-bottom: 20px;
}

.card-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.card-title-flex h3 { font-size: 1.05rem; font-weight: 700; }
.view-all-trigger { font-size: 0.8rem; color: var(--accent-teal); text-decoration: none; }

.timeline-wrapper { display: flex; flex-direction: column; gap: 20px; }
.timeline-row { display: flex; gap: 15px; position: relative; }
.timeline-indicator { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.timeline-indicator.blue-node { background-color: var(--accent-blue); }
.timeline-indicator.teal-node { background-color: var(--accent-teal); }
.timeline-body { font-size: 0.85rem; }
.text-dim { color: var(--text-muted); }
.timeline-meta-tag { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

.responsive-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.workspace-native-table,
.workspace-bordered-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.workspace-native-table th {
  padding: 12px 8px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-native-table td {
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.workspace-bordered-table th,
.workspace-bordered-table td {
  border: 1px solid rgba(149, 165, 166, 0.2);
  padding: 14px 10px;
}

.workspace-bordered-table th { color: var(--text-muted); font-size: 0.85rem; }

.accent-teal { color: var(--accent-teal); }
.accent-red { color: var(--accent-red); }
.weight-bold { font-weight: bold; }

#roms-floating-actions-bar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2500;
}

.floating-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
}

.floating-btn:hover { transform: scale(1.08); }

body.adjust-scrolled-layout #roms-sidebar-panel { top: calc(60px + 10px); }

@media (min-width: 993px) {
  #roms-main-header { padding-left: 15px !important; }
  .dashboard-logo-brand { margin-left: 0; padding-left: 0; }
  #sidebar-hamburger-trigger { margin-left: 60px; }
}

#roms-mobile-bottom-nav { display: none; }

@media (max-width: 992px) {
  #roms-sidebar-panel {
    left: -260px;
    top: calc(var(--combined-header-height) + 10px) !important;
  }
  #roms-workspace-area { margin-left: 0 !important; }
  body.show-sidebar-mobile #roms-sidebar-panel { left: 0; width: var(--sidebar-panel-width) !important; }
  body.show-sidebar-mobile #roms-sidebar-panel .nav-text,
  body.show-sidebar-mobile #roms-sidebar-panel .nav-chevron,
  body.show-sidebar-mobile #roms-sidebar-panel .nav-group-title,
  body.show-sidebar-mobile #roms-sidebar-panel .badge-blue-new { display: block !important; }
  body.show-sidebar-mobile #roms-sidebar-panel .inner-sidebar-nav ul li a {
    justify-content: flex-start;
    padding: 12px 15px;
    gap: 10px;
  }
  .roms-grey-blocks-row { grid-template-columns: repeat(2, 1fr); }
  .roms-workspace-row-1,
  .roms-workspace-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #roms-workspace-area {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 10px !important;
    padding-bottom: 75px !important;
  }
  .header-search-box,
  #sidebar-hamburger-trigger { display: none; }
  .roms-grey-blocks-row { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .roms-workspace-row-1,
  .roms-workspace-row-2 { grid-template-columns: 1fr !important; gap: 12px; }
  #roms-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: var(--bg-header-main);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 3000;
    justify-content: space-around;
    align-items: center;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    gap: 3px;
    flex: 1;
    background: none;
    border: none;
  }
  .nav-item.active-nav { color: #f1c40f; }
  .center-action { position: relative; top: -20px; cursor: pointer; }
  .center-circle {
    width: 50px;
    height: 50px;
    background-color: #7f8c8d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--bg-workspace);
  }
  #roms-floating-actions-bar { bottom: 75px; }
}

/* Light Mode Overrides */
body:not(.dark-mode) {
  --bg-topbar-line: #e2e8f0;
  --bg-header-main: #ffffff;
  --bg-sidebar: #e2e8f0;
  --bg-workspace: #f1f5f9;
  --bg-dashboard-card: #f8fafc;
  --bg-empty-grey: #cbd5e1;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --text-main: #0f172a;
}

body:not(.dark-mode) .content-data-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .workspace-native-table th,
body:not(.dark-mode) .workspace-native-table td { border-color: rgba(0, 0, 0, 0.08); }
body:not(.dark-mode) .header-search-box { background-color: rgba(0, 0, 0, 0.05); }
body:not(.dark-mode) .inner-sidebar-nav ul li a:hover,
body:not(.dark-mode) .inner-sidebar-nav ul li.active-link > a { background-color: rgba(0, 0, 0, 0.05); }
body:not(.dark-mode) .mini-right-date,
body:not(.dark-mode) .mini-left-socials a { color: #4b5563; }
body.dark-mode .mini-right-date,
body.dark-mode .mini-left-socials a { color: #d1d5db; }

/* Submenu */
.inner-sidebar-nav ul li .submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  padding-left: 16px;
  background-color: rgba(0, 0, 0, 0.12);
  transition: max-height 0.3s ease-out;
}
.inner-sidebar-nav ul li.dropdown-open .submenu { max-height: 450px; transition: max-height 0.3s ease-in; }
.inner-sidebar-nav ul li .nav-chevron { transition: transform 0.2s ease; margin-left: auto; }
.inner-sidebar-nav ul li.dropdown-open .nav-chevron { transform: rotate(180deg); }
.inner-sidebar-nav .submenu li a.active-link { color: var(--accent-teal) !important; font-weight: 600; }

/* Forms & Inputs */
.form-control,
.form-select,
textarea {
  background-color: var(--bg-workspace) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(149, 165, 166, 0.3) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--accent-teal) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 245, 212, 0.15) !important;
}

.input-group-text {
  background-color: var(--bg-topbar-line) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(149, 165, 166, 0.3) !important;
}

.roms-custom-grid-box {
  background-color: var(--bg-workspace);
  border: 1px solid rgba(149, 165, 166, 0.2);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  color: var(--text-primary);
}

.roms-theme-dropdown {
  background-color: var(--bg-header-main) !important;
  border-color: rgba(149, 165, 166, 0.2) !important;
}
.roms-theme-dropdown .dropdown-item { color: var(--text-primary) !important; }

/* Native HTML5 Progress Bar (Zero Inline Style) */
.roms-native-progress {
  appearance: none;
  -webkit-appearance: none;
  height: 7px;
  border: none;
  border-radius: 6px;
  background-color: rgba(149, 165, 166, 0.18);
  overflow: hidden;
  display: block;
}

.roms-native-progress::-webkit-progress-bar {
  background-color: rgba(149, 165, 166, 0.18);
  border-radius: 6px;
}

.roms-native-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  border-radius: 6px;
}

.roms-native-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  border-radius: 6px;
}

/* DataTables & Pagination */
.roms-dt-wrapper .roms-dt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.roms-dt-input {
  background-color: transparent;
  border: 1px solid rgba(149, 165, 166, 0.3);
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  outline: none;
  font-size: 0.85rem;
}

.roms-dt-select { width: auto; display: inline-block; padding-right: 1.5rem; }
.roms-sort-icon { font-size: 0.65rem; opacity: 0.4; margin-left: 6px; }
.roms-sortable { cursor: pointer; }
.roms-sortable.active-sort .roms-sort-icon { opacity: 1; color: #4a85f6; }

.roms-dt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.roms-pagination,
.pagination { display: flex; gap: 4px; margin-bottom: 0; list-style: none; padding-left: 0; flex-wrap: wrap; }

.roms-page-btn,
.pagination .page-link {
  background-color: var(--bg-workspace);
  border: 1px solid rgba(149, 165, 166, 0.25);
  color: var(--text-primary);
  padding: 0.3rem 0.68rem;
  border-radius: 5px;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.roms-page-btn.active,
.pagination .page-item.active .page-link {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

.roms-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Dropdowns & Modals */
.custom-roms-dropdown {
  background-color: #242a30;
  border: 1px solid rgba(149, 165, 166, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0.35rem 0;
  min-width: 150px;
}
[data-theme="light"] .custom-roms-dropdown { background-color: #ffffff; border-color: rgba(0, 0, 0, 0.08); }
.custom-roms-dropdown .dropdown-item { color: #e0e0e0; font-size: 0.85rem; padding: 0.4rem 1rem; }
[data-theme="light"] .custom-roms-dropdown .dropdown-item { color: #444444; }
.custom-roms-dropdown .dropdown-item:hover { background-color: rgba(74, 133, 246, 0.12) !important; color: #4a85f6 !important; }

.custom-roms-modal .modal-content {
  background-color: #242a30;
  border: 1px solid rgba(149, 165, 166, 0.2);
  color: var(--text-main);
  border-radius: 8px;
}
[data-theme="light"] .custom-roms-modal .modal-content { background-color: #ffffff; border-color: rgba(0, 0, 0, 0.1); }
.custom-roms-modal .modal-header,
.custom-roms-modal .modal-footer { border-color: rgba(149, 165, 166, 0.15); }

/* Charts */
.chart-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 10px; }
.chart-card-header h5 { margin: 0; font-weight: 600; font-size: 1rem; }
.chart-controls { display: flex; gap: 5px; }
.chart-btn-sm {
  background: rgba(149, 165, 166, 0.1);
  border: 1px solid rgba(149, 165, 166, 0.2);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.chart-btn-sm.active,
.chart-btn-sm:hover { background: #4a85f6; color: white; border-color: #4a85f6; }
.chart-container-wrapper { position: relative; height: 300px; width: 100%; }

/* Auth, Roles, User Detail & Tabs */
.guest-main-wrapper { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  background-color: var(--bg-dashboard-card);
  border: 1px solid rgba(149, 165, 166, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}
.login-btn-primary { background-color: var(--accent-blue); color: #ffffff; border: none; transition: all 0.2s ease; }
.login-btn-primary:hover { background-color: var(--accent-teal); color: #041b24; }
.btn-toggle-password { background-color: var(--bg-topbar-line) !important; color: var(--text-primary) !important; border: 1px solid rgba(149, 165, 166, 0.3) !important; border-left: none !important; }
.form-divider { border-top: 1px solid rgba(149, 165, 166, 0.2); margin: 1.5rem 0; }

.permission-group-box {
  background-color: var(--bg-workspace);
  border: 1px solid rgba(149, 165, 166, 0.2);
  border-radius: 8px;
  padding: 15px;
  height: 100%;
}
.permission-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  border-bottom: 1px solid rgba(149, 165, 166, 0.15);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.badge-role-level {
  background-color: rgba(0, 245, 212, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 245, 212, 0.3);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-status-active { background-color: rgba(0, 245, 212, 0.15); color: var(--accent-teal); padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; }
.badge-status-inactive { background-color: rgba(231, 76, 60, 0.15); color: var(--accent-red); padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; }

.user-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: #041b24;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-meta-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.user-meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(149, 165, 166, 0.14);
  font-size: 0.85rem;
  gap: 12px;
}
.user-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }

.perm-audit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px dashed rgba(149, 165, 166, 0.12);
}
.perm-audit-item:last-child { border-bottom: none; padding-bottom: 0; }

.perm-source-tag { font-size: 0.68rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; white-space: nowrap; }
.perm-source-role { background-color: rgba(41, 128, 185, 0.18); color: #5dade2; }
.perm-source-allow { background-color: rgba(0, 245, 212, 0.16); color: var(--accent-teal); }
.perm-source-deny { background-color: rgba(231, 76, 60, 0.16); color: var(--accent-red); }
.perm-source-none { background-color: rgba(149, 165, 166, 0.12); color: var(--text-muted); }

.roms-notif-menu { min-width: 270px; }
.roms-workspace-footer { border-top: 1px solid rgba(149, 165, 166, 0.15); }

.roms-nav-tabs { border-bottom: 1px solid rgba(149, 165, 166, 0.2); gap: 6px; }
.roms-nav-tabs .nav-link {
  color: var(--text-muted);
  background-color: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.roms-nav-tabs .nav-link.active {
  color: var(--accent-teal);
  background-color: rgba(0, 245, 212, 0.06);
  border-color: rgba(149, 165, 166, 0.15);
  border-bottom: 2px solid var(--accent-teal);
}

/* =========================================================
   ROMS-DASH LARAVEL INTEGRATION HELPERS (ZERO-INLINE CSS)
   ========================================================= */
.roms-brand-link {
  text-decoration: none;
  color: inherit;
}

.roms-avatar-circle-overflow {
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}

.roms-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: #041b24;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 50%;
}

.roms-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: #041b24;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chart-container-wrapper-sm {
  position: relative;
  height: 260px;
  width: 100%;
}

.roms-alert-box {
  background-color: var(--bg-dashboard-card);
  border: 1px solid rgba(0, 245, 212, 0.35);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.roms-alert-danger {
  border-color: rgba(231, 76, 60, 0.6);
}

.roms-alert-warning {
  border-color: rgba(241, 196, 15, 0.6);
}

.bar-w-80 { width: 80%; }
.bar-w-55 { width: 55%; }
.bar-w-40 { width: 40%; }

.roms-db-pill {
  background-color: rgba(0, 245, 212, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

body:not(.dark-mode) .roms-db-pill {
  background-color: rgba(41, 128, 185, 0.12);
  color: var(--accent-blue);
  border-color: rgba(41, 128, 185, 0.25);
}

body.dark-mode .table {
  color: var(--text-primary);
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: rgba(149, 165, 166, 0.15);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(0, 245, 212, 0.05);
}

body.dark-mode .modal-content {
  background-color: #242a30;
  color: var(--text-primary);
  border: 1px solid rgba(149, 165, 166, 0.2);
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
  border-color: rgba(149, 165, 166, 0.15);
}

body.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode code {
  color: var(--accent-teal);
}

.roms-page-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.roms-page-header-bar h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.roms-page-header-bar p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.roms-cred-box {
  background-color: var(--bg-workspace);
  border: 1px solid rgba(149, 165, 166, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8rem;
}
