/* Custom Premium Theme - Gravity Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  --bg-gradient: linear-gradient(to right, #f8f9fa, #eef2f3);
  --sidebar-bg: #ffffff;
  --sidebar-active-bg: rgba(118, 75, 162, 0.1);
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-md: 12px;
  --radius-lg: 20px;
}

body {
  font-family: 'Outfit', sans-serif !important;
  background: var(--bg-gradient) !important;
  color: var(--text-primary) !important;
  overflow-x: hidden;
}

/* Global Overrides */
.card {
  border: none !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(118, 75, 162, 0.6);
}

/* Sidebar Modernization */
.app-sidebar {
  background: var(--sidebar-bg) !important;
  box-shadow: var(--shadow-md) !important;
  border-right: none !important;
}

.side-menu__item {
  border-radius: 10px;
  margin: 5px 15px;
  transition: all 0.3s;
  color: var(--text-secondary) !important;
}

.side-menu__item:hover,
.side-menu__item.active {
  background: var(--sidebar-active-bg) !important;
  color: #764ba2 !important;
  font-weight: 600;
}

.side-menu__icon {
  color: inherit !important;
}

/* Header Modernization */
.main-header {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm) !important;
  border-bottom: none !important;
}

/* Login Page Specifics */
.login-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-glass {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
}

.form-control-modern {
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s;
}

.form-control-modern:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

/* Dashboard Cards */
.card-stats-modern {
  position: relative;
  overflow: hidden;
  color: white !important;
}

.card-stats-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Modern Tables */
.table-modern {
  border-collapse: separate;
  border-spacing: 0 10px;
  width: 100%;
}

.table-modern thead th {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  padding: 15px;
}

.table-modern tbody tr {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.table-modern tbody tr:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.table-modern tbody td {
  border: none;
  padding: 15px;
  vertical-align: middle;
}

.table-modern tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.table-modern tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}