/* ==========================================================================
   ENTERPRISE TAILWIND DESIGN SYSTEM - SEKOLAH DIGITAL SAAS v2.5
   Ultra-modern, sleek, high-conversion SaaS aesthetic with 60fps performance
   ========================================================================== */

/* 1. Base Canvas & Typography */
body.enterprise-theme {
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Enterprise Surfaces & Cards */
.enterprise-card,
main .bg-white {
  background-color: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 1.25rem;
  box-shadow: 
    0 1px 3px 0 rgba(15, 23, 42, 0.04), 
    0 1px 2px -1px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.enterprise-card:hover,
main .bg-white:hover {
  border-color: rgba(203, 213, 225, 0.95) !important;
}

.enterprise-card-hover:hover,
.glass-card-hover:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1 !important;
  box-shadow: 
    0 14px 30px -5px rgba(15, 23, 42, 0.08), 
    0 4px 10px -2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 1) !important;
}

/* Inner Panels & Sub-Cards */
.bg-slate-50,
.bg-slate-50\/80,
.bg-slate-50\/50,
.bg-slate-50\/30 {
  background-color: #f8fafc !important;
}

/* Borders */
.border-slate-200,
.border-slate-200\/90,
.border-slate-200\/80,
.border-slate-100 {
  border-color: #e2e8f0 !important;
}

/* 3. Deep Enterprise Dark Sidebar */
#mainSidebar {
  background: linear-gradient(180deg, #090d16 0%, #0d1322 100%) !important;
  border-right: 1px solid rgba(30, 41, 59, 0.85) !important;
  box-shadow: 4px 0 28px 0 rgba(0, 0, 0, 0.35) !important;
}

#mainSidebar .border-slate-800,
#mainSidebar .border-slate-800\/90,
#mainSidebar .border-slate-800\/80 {
  border-color: rgba(30, 41, 59, 0.85) !important;
}

#mainSidebar .bg-slate-950\/50 {
  background-color: rgba(5, 8, 17, 0.75) !important;
}

/* Sidebar Section Headers */
#mainSidebar .text-slate-400 {
  color: #64748b !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.09em !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

/* Sidebar Active Nav Item */
#mainSidebar a.bg-sky-600,
#mainSidebar a.bg-indigo-600,
#mainSidebar a.bg-emerald-600,
#mainSidebar a.bg-brand-600 {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px 0 rgba(79, 70, 229, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 0.875rem !important;
}

#mainSidebar a.bg-emerald-600 {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
  box-shadow: 0 4px 16px 0 rgba(5, 150, 105, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.25) !important;
}

/* Sidebar Inactive Nav Hover */
#mainSidebar a:not(.bg-sky-600):not(.bg-indigo-600):not(.bg-emerald-600):not(.bg-brand-600) {
  color: #94a3b8;
  border-radius: 0.875rem;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
#mainSidebar a:not(.bg-sky-600):not(.bg-indigo-600):not(.bg-emerald-600):not(.bg-brand-600):hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

/* 4. Enterprise Header / Topbar */
header {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03) !important;
}

header .bg-slate-50,
header .bg-slate-100 {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  border-radius: 0.75rem !important;
}

header .bg-slate-100:hover,
header .bg-slate-200:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* 5. Enterprise Inputs & Form Controls */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="color"]):not([type="range"]),
select,
textarea {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.875rem !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.02) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="color"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18), 0 1px 2px 0 rgba(15, 23, 42, 0.03) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* 6. Buttons System */
button.bg-sky-600,
a.bg-sky-600,
button.bg-brand-700,
a.bg-brand-700,
button.bg-brand-600,
a.bg-brand-600,
button.bg-indigo-600,
a.bg-indigo-600 {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 2px 8px 0 rgba(79, 70, 229, 0.28) !important;
  font-weight: 700 !important;
  border-radius: 0.875rem !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button.bg-sky-600:hover,
a.bg-sky-600:hover,
button.bg-brand-700:hover,
a.bg-brand-700:hover,
button.bg-indigo-600:hover,
a.bg-indigo-600:hover {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 18px -2px rgba(79, 70, 229, 0.4) !important;
  transform: translateY(-1px);
}

button.bg-emerald-500,
a.bg-emerald-500,
button.bg-emerald-600,
a.bg-emerald-600 {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 2px 8px 0 rgba(5, 150, 105, 0.28) !important;
  font-weight: 700 !important;
  border-radius: 0.875rem !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button.bg-emerald-500:hover,
a.bg-emerald-500:hover,
button.bg-emerald-600:hover,
a.bg-emerald-600:hover {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%) !important;
  box-shadow: 0 6px 18px -2px rgba(5, 150, 105, 0.4) !important;
  transform: translateY(-1px);
}

/* Secondary Button Pill */
.bg-slate-100 {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  border-radius: 0.875rem !important;
}

.bg-slate-100:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* 7. Enterprise Tables */
table thead tr {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

table thead th {
  color: #64748b !important;
  font-weight: 800 !important;
  font-size: 0.725rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* 8. Enterprise Stat Cards */
.bg-emerald-50\/30 {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}

.bg-amber-50\/30 {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
}

.bg-sky-50\/30 {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
}

.bg-purple-50\/30 {
  background-color: #faf5ff !important;
  border: 1px solid #e9d5ff !important;
}

.bg-rose-50\/30 {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
}

/* 9. Badges & Chips */
.badge-success, .bg-emerald-100, .bg-emerald-50 {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

.badge-warning, .bg-amber-100, .bg-amber-50 {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

.badge-danger, .bg-rose-100, .bg-rose-50 {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #9f1239 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

.badge-info, .bg-sky-100, .bg-sky-50 {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

.bg-purple-100, .bg-purple-50 {
  background-color: #faf5ff !important;
  border: 1px solid #e9d5ff !important;
  color: #6b21a8 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

.bg-teal-100, .bg-teal-50 {
  background-color: #f0fdfa !important;
  border: 1px solid #99f6e4 !important;
  color: #115e59 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
}

/* 10. Modals */
div[id^="modal"] {
  background-color: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

div[id^="modal"] > div {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3) !important;
  border-radius: 1.5rem !important;
}

/* 11. Alerts / Notification Cards */
.bg-sky-50 {
  background-color: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 1rem !important;
}

/* 12. Minimalist Enterprise Thin Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 13. Text Selection */
::selection {
  background-color: rgba(79, 70, 229, 0.25);
  color: #312e81;
}
