/* =========================================
   Tema Modern Orange - LSP SMKN 1 Bangkalan
   ========================================= */

:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff7ed;
  --text-muted: #64748b;
  --dark: #1e293b;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
}

/* =========================================
   Warna Background Kustom
   ========================================= */
.bg-orange-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.bg-orange-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.bg-orange-light {
  background-color: var(--primary-light);
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 237, 213, 0.3), rgba(255, 237, 213, 0.6));
}

/* =========================================
   Navbar Modern
   ========================================= */
.navbar {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

.navbar-brand img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Aturan warna putih HANYA untuk link di dalam Navbar atas */
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Aturan khusus untuk link di sidebar (agar override text-dark & text-primary berfungsi) */
.card .nav-link.text-dark {
  color: var(--dark) !important;
}

.card .nav-link.text-primary {
  color: var(--primary) !important;
}

/* =========================================
   Override Tombol (Button) Bootstrap
   ========================================= */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: var(--border-radius-sm);
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 5px 14px rgba(249, 115, 22, 0.35);
  transform: translateY(-2px);
}

.text-primary {
  color: var(--primary) !important;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
              url('https://images.unsplash.com/photo-1523050853063-915894614232?q=80&w=1470&auto=format&fit=crop') center/cover no-repeat;
  min-height: 75vh;
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  color: #ffffff;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.95;
}

/* =========================================
   Stat Cards (Efek Overlap Hero)
   ========================================= */
.stat-cards-wrapper {
  margin-top: -80px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 24px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================
   Elemen Umum (Judul, Teks, Kartu)
   ========================================= */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
}

.text-block {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-skema {
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: var(--card-bg);
}

.card-skema:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* =========================================
   Halaman Login (Split Screen Modern)
   ========================================= */
.login-split {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

.login-left {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.login-right {
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  width: 100%;
}

.login-hello {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 0.8rem;
}

.login-tagline {
  font-size: 1rem;
  opacity: 0.85;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-form {
  max-width: 420px;
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.login-form .form-control {
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  border: 1px solid #ced4da;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* =========================================
   Footer Animasi
   ========================================= */
.footer-bg {
  background: linear-gradient(135deg, #ffedd5, #f97316);
  background-size: 200% 200%;
  animation: gradScroll 20s linear infinite;
  color: #222;
}

@keyframes gradScroll {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}