* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

  /* Light Mode Colors */
  --bg-primary: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-sidebar: rgba(255, 255, 255, 0.98);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: rgba(226, 232, 240, 0.8);
  --hover-bg: rgba(99, 102, 241, 0.1);
  --input-bg: #ffffff;
  --table-header-bg: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(124, 58, 237, 0.1) 100%
  );
  --alert-info-bg: rgba(59, 130, 246, 0.15);
  --alert-info-border: #3b82f6;
  --alert-info-text: #1e40af;
  --alert-warning-bg: rgba(245, 158, 11, 0.15);
  --alert-warning-border: #f59e0b;
  --alert-warning-text: #92400e;
  --alert-success-bg: rgba(16, 185, 129, 0.15);
  --alert-success-border: #10b981;
  --alert-success-text: #065f46;
}

[data-theme="dark"] {
  --bg-primary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --bg-card: rgba(30, 41, 59, 0.98);
  --bg-sidebar: rgba(15, 23, 42, 0.98);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: rgba(51, 65, 85, 0.6);
  --hover-bg: rgba(99, 102, 241, 0.2);
  --input-bg: #1e293b;
  --table-header-bg: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(124, 58, 237, 0.15) 100%
  );
  --shadow: rgba(0, 0, 0, 0.4);
  --alert-info-bg: rgba(59, 130, 246, 0.25);
  --alert-info-border: #60a5fa;
  --alert-info-text: #93c5fd;
  --alert-warning-bg: rgba(245, 158, 11, 0.25);
  --alert-warning-border: #fbbf24;
  --alert-warning-text: #fcd34d;
  --alert-success-bg: rgba(16, 185, 129, 0.25);
  --alert-success-border: #34d399;
  --alert-success-text: #6ee7b7;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}


/* LOGIN STYLES */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-focus {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-focus:focus {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.btn-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-hover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hover:hover::before {
  width: 300px;
  height: 300px;
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.floating {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.checkbox-custom {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.checkbox-custom:checked {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  transform: scale(1.1);
}

.checkbox-custom:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.social-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.social-btn:hover::after {
  width: 200px;
  height: 200px;
}

.image-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
/* END LOGIN STYLES */

/* STYLES DASHBOARD */
.background-shapes {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  bottom: -50px;
  right: -50px;
  animation-delay: 5s;
}

.shape-3 {
  width: 500px;
  height: 500px;
  background: var(--gradient-4);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.9); }
}

.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* CHANGE: Fixed sidebar toggle and responsive layout */
.sidebar {
  width: 230px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 2rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px var(--shadow);
  position: sticky;
  top: 0;
  height: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

/* CHANGE: Improved collapsed sidebar styles to match design */
.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  display: none;
}

.sidebar.collapsed .logo {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .logo-icon {
  margin: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 1rem;
}

.sidebar.collapsed .nav-icon {
  margin: 0;
  font-size: 1.5rem;
}

.sidebar.collapsed .logo-container {
  padding: 0 1rem 2rem;
}


.sidebar.collapsed + .sidebar-toggle {
  left: 100px;
}

.sidebar.mobile-open {
  transform: translateX(0);
}

.logo-container {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.logo-row {
  display: flex;
  align-items: center; /* centra verticalmente los elementos */
  justify-content: space-between; /* empuja los elementos a los extremos */
  gap: 1rem; /* opcional, espacio entre icono y texto */
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.logo-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* CHANGE: Fixed sidebar user section to show even when collapsed */
/* Removed user section from sidebar, will be moved to header */
.sidebar-user {
  display: none;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-label {
  padding: 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.nav-item {
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--gradient-1);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
  background: var(--hover-bg);
  padding-left: 2rem;
}

.nav-item.active {
  background: var(--hover-bg);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::before {
  transform: scaleY(1);
}

.nav-icon {
  font-size: 1.25rem;
  width: 20px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--gradient-2);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 100%;
  overflow-y: auto;
}

.main-content.expanded {
  margin-left: 80px;
  width: calc(100% - 80px);
} 

.header {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px var(--shadow);
  border: 1px solid var(--border-color);
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--hover-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.25rem;
  position: relative;
  color: var(--text-primary);
}

.icon-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.icon-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 11px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  border: 3px solid var(--bg-card);
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse-badge 2s infinite;
} 

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.theme-toggle {
  position: relative;
  width: 48px;
  height: 48px;
}

.theme-toggle input {
  display: none;
}

.theme-toggle label {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--hover-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.theme-toggle label:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* CHANGE: Added user dropdown styles */
.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-profile:hover {
  background: var(--hover-bg);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-user .user-dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.header-user.active .user-dropdown-icon {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--hover-bg);
}

.user-dropdown-item.logout {
  color: var(--danger);
  border-top: 1px solid var(--border-color);
}

.user-dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Improved stats grid responsive behavior */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}
.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}
.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}
.stat-card:nth-child(4) {
  animation-delay: 0.4s;
}
.stat-card:nth-child(5) {
  animation-delay: 0.5s;
}
.stat-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-card.gradient-2 .stat-icon {
  background: var(--gradient-2);
  box-shadow: 0 8px 16px rgba(236, 72, 153, 0.3);
}
.stat-card.gradient-3 .stat-icon {
  background: var(--gradient-3);
  box-shadow: 0 8px 16px rgba(79, 172, 254, 0.3);
}
.stat-card.gradient-4 .stat-icon {
  background: var(--gradient-4);
  box-shadow: 0 8px 16px rgba(67, 233, 123, 0.3);
}
.stat-card.gradient-5 .stat-icon {
  background: var(--gradient-5);
  box-shadow: 0 8px 16px rgba(250, 112, 154, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.trend-up {
  color: var(--success);
}

.trend-down {
  color: var(--danger);
}

.trend-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
}

.trend-down .trend-icon {
  background: rgba(239, 68, 68, 0.1);
}

.stat-comparison {
  color: var(--text-secondary);
  font-weight: 500;
}

.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow);
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

.btn-success {
  background: var(--gradient-4);
  color: white;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.btn-info {
  background: var(--gradient-3);
  color: white;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: var(--hover-bg);
  color: var(--primary);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.filter-container {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.filter-pill:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.search-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--input-bg);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.25rem;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--hover-bg);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.info-box {
  background: var(--hover-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.calendar-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}

.calendar-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
}

.calendar-date {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.date-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gradient-1);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.date-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
}

.alert {
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: fadeInUp 0.5s;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.alert-info {
  background: var(--alert-info-bg);
  border: 2px solid var(--alert-info-border);
  color: var(--alert-info-text);
}

.alert-info .alert-icon {
  background: var(--info);
  color: white;
}

.alert-warning {
  background: var(--alert-warning-bg);
  border: 2px solid var(--alert-warning-border);
  color: var(--alert-warning-text);
}

.alert-warning .alert-icon {
  background: var(--warning);
  color: white;
}

.alert-success {
  background: var(--alert-success-bg);
  border: 2px solid var(--alert-success-border);
  color: var(--alert-success-text);
}

.alert-success .alert-icon {
  background: var(--success);
  color: white;
}

.alert-content {
  flex: 1;
}

.alert-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.alert-content p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead {
  background: var(--table-header-bg);
}

th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
}

th:first-child {
  border-top-left-radius: 12px;
}

th:last-child {
  border-top-right-radius: 12px;
}

td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-primary);
}

tbody tr {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

tbody tr:nth-child(1) {
  animation-delay: 0.05s;
}
tbody tr:nth-child(2) {
  animation-delay: 0.1s;
}
tbody tr:nth-child(3) {
  animation-delay: 0.15s;
}
tbody tr:nth-child(4) {
  animation-delay: 0.2s;
}
tbody tr:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

tbody tr:hover {
  background: var(--hover-bg);
  transform: translateX(4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.badge-cold {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  color: #3730a3;
}

.badge-cold::before {
  background: #3730a3;
}

.badge-warm {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.badge-warm::before {
  background: #92400e;
}

.badge-hot {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #9a3412;
}

.badge-hot::before {
  background: #9a3412;
}

.badge-enrolled,
.badge-validated,
.badge-active {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.badge-enrolled::before,
.badge-validated::before,
.badge-active::before {
  background: #065f46;
}

.badge-pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
}

.badge-pending::before {
  background: #78350f;
}

.badge-upcoming {
  background: linear-gradient(135deg, #ddd6fe 0%, #c7d2fe 100%);
  color: #5b21b6;
}

.badge-upcoming::before {
  background: #5b21b6;
}

.badge-finished {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #374151;
}

.badge-finished::before {
  background: #374151;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--hover-bg);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.close-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--input-bg);
  color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input, .form-select, .form-textarea {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--input-bg);
  color: var(--text-primary);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px var(--shadow);
  display: none;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  border-left: 4px solid var(--success);
  max-width: 400px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.active {
  display: flex;
}

.toast-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.toast.active {
  display: flex;
}

.toast.active {
  display: flex;
}

.toast-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-card);
}

.timeline-content {
  background: var(--hover-bg);
  padding: 1rem;
  border-radius: 12px;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-text {
  color: var(--text-primary);
  font-size: 0.875rem;
}

.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--hover-bg);
}

.file-upload input {
  display: none;
}

.file-list {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--hover-bg);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* CHANGE: Added styles for unified modal sections */
.modal-section {
  margin-bottom: 3rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.section-icon.gradient-2 {
  background: var(--gradient-2);
}

.section-icon.gradient-3 {
  background: var(--gradient-3);
}
/* END CHANGE */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tab {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  margin-bottom: -2px;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Added responsive styles and chart container styles */
/* Enhanced responsive design for mobile and tablet */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .advanced-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* CHANGE: Improved responsive design for mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    left: 1rem;
  }
  
  .sidebar.collapsed + .sidebar-toggle {
    left: 1rem;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }
  
  .main-content.expanded {
    margin-left: 0;
    width: 100%;
  }
  
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header-left h1 {
    font-size: 1.5rem; /* Adjusted for mobile */
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-user .user-info {
    display: none;
  }
  
  .header-user .user-dropdown-icon {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .card-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .card-actions .btn {
    flex: 1;
    min-width: 120px;
  }
  
  .filter-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }
  
  .advanced-filters {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 800px;
  }
  
  .modal {
    padding: 0;
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }

  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .revenue-breakdown {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .activity-feed {
    max-height: 300px;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .chart-card {
    padding: 1rem;
    min-height: 350px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .pagination {
    gap: 0.25rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    font-size: 0.875rem;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .header-left h1 {
    font-size: 1.25rem; /* Further adjust for smaller screens */
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
  
  .breadcrumb {
    font-size: 0.75rem;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  th, td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
}

/* Chart container styles */
/* Fixed charts grid to prevent overlapping */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 400px;
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.chart-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.chart-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.chart-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 300px;
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--hover-bg);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 250px;
  }
}

.conversion-funnel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.funnel-stage {
  background: var(--hover-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.funnel-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-1);
}

.funnel-stage:hover {
  transform: translateX(8px);
}

.funnel-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.funnel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.funnel-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.funnel-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.funnel-percentage {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}
/* END CHANGE */

/* Added advanced filter styles */
.advanced-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  animation: slideDown 0.4s ease;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.filter-select {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.date-range-inputs {
  display: flex;
  gap: 0.5rem;
}

.date-input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.date-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn-primary {
  background: var(--gradient-1);
  color: white;
}

.filter-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.filter-btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.filter-btn-secondary:hover {
  border-color: var(--primary);
}

/* Added activity feed styles */
.activity-feed {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  max-height: 400px;
  overflow-y: auto;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.activity-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: var(--hover-bg);
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease;
}

.activity-item:hover {
  transform: translateX(4px);
  background: rgba(99, 102, 241, 0.15);
}

.activity-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.activity-item-content {
  flex: 1;
}

.activity-item-text {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.activity-item-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Added revenue tracking styles */
/* CHANGE: Removed revenue card styles - no longer needed */
/* Revenue card styles removed as per user request */

/* Added quick actions styles */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-action-btn {
  padding: 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.quick-action-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--shadow);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.quick-action-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Enhanced animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .advanced-filters {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .revenue-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .advanced-filters {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .revenue-breakdown {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .activity-feed {
    max-height: 300px;
  }
}

/* CHANGE: Added mobile overlay for sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7); /* Dark background */
  backdrop-filter: blur(4px); /* Slight blur effect */
  z-index: 99; /* Below sidebar, above main content */
}

.sidebar-overlay.active {
  display: block;
}

/* Ensure overlay is hidden on larger screens by default */
@media (min-width: 769px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Adjust overlay display for mobile */
@media (max-width: 768px) {
  .sidebar-overlay.active {
    display: block;
  }
}
/* Fixed action buttons to be clean icon buttons like in the image */
.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.action-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  transform: scale(1.1);
}

.action-btn.view-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.action-btn.edit-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.action-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* Added avatar styles for table rows */
/* Added avatar styles for table rows */
.prospect-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.prospect-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prospect-name-text {
  display: flex;
  flex-direction: column;
}

.prospect-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* Fixed sidebar toggle button for desktop */
.sidebar-toggle {
  top: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  margin-left: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  z-index: 101;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px var(--shadow);
}

.sidebar-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.sidebar.collapsed + .sidebar-toggle {
  left: 1rem;
}

/* Fixed mobile overlay z-index to not cover everything */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Fixed sidebar for mobile */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 100;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .main-content.expanded {
    margin-left: 0;
    width: 100%;
  }
  
  /* Fixed filters layout on mobile to prevent overflow */
  .advanced-filters {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .date-range-inputs {
    flex-direction: column;
  }
  
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .header-user .user-info {
    display: none;
  }
  
  .header-user {
    padding: 0.5rem;
  }
}
/* END STYLES DASHBOARD */