/* ============================================================================== */
/* RIZZADMIN 1.1 - ELEGANT ROYAL BLUE THEME WITH COLORFUL ICON IDENTITIES         */
/* Distinct Menu Accents • Colorful Vivid Icons • Maximum Contrast & Readability  */
/* ============================================================================== */

:root {
  --rizz-primary: #2563eb;
  --rizz-primary-hover: #1d4ed8;
  --rizz-primary-dark: #1e40af;
  --rizz-primary-light: #3b82f6;
  --rizz-primary-cyan: #38bdf8;

  --rizz-body-bg: #f4f6fb;
  --rizz-card-bg: #ffffff;
  --rizz-border: #e2e8f0;
  --rizz-text-main: #0f172a;
  --rizz-text-muted: #64748b;

  --rizz-radius-sm: 8px;
  --rizz-radius: 12px;
  --rizz-radius-lg: 16px;

  --rizz-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --rizz-shadow-hover: 0 10px 25px -4px rgba(37, 99, 235, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* Global Body Styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  background-color: var(--rizz-body-bg) !important;
  color: var(--rizz-text-main) !important;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------- */
/* 1. TOP SUITE RIBBON (HIGH-END MIDNIGHT NAVY BLUE)             */
/* ------------------------------------------------------------- */
#topSuiteRibbon {
  background: linear-gradient(90deg, #09152b 0%, #0d1e3d 30%, #12284e 65%, #09152b 100%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.28) !important;
  box-shadow: 0 2px 10px rgba(9, 21, 43, 0.25) !important;
  color: #f1f5f9 !important;
}

#topSuiteRibbon .text-slate-400 {
  color: #cbd5e1 !important;
}

#topSuiteRibbon strong,
#topSuiteRibbon span.font-bold {
  color: #ffffff !important;
}

#topSuiteRibbon .bg-slate-900\/90 {
  background: rgba(9, 21, 43, 0.8) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
}

#topSuiteRibbon .bg-slate-900\/90:hover {
  background: rgba(18, 40, 78, 0.9) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

#topSuiteRibbon div[onclick*="copyServerIp"] {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(37, 99, 235, 0.3) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
}

#topSuiteRibbon div[onclick*="copyServerIp"]:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45) 0%, rgba(37, 99, 235, 0.5) 100%) !important;
  border-color: #38bdf8 !important;
}

#topSuiteRibbon #topRibbonServerIp {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* ------------------------------------------------------------- */
/* 2. WHM TOP NAVBAR & BRAND LOGO                                */
/* ------------------------------------------------------------- */
#viewWhmRoot > header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--rizz-border) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* WHM Brand Box on the Left */
.cpanel-navy, 
#viewWhmRoot > header > div.flex.items-center.h-full > div.w-72 {
  background: linear-gradient(135deg, #0d1e3d 0%, #12284e 50%, #15305e 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#viewWhmRoot > header > div.flex.items-center.h-full > div.w-72:hover {
  background: linear-gradient(135deg, #12284e 0%, #15305e 50%, #1a3c75 100%) !important;
}

#viewWhmRoot > header > div.flex.items-center.h-full > div.w-72 span:first-child {
  color: #38bdf8 !important; /* Sky Blue TTM */
  text-shadow: 0 2px 8px rgba(56, 189, 248, 0.6) !important;
}

#viewWhmRoot > header > div.flex.items-center.h-full > div.w-72 span:nth-child(2) {
  color: #ffffff !important; /* Pure White PANEL */
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4) !important;
}

#viewWhmRoot > header > div.flex.items-center.h-full > div.w-72 span.flex.items-center.space-x-1 {
  background: rgba(14, 165, 233, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
}

/* ------------------------------------------------------------- */
/* 3. WHM LEFT SIDEBAR - DEEP ROYAL BLUE GRADIENT                */
/* ------------------------------------------------------------- */
aside.w-72.cpanel-navy {
  background: linear-gradient(180deg, #0d1e3d 0%, #12284e 25%, #15305e 50%, #12284e 75%, #09152b 100%) !important;
  border-right: 1px solid rgba(59, 130, 246, 0.25) !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25) !important;
  color: #f1f5f9 !important;
}

/* Expand & Collapse Top Bar */
aside.w-72.cpanel-navy > div:first-child {
  background: rgba(0, 0, 0, 0.18) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

aside.w-72.cpanel-navy > div:first-child button {
  background: rgba(10, 22, 45, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

aside.w-72.cpanel-navy > div:first-child button:hover {
  background: rgba(18, 40, 78, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Sidebar Search Bar */
aside.w-72.cpanel-navy > div:nth-child(2) {
  background: rgba(0, 0, 0, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

aside.w-72.cpanel-navy input#whmSidebarSearch {
  background: rgba(10, 22, 45, 0.85) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
}

aside.w-72.cpanel-navy input#whmSidebarSearch::placeholder {
  color: #94a3b8 !important;
}

aside.w-72.cpanel-navy input#whmSidebarSearch:focus {
  background: rgba(14, 30, 60, 0.95) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

aside.w-72.cpanel-navy > div:nth-child(2) i {
  color: #94a3b8 !important;
}

/* ------------------------------------------------------------- */
/* 4. SIDEBAR MENU ITEMS & CATEGORY CARDS (HIGH CONTRAST)        */
/* ------------------------------------------------------------- */

/* Standalone Menu: Home / Dashboard Utama */
aside.w-72.cpanel-navy div[onclick*="showWhmSection('dashboard')"] {
  background: rgba(10, 22, 45, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 3.5px solid #38bdf8 !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

aside.w-72.cpanel-navy div[onclick*="showWhmSection('dashboard')"]:hover {
  background: rgba(18, 40, 78, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28) !important;
  transform: translateY(-1px) !important;
}

aside.w-72.cpanel-navy div[onclick*="showWhmSection('dashboard')"] span.font-bold {
  color: #ffffff !important;
  font-size: 13px !important;
}

aside.w-72.cpanel-navy div[onclick*="showWhmSection('dashboard')"] span.p-1\.5 {
  background: rgba(14, 165, 233, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

aside.w-72.cpanel-navy div[onclick*="showWhmSection('dashboard')"] span.font-mono {
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

/* Base Category Header Card (.whm-cat-header) */
.whm-cat-header {
  padding: 0.65rem 0.85rem !important;
  margin: 0.3rem 0.45rem !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: rgba(10, 22, 45, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.whm-cat-header:hover {
  background: rgba(18, 40, 78, 0.95) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px) !important;
}

.whm-cat-header .accordion-arrow {
  color: #94a3b8 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.whm-cat-header:hover .accordion-arrow {
  color: #ffffff !important;
  transform: translateX(2px) !important;
}

.whm-cat-header .cat-badge {
  padding: 6px !important;
  border-radius: 7px !important;
  transition: transform 0.2s ease !important;
}

.whm-cat-header:hover .cat-badge {
  transform: scale(1.1) !important;
}

/* Category 1: Account Information (Sky Blue Identity) */
div[onclick*="toggleAccordion('cat-acctinfo')"] {
  border-left: 3.5px solid #38bdf8 !important;
}
div[onclick*="toggleAccordion('cat-acctinfo')"]:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-acctinfo')"] .cat-badge {
  background: rgba(14, 165, 233, 0.22) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}
div[onclick*="toggleAccordion('cat-acctinfo')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-acctinfo {
  border-left: 2px solid rgba(56, 189, 248, 0.4) !important;
}

/* Category 2: Account Functions (Emerald Green Identity) */
div[onclick*="toggleAccordion('cat-acctfunc')"] {
  border-left: 3.5px solid #34d399 !important;
}
div[onclick*="toggleAccordion('cat-acctfunc')"]:hover {
  border-color: rgba(52, 211, 153, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-acctfunc')"] .cat-badge {
  background: rgba(16, 185, 129, 0.22) !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  color: #34d399 !important;
}
div[onclick*="toggleAccordion('cat-acctfunc')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-acctfunc {
  border-left: 2px solid rgba(52, 211, 153, 0.4) !important;
}

/* Category 3: Fitur Web & Database (Amber Gold Identity) */
div[onclick*="toggleAccordion('cat-webtools')"] {
  border-left: 3.5px solid #fbbf24 !important;
}
div[onclick*="toggleAccordion('cat-webtools')"]:hover {
  border-color: rgba(251, 191, 36, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-webtools')"] .cat-badge {
  background: rgba(245, 158, 11, 0.22) !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
}
div[onclick*="toggleAccordion('cat-webtools')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-webtools {
  border-left: 2px solid rgba(251, 191, 36, 0.4) !important;
}

/* Category 4: Kelola Pelanggan (Purple Violet Identity) */
div[onclick*="toggleAccordion('cat-resellers')"] {
  border-left: 3.5px solid #c084fc !important;
}
div[onclick*="toggleAccordion('cat-resellers')"]:hover {
  border-color: rgba(192, 132, 252, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-resellers')"] .cat-badge {
  background: rgba(168, 85, 247, 0.22) !important;
  border: 1px solid rgba(192, 132, 252, 0.45) !important;
  color: #c084fc !important;
}
div[onclick*="toggleAccordion('cat-resellers')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-resellers {
  border-left: 2px solid rgba(192, 132, 252, 0.4) !important;
}

/* Category 5: Server Configuration (Rose Coral Identity) */
div[onclick*="toggleAccordion('cat-srvcfg')"] {
  border-left: 3.5px solid #fb7185 !important;
}
div[onclick*="toggleAccordion('cat-srvcfg')"]:hover {
  border-color: rgba(251, 113, 133, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-srvcfg')"] .cat-badge {
  background: rgba(244, 63, 94, 0.22) !important;
  border: 1px solid rgba(251, 113, 133, 0.45) !important;
  color: #fb7185 !important;
}
div[onclick*="toggleAccordion('cat-srvcfg')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-srvcfg {
  border-left: 2px solid rgba(251, 113, 133, 0.4) !important;
}

/* Category 6: System & Server Tools (Indigo Identity) */
div[onclick*="toggleAccordion('cat-system')"] {
  border-left: 3.5px solid #818cf8 !important;
}
div[onclick*="toggleAccordion('cat-system')"]:hover {
  border-color: rgba(129, 140, 248, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-system')"] .cat-badge {
  background: rgba(99, 102, 241, 0.22) !important;
  border: 1px solid rgba(129, 140, 248, 0.45) !important;
  color: #818cf8 !important;
}
div[onclick*="toggleAccordion('cat-system')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-system {
  border-left: 2px solid rgba(129, 140, 248, 0.4) !important;
}

/* Category 7: Transfers & Backup (Teal Mint Identity) */
div[onclick*="toggleAccordion('cat-backup')"] {
  border-left: 3.5px solid #2dd4bf !important;
}
div[onclick*="toggleAccordion('cat-backup')"]:hover {
  border-color: rgba(45, 212, 191, 0.5) !important;
}
div[onclick*="toggleAccordion('cat-backup')"] .cat-badge {
  background: rgba(20, 184, 166, 0.22) !important;
  border: 1px solid rgba(45, 212, 191, 0.45) !important;
  color: #2dd4bf !important;
}
div[onclick*="toggleAccordion('cat-backup')"] span[class*="text-"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
#cat-backup {
  border-left: 2px solid rgba(45, 212, 191, 0.4) !important;
}

/* ------------------------------------------------------------- */
/* 5. SUBMENU ITEMS (PRESERVE VIBRANT COLORFUL ICONS)           */
/* ------------------------------------------------------------- */
.whm-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.55rem 0.85rem !important;
  margin: 0.2rem 0.35rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #e2e8f0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-left: 3px solid transparent !important;
  user-select: none !important;
}

.whm-nav-item span {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

/* Preserving and glowing the colorful icons */
.whm-nav-item i {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease !important;
  flex-shrink: 0 !important;
}

.whm-nav-item:hover {
  color: #ffffff !important;
  background: rgba(59, 130, 246, 0.2) !important;
  border-left-color: #38bdf8 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.whm-nav-item:hover span {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.whm-nav-item:hover i {
  transform: scale(1.22) !important;
  filter: drop-shadow(0 0 7px currentColor) !important;
}

/* Active Menu Item (Luminous Royal Blue Pill with Cyan Indicator) */
.whm-nav-item.is-active,
.whm-nav-sky.is-active,
.whm-nav-amber.is-active,
.whm-nav-emerald.is-active,
.whm-nav-purple.is-active,
.whm-nav-indigo.is-active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.45) 0%, rgba(15, 36, 74, 0.75) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-left: 4px solid #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.whm-nav-item.is-active span,
.whm-nav-sky.is-active span,
.whm-nav-amber.is-active span,
.whm-nav-emerald.is-active span,
.whm-nav-purple.is-active span,
.whm-nav-indigo.is-active span {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.whm-nav-item.is-active i,
.whm-nav-sky.is-active i,
.whm-nav-amber.is-active i,
.whm-nav-emerald.is-active i,
.whm-nav-purple.is-active i,
.whm-nav-indigo.is-active i {
  filter: drop-shadow(0 0 8px currentColor) !important;
  transform: scale(1.2) !important;
}

/* ------------------------------------------------------------- */
/* 6. RIZZADMIN CARDS & CONTAINERS                               */
/* ------------------------------------------------------------- */
.cpanel-card,
.card,
div[class*="bg-white rounded-xl"],
div[class*="bg-white rounded-2xl"] {
  background: #ffffff !important;
  border: 1px solid var(--rizz-border) !important;
  border-radius: var(--rizz-radius) !important;
  box-shadow: var(--rizz-shadow) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.cpanel-card:hover,
div[class*="bg-white rounded-xl"]:hover {
  box-shadow: var(--rizz-shadow-hover) !important;
  border-color: #cbd5e1 !important;
}

.cpanel-card-header {
  padding: 12px 18px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background: #fafcff !important;
  border-bottom: 1px solid #edf2f7 !important;
  border-radius: var(--rizz-radius) var(--rizz-radius) 0 0 !important;
}

/* ------------------------------------------------------------- */
/* 7. BUTTONS - ELEGANT ROYAL BLUE GRADIENT                      */
/* ------------------------------------------------------------- */
.btn-primary,
button.bg-blue-600,
a.bg-blue-600,
button[class*="bg-blue-600"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover,
button.bg-blue-600:hover,
a.bg-blue-600:hover,
button[class*="bg-blue-600"]:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42) !important;
  transform: translateY(-1px) !important;
}

/* ------------------------------------------------------------- */
/* 8. FORM INPUTS & FOCUS RING                                   */
/* ------------------------------------------------------------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
select,
textarea {
  border-radius: var(--rizz-radius-sm) !important;
  border-color: #cbd5e1 !important;
  transition: all 0.2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rizz-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

/* ------------------------------------------------------------- */
/* 9. TABLES - CLEAN RIZZADMIN MODERN LOOK                       */
/* ------------------------------------------------------------- */
table thead th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--rizz-border) !important;
}

table tbody td {
  padding: 10px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
  font-size: 12.5px !important;
}

table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.03) !important;
}

/* ------------------------------------------------------------- */
/* 10. SCROLLBAR                                                 */
/* ------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}
