:root {
  --primary-color: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --primary-hover: #4338ca;
  --secondary-color: #10b981;
  --bg-main: #f1f5f9;
  --sidebar-bg: #1e293b;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.rounded-12 {
  border-radius: 0.75rem !important;
}
.rounded-16 {
  border-radius: 1rem !important;
}
.rounded-20 {
  border-radius: 1.25rem !important;
}
.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.shadow-soft {
  box-shadow: var(--shadow-soft) !important;
}
.shadow-lg-premium {
  box-shadow: var(--shadow-lg) !important;
}

.bg-light-soft {
  background-color: #f8fafc !important;
}
.bg-primary-soft {
  background-color: rgba(79, 70, 229, 0.08) !important;
}
.text-primary-dark {
  color: #312e81 !important;
}

/* Sidebar Enhancement */
.main-sidebar {
  background: var(--sidebar-bg) !important;
  border-right: none !important;
  box-shadow: 15px 0 35px rgba(0, 0, 0, 0.1) !important;
}

.brand-link {
  padding: 1.5rem 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.nav-sidebar .nav-link {
  border-radius: 12px !important;
  margin: 4px 14px !important;
  transition: var(--transition) !important;
  padding: 11px 16px !important;
  font-weight: 500;
  font-size: 0.875rem;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center;
}

.nav-sidebar .nav-link i {
  font-size: 1.1rem;
  margin-right: 12px;
  width: 24px;
  text-align: center;
  opacity: 0.7;
  transition: var(--transition);
}

.nav-sidebar .nav-link:hover {
  background-color: var(--sidebar-hover) !important;
  color: #fff !important;
  transform: translateX(4px);
}

.nav-sidebar .nav-link:hover i {
  opacity: 1;
}

.nav-sidebar .nav-link.active {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4) !important;
  font-weight: 600;
}

.nav-sidebar .nav-link.active i {
  opacity: 1;
  transform: scale(1.1);
}

.nav-header {
  padding: 1.5rem 1.5rem 0.5rem !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  color: #64748b !important;
}

/* Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color) !important;
  padding: 0.6rem 1.25rem !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: var(--card-shadow) !important;
  transition: var(--transition);
  background: #fff;
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 1.25rem 1.75rem !important;
}

/* Buttons */
.btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 0.625rem 1.5rem !important;
  transition: var(--transition) !important;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35) !important;
}

.btn-light {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

.btn-light:hover {
  background-color: #fff !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-1px);
}

/* Badges */
.badge {
  padding: 0.6em 1em !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem !important;
}

/* Tables */
.table thead th {
  background-color: #f8fafc;
  border-bottom: 2px solid #f1f5f9 !important;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 1.25rem 1.5rem !important;
}

.table td {
  padding: 1.25rem 1.5rem !important;
  vertical-align: middle;
  border-top: 1px solid #f8fafc !important;
}

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

/* Layout Content Wrapper */
.content-wrapper {
  background-color: var(--bg-main) !important;
}

/* Utilities */
.hover-scale {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.hover-scale:hover {
  transform: scale(1.1);
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}

/* Form Elements */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Inputs */
.form-control {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0.75rem 1.25rem !important;
  height: auto !important;
  font-size: 0.95rem !important;
  background-color: #f8fafc !important;
  transition: var(--transition) !important;
}

.form-control:focus {
  background-color: #fff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

/* Premium Shadows & Radii */
.shadow-lg-premium {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}
.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.rounded-12 {
  border-radius: 12px !important;
}
.rounded-16 {
  border-radius: 16px !important;
}
.rounded-20 {
  border-radius: 20px !important;
}

/* Accent Backgrounds */
.bg-primary-soft {
  background-color: rgba(79, 70, 229, 0.1) !important;
}
.bg-light-soft {
  background-color: #f8fafc !important;
}
