@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: rgba(79, 70, 229, 0.08);
  --secondary-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --sidebar-bg: #0f172a;
  --sidebar-active: #1e293b;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, #020617 100%);
  color: #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #a5b4fc 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar a {
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 18px;
  display: block;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.sidebar a:hover, .sidebar a.active {
  color: #ffffff;
  background-color: var(--sidebar-active);
  transform: translateX(4px);
}

/* Main Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  border-bottom: 1px solid #f1f5f9;
}

/* Premium Buttons */
.btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 18px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Beautiful Cards */
.card {
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

/* Form Inputs */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Tables */
.table th {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-width: 1px;
}

.table td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--text-main);
}

/* Custom Utilities */
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* Dashboard Card Enhancements */
.card-footer a {
  font-weight: 600;
}

.main-content {
  padding: 24px 36px;
  flex-grow: 1;
  max-width: calc(100vw - 250px);
  animation: contentFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Global Dynamic Premium Animations */
@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Micro-animation on Badges */
.badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge:hover {
  transform: scale(1.08);
}

/* Smooth row entrance in tables */
tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}
tbody tr:hover {
  transform: translateX(2px);
  background-color: rgba(79, 70, 229, 0.02) !important;
}

/* Pulse indicator animations */
@keyframes softPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pulse-slow {
  animation: softPulse 3s infinite ease-in-out;
}

/* Premium Footer Watermark Styles */
.text-gradient-premium {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hover-glow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
  border-color: rgba(79, 70, 229, 0.3) !important;
}

.footer {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0 !important;
}

.shadow-xs {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Custom Slate Color Utilities for Premium Typography */
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-850 { color: #0f172a !important; }
.text-slate-660 { color: #3f4e64 !important; }

/* Premium Carousel Custom Navigation Icons */
.carousel-control-custom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(15, 23, 42, 0.65) !important;
  color: #ffffff !important;
  border-radius: 50%;
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev:hover .carousel-control-custom-icon,
.carousel-control-next:hover .carousel-control-custom-icon {
  background-color: var(--primary-color) !important;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}