@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-color: #4F46E5;
  --primary-hover: #4338CA;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --bg-color: #f8fafc;
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --border-color: #e2e8f0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
}

/* Modern Card Styling */
.card-modern {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-modern:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Sidebar Customizations */
.sidebar {
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: #f1f5f9;
  width: 250px;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 10px rgba(0,0,0,0.1);
  transition: width var(--transition-normal);
}

.sidebar .sidebar-header {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.5rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sidebar .nav-link {
  color: #94a3b8;
  font-size: 1.05rem;
  padding: 0.8rem 1.5rem;
  margin: 0.25rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.sidebar .nav-link i {
  width: 24px;
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.sidebar .nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--white);
  transform: translateX(4px);
}

.sidebar .nav-link:hover i {
  transform: scale(1.1);
}

.sidebar .nav-link.active {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Main Content Area */
.main-content {
  margin-left: 250px;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.topbar-center-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.topbar h2 {
  font-weight: 700;
  color: var(--sidebar-bg);
  letter-spacing: -0.5px;
  margin: 0;
}

/* Dashboard Cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.dashboard-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary-color);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card .icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  background: #eef2ff;
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-card .card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card .card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* Modern Tables */
.table-modern {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.table-modern thead th {
  background-color: #f1f5f9;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-modern tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr {
  transition: background-color var(--transition-fast);
}

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

/* Modern Buttons */
.btn-modern {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-modern:active {
  transform: scale(0.97);
}

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

/* Utilities */
.fw-semibold { font-weight: 600; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
