/* Custom Styling & Tailwind Enhancements */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #ffffff;
  color: #0f172a;
  overflow-x: hidden;
}

body.admin-body,
.dark body {
  background-color: #020617 !important;
  color: #f8fafc !important;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.dark .glass-panel,
html.dark .glass-panel,
body.admin-body .glass-panel,
.admin-body .glass-panel {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(30, 41, 59, 0.9) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
}

/* Admin Backend Dark Theme Overrides */
.admin-body input,
.admin-body textarea,
.admin-body select {
  background-color: #020617 !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: #06b6d4 !important;
}

.admin-body option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

.admin-body table th {
  background-color: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

.admin-body table td {
  border-color: #1e293b !important;
  color: #cbd5e1 !important;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Badge Glows */
.glow-accent {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.4);
}

/* Modal and Drawer Overlay */
.drawer-overlay {
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-content {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
