/* --- MODERN VARIABLES --- */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius-xl: 1rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  background-color: var(--bg-body);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- UTILITIES --- */

.hidden-section {
  display: none !important;
}

.fw-bolder {
  font-weight: 700 !important;
}

.text-primary-modern {
  color: var(--primary) !important;
}

/* Animations */

.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- COMPONENTS --- */

/* Modern Card */

.card-modern {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Buttons */

.btn-modern-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
}

.btn-modern-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-modern-secondary {
  background: white;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.2s;
}

.btn-modern-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Inputs */

.form-control-modern {
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  transition: border 0.2s, box-shadow 0.2s;
}

.form-control-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

/* --- AUTH PAGE --- */

.auth-container {
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  width: 95%;
  display: flex;
  min-height: 600px;
}

.auth-left {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right {
  flex: 1;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.auth-right::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  top: -25%;
  left: -25%;
}

/* Mobile Auth Fix */

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .auth-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .auth-left {
    padding: 2rem;
  }
}

/* --- DASHBOARD --- */

.navbar-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Welcome Banner */

.hero-banner {
  background: linear-gradient(120deg, #4f46e5, #9333ea);
  border-radius: var(--radius-xl);
  color: white;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
}

/* Stat Icon Box */

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.icon-primary {
  background: #e0e7ff;
  color: #4f46e5;
}

.icon-success {
  background: #dcfce7;
  color: #10b981;
}

.icon-info {
  background: #e0f2fe;
  color: #0ea5e9;
}

/* Pricing */

.pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  background: white;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  background: #f5f7ff;
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: 12px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 2px 30px;
  font-size: 0.7rem;
  font-weight: bold;
  transform: rotate(45deg);
}

/* Table */

.table-modern {
  --bs-table-bg: transparent;
}

.table-modern thead th {
  background: #f1f5f9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: none;
  padding: 1rem;
}

.table-modern tbody td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.9rem;
}

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

/* Toast */

.toast-custom {
  background: #1e293b;
  color: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-custom.show {
  transform: translateX(0);
}

