:root {
  /* Premium Light Palette */
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --secondary: #0ea5e9;
  --accent: #f43f5e;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-input: #f8fafc;

  --text-main: #0f172a;
  --text-dim: #475569;
  --text-muted: #94a3b8;
  --text-label: #9ba3af;

  --border: rgba(0, 0, 0, 0.05);
  --border-focus: rgba(79, 70, 229, 0.3);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 8px 12px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 10px 20px -5px rgba(79, 70, 229, 0.2);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Premium Components */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-premium);
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-premium {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
}

.card-premium:hover {
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.08);
}



/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: linear-gradient(to right, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar Premium Light */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 4.5rem;
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.nav-brand svg {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
}

.nav-link-premium {
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-premium:hover { 
  color: #4f46e5; 
  background: rgba(79, 70, 229, 0.05); 
}

.nav-link-active { 
  color: #4f46e5; 
  background: rgba(79, 70, 229, 0.1); 
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

/* Modern Title Style */
.title-modern {
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .title-modern { font-size: 2.5rem; }
}

/* Form Styling Refinement */
.form-input-premium,
select.form-input-premium {
  background: var(--bg-input);
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  appearance: none;
  padding: 10px 20px;
}

.form-input-premium:focus,
select.form-input-premium:focus {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.1);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.05);
}

select.form-input-premium {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1rem;
  padding-right: 3rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-label);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.icon-container-premium {
  padding: 0.75rem;
  background: #eef2ff;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-premium {
  width: 100%;
  padding: 1.15rem;
  border-radius: 1.15rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary-gradient {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.1);
}

/* Buttons Premium Light */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

/* Stats Premium Light */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--text-main);
}

.progress-bg {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Toast Premium Light */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-main);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Table Premium Light */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.data-table tr:hover td {
  background: #fcfdfe;
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    padding: 1rem;
    height: auto;
  }

  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .desktop-only {
    display: none !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { 
  animation: fadeIn 0.5s ease forwards; 
}