/* ==========================================================================
   Ravelware Brand Theme Stylesheet (https://ravelware.co.id/)
   Dual-System Technology: Slate-900 (#0f172a), IoT Blue (#0284c7), Graphene Amber (#d97706), Top Purple (#7c3aed)
   ========================================================================== */

:root {
  --rv-dark: #0f172a;
  --rv-dark-surface: #1e293b;
  --rv-dark-border: #334155;
  --rv-blue: #0284c7;
  --rv-blue-hover: #0369a1;
  --rv-royal: #2563eb;
  --rv-royal-hover: #1d4ed8;
  --rv-amber: #d97706;
  --rv-amber-hover: #b45309;
  --rv-purple: #7c3aed;
  --rv-bg: #f8fafc;
  --rv-text-main: #0f172a;
  --rv-text-muted: #64748b;
  --rv-border: #e2e8f0;
}

body {
  background-color: #f8fafc !important;
  color: #334155;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Top Purple Accent Line (Signature Ravelware Portal Accent) */
.topbar,
.navbar.topbar {
  border-top: 3px solid #7c3aed !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  background-color: #ffffff !important;
}

/* Sidebar Theme */
#accordionSidebar,
.sidebar-dark {
  background-color: #0f172a !important;
  background-image: none !important;
  border-right: 1px solid #1e293b;
}

.sidebar-dark .sidebar-brand {
  color: #ffffff !important;
}

.sidebar-dark .nav-item .nav-link {
  color: #94a3b8 !important;
  transition: all 0.2s ease-in-out;
}

.sidebar-dark .nav-item .nav-link i,
.sidebar-dark .nav-item .nav-link span {
  color: #cbd5e1;
}

.sidebar-dark .nav-item .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-dark .nav-item .nav-link:hover i,
.sidebar-dark .nav-item .nav-link:hover span {
  color: #ffffff !important;
}

.sidebar-dark .nav-item.active .nav-link {
  color: #ffffff !important;
  background-color: rgba(2, 132, 199, 0.2) !important;
  border-left: 3px solid #0284c7;
}

.sidebar-dark .nav-item.active .nav-link i,
.sidebar-dark .nav-item.active .nav-link span {
  color: #38bdf8 !important;
}

.sidebar-dark hr.sidebar-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-item .collapse .collapse-inner {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item {
  color: #cbd5e1 !important;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item:hover {
  background-color: #0f172a !important;
  color: #38bdf8 !important;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.text-gray-900 {
  color: #0f172a !important;
  font-weight: 700;
}

.text-primary {
  color: #0284c7 !important;
}

/* Primary Cards & Accents */
.border-left-primary {
  border-left: 0.25rem solid #0284c7 !important;
}

.border-left-success {
  border-left: 0.25rem solid #10b981 !important;
}

.border-left-warning {
  border-left: 0.25rem solid #d97706 !important;
}

.border-left-info {
  border-left: 0.25rem solid #0284c7 !important;
}

.border-left-dark {
  border-left: 0.25rem solid #0f172a !important;
}

.card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

/* Buttons */
.btn-primary {
  color: #ffffff !important;
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #0369a1 !important;
  border-color: #0369a1 !important;
}

.btn-dark {
  color: #ffffff !important;
  background-color: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25) !important;
}

.btn-dark:hover, .btn-dark:focus {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

.btn-warning {
  color: #ffffff !important;
  background-color: #d97706 !important;
  border-color: #d97706 !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3) !important;
}

.btn-warning:hover, .btn-warning:focus {
  background-color: #b45309 !important;
  border-color: #b45309 !important;
}

.btn-success {
  color: #ffffff !important;
  background-color: #059669 !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
}

.btn-success:hover, .btn-success:focus {
  background-color: #047857 !important;
  border-color: #047857 !important;
}

/* Form Controls */
.form-control:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.2) !important;
}

/* Badges */
.badge-primary {
  background-color: rgba(2, 132, 199, 0.15) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-warning {
  background-color: rgba(217, 119, 6, 0.15) !important;
  color: #b45309 !important;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Footer */
.footer {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
}
