/* ==========================================================================
   SISTEM REKOMENDASI KARIER MAHASISWA - BASE CORE DESIGN SYSTEM
   File: assets/css/style.css
   Contains: Global Tokens, Typography, Reset, Utilities, Buttons, Alerts
   ========================================================================== */

:root {
  /* Brand Primary Colors */
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #ecfdf5;
  --primary-subtle: #d1fae5;
  --primary-glow: rgba(5, 150, 105, 0.25);

  /* Secondary & Accents */
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-teal: #0d9488;
  --accent-blue: #3b82f6;

  /* Neutrals & Dark Tones */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Layout dimensions */
  --sidebar-width: 260px;
  --topbar-height: 68px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Base Card Components */
.card-custom {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
  box-shadow: var(--shadow-md);
}

.card-elevated {
  border: none;
  box-shadow: var(--shadow-lg);
}

/* Button System - Clean Modern Standard Box (8px radius) */
.btn-unu-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 22px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-unu-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-unu-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: var(--slate-900);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 22px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transition: all 0.25s ease;
}

.btn-unu-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-rounded {
  border-radius: 8px !important;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--slate-100);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  background: var(--slate-200);
  color: var(--slate-900);
  transform: translateY(-1px);
}

.theme-icon-sun {
  display: none;
  color: #f59e0b;
}

.theme-icon-moon {
  display: inline-block;
  color: var(--slate-600);
}

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

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

/* Custom Pills and Tabs */
.custom-pills {
  background: var(--slate-100);
  padding: 5px;
  border-radius: var(--radius-full);
  display: inline-flex;
  gap: 4px;
}

.custom-pills .nav-link {
  border-radius: var(--radius-full);
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 20px;
  border: none;
  transition: all 0.2s ease;
}

.custom-pills .nav-link.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* Badge Styles */
.badge-soft-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-subtle);
}

.badge-soft-warning {
  background-color: var(--accent-gold-light);
  color: var(--accent-gold-dark);
  border: 1px solid #fde68a;
}

.badge-soft-info {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Flash Alert Styling */
.alert {
  border-radius: var(--radius-md);
  border: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xs);
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--primary);
}

.alert-danger {
  background: #fff1f2;
  color: #9f1239;
  border-left: 4px solid var(--accent-rose);
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--accent-gold);
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-left: 4px solid var(--accent-blue);
}

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

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