/* ============================================
   VARIABLES & RESET - DIPERBAIKI
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #198754;
  --green-2: #157347;
  --orange: #fd7e14;
  --orange-2: #e86f0c;
  --soft: #f6f8fb;
  --ink: #0f172a;
  --muted: #6b7280;
  
  /* TAMBAHKAN VARIABEL BARU */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   ACCESSIBILITY & FOCUS - BARU
============================================ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--green);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 9999;
}

.skip-to-main:focus {
  top: 10px;
}

/* ============================================
   NAVIGATION - DIPERBAIKI
============================================ */
.nav-soft {
  background: linear-gradient(90deg, 
    rgba(25, 135, 84, 0.10), 
    rgba(253, 126, 20, 0.10)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(25, 135, 84, 0.12);
  color: var(--green);
  border: 1px solid rgba(25, 135, 84, 0.18);
  transition: var(--transition);
}

.brand-chip:hover {
  transform: scale(1.05);
  background: rgba(25, 135, 84, 0.18);
}

.nav-link {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--green);
  background: rgba(25, 135, 84, 0.08);
}

.nav-link.active {
  color: var(--green) !important;
  font-weight: 700;
  background: rgba(25, 135, 84, 0.12);
}

/* ============================================
   HERO SECTION - DIPERBAIKI
============================================ */
.hero {
  background: 
    radial-gradient(900px 260px at 10% 0%, rgba(25, 135, 84, 0.14), transparent 60%),
    radial-gradient(900px 260px at 90% 0%, rgba(253, 126, 20, 0.14), transparent 60%),
    #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ============================================
   TYPOGRAPHY - DIPERBAIKI
============================================ */
.section-title {
  font-weight: 800;
  position: relative;
  padding-left: 16px;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 1.75rem); /* Responsif font size */
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--green), var(--orange));
}

.text-muted {
  color: var(--muted) !important;
}

.text-muted-2 {
  color: #5b667a;
}

/* ============================================
   CARDS - DIPERBAIKI
============================================ */
.card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  background: #ffffff;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(25, 135, 84, 0.2);
}

.card-soft {
  background: linear-gradient(135deg, 
    rgba(25, 135, 84, 0.08), 
    rgba(253, 126, 20, 0.08)
  );
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* ============================================
   BUTTONS - DIPERBAIKI
============================================ */
.btn-green {
  background: var(--green);
  border: 2px solid var(--green);
  color: #fff;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-green:hover,
.btn-green:focus {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(25, 135, 84, 0.2);
}

.btn-outline-green {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-green:hover,
.btn-outline-green:focus {
  background: rgba(25, 135, 84, 0.10);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* ============================================
   BADGES - DIPERBAIKI
============================================ */
.badge {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  line-height: 1;
}

/* Merge badge yang duplikat */
.badge-green,
.badge-publish {
  background: rgba(25, 135, 84, 0.12);
  color: var(--green);
  border: 1px solid rgba(25, 135, 84, 0.18);
}

.badge-process {
  background: rgba(253, 126, 20, 0.14);
  color: var(--orange-2);
  border: 1px solid rgba(253, 126, 20, 0.22);
}

.badge-accept {
  background: rgba(25, 135, 84, 0.16);
  color: var(--green-2);
  border: 1px solid rgba(25, 135, 84, 0.22);
}

.badge-draft {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* ============================================
   UTILITIES - DIPERBAIKI & DITAMBAH
============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Flex utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid utility */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Text utilities */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Border radius menggunakan variabel */
.rounded-16 { border-radius: var(--radius-lg); }
.rounded-18 { border-radius: var(--radius-xl); }

.bg-soft { background: var(--soft) !important; }
.bg-green-soft { background: rgba(25, 135, 84, 0.08) !important; }
.bg-orange-soft { background: rgba(253, 126, 20, 0.08) !important; }

.shadow-soft {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.text-gradient {
  background: linear-gradient(90deg, var(--green), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ============================================
   FORM ELEMENTS - DIPERBAIKI
============================================ */
.form-control,
.form-select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
  outline: none;
}

/* ============================================
   ANIMATIONS - DIPERBAIKI
============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(25, 135, 84, 0.2);
  border-radius: 50%;
  border-top-color: var(--green);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE - DIPERBAIKI
============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card {
    border-radius: var(--radius-lg);
  }
  
  .nav-soft {
    padding: 0.75rem 0;
  }
  
  /* Responsive grid */
  .grid-auto-fit {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --soft: #0f172a;
    --ink: #f1f5f9;
    --muted: #94a3b8;
  }
  
  body {
    background: #0f172a;
  }
  
  .card,
  .hero {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
  }
  
  .nav-soft {
    background: linear-gradient(90deg, 
      rgba(25, 135, 84, 0.15), 
      rgba(253, 126, 20, 0.15)
    );
    border-color: rgba(255, 255, 255, 0.08);
  }
  /* ===== NAVBAR MODERN ===== */
.navbar-modern {
  background: linear-gradient(135deg, #166534, #22c55e);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.navbar-brand {
  color: #fff !important;
}

.navbar-brand small {
  color: rgba(255,255,255,.8);
  font-size: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: .25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255,255,255,.18);
  color: #fff !important;
}

.btn-ppdb {
  background: #fff;
  color: #166534;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.btn-ppdb:hover {
  background: #f0fdf4;
  color: #14532d;
}

}