/* ==================================================
   MODERN ADMIN DASHBOARD CSS
   Glassmorphism + Neumorphism Design
   ================================================== */

:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --success: #06ffa5;
  --danger: #ef233c;
  --warning: #ff9f1c;
  --info: #00b4d8;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
  
  --sidebar-width: 280px;
  --header-height: 70px;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: var(--dark);
  line-height: 1.5;
  min-height: 100vh;
}

/* ==================================================
   AUTH PAGE (LOGIN)
   ================================================== */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.6s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-logo p {
  color: var(--gray);
  margin-top: 8px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(67, 97, 238, 0.4);
}

/* ==================================================
   DASHBOARD LAYOUT
   ================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-menu {
  padding: 20px 0;
}

.menu-item {
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(67, 97, 238, 0.2);
  color: white;
  border-left: 3px solid var(--primary);
}

.menu-item i {
  width: 24px;
  font-size: 20px;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px;
}

/* Top Navbar */
.top-navbar {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.user-dropdown {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.user-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(67,97,238,0.1), rgba(114,9,183,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-icon i {
  font-size: 28px;
  color: var(--primary);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--gray);
  font-size: 14px;
}

/* Tables */
.data-table {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f8f9fa;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--gray);
}

.data-table tr:hover {
  background: #f8f9fa;
}

/* Badges */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-success {
  background: rgba(6, 255, 165, 0.2);
  color: #06a777;
}

.badge-danger {
  background: rgba(239, 35, 60, 0.2);
  color: #c1121f;
}

.badge-warning {
  background: rgba(255, 159, 28, 0.2);
  color: #e85d04;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Sidebar Menu Enhancements */
  .sidebar-menu {
      flex: 1;
      padding-bottom: 20px;
  }

  .menu-item {
      transition: all 0.3s ease;
      margin: 4px 12px;
      border-radius: 12px;
  }

  .menu-item:hover {
      background: rgba(67, 97, 238, 0.15);
      transform: translateX(5px);
  }

  .menu-item.active {
      background: linear-gradient(135deg, rgba(67,97,238,0.2), rgba(114,9,183,0.1));
      border-left: 3px solid var(--primary);
  }

  /* Badge for menu items (optional) */
  .menu-item .badge {
      background: var(--primary);
      color: white;
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 20px;
      margin-left: auto;
  }

  /* Submenu animations */
  .submenu {
      overflow: hidden;
      transition: all 0.3s ease;
  }

  .submenu-item {
      transition: all 0.2s ease;
      padding-left: 20px;
  }

  .submenu-item:hover {
      padding-left: 25px;
  }
}