/* Style untuk Stepper Tracking */
/* =================================
   STEPPER TRACKING BARU (Embossed)
==================================== */

/* Warna dari tema ungu */
:root {
  --stepper-purple: #6f42c1; /* var(--lezzat-purple-dark) */
  --stepper-green: #6cffc7; /* var(--lezzat-green-accent) */
  --stepper-red: #dc3545;   /* Bootstrap Danger */
  --stepper-grey-light: #e9ecef; /* Abu terang */
  --stepper-grey-dark: #adb5bd;  /* Abu sedang */
  --stepper-text-dark: #212529;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    position: relative; /* Untuk garis */
}

/* Garis dasar abu-abu */
.stepper-wrapper::before {
    content: "";
    position: absolute;
    top: 20px; /* Posisi vertikal garis */
    left: 20px; /* Mulai setelah setengah lingkaran pertama */
    right: 20px; /* Berakhir sebelum setengah lingkaran terakhir */
    height: 3px;
    background-color: var(--stepper-grey-light);
    z-index: 1; /* Di bawah lingkaran */
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    font-size: 0.85rem;
    color: var(--stepper-grey-dark); /* Warna teks default */
    z-index: 2; /* Di atas garis */
}

.stepper-item .step-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--stepper-grey-light); /* Warna lingkaran default */
    border: 3px solid white; /* Border putih untuk efek "terpisah" */
    margin-bottom: 6px;
    color: var(--stepper-grey-dark); /* Warna angka default */
    font-weight: bold;
    /* Efek 3D / Emboss sederhana */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), /* Shadow luar */
                inset 0 1px 1px rgba(255,255,255,0.5), /* Highlight dalam atas */
                inset 0 -1px 1px rgba(0,0,0,0.1); /* Shadow dalam bawah */
    position: relative; /* Untuk garis progres */
}

/* Garis progress (akan diwarnai) */
.stepper-item::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: var(--stepper-purple); /* Warna default progress (Ungu) */
    z-index: -1; /* Di belakang lingkaran, di atas garis abu */
    transform: scaleX(0); /* Awalnya tidak terlihat */
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Status Selesai (Completed) */
.stepper-item.completed .step-counter {
    background-color: var(--stepper-purple);
    color: white;
    border-color: var(--stepper-grey-light); /* Ubah border agar menyatu */
}
.stepper-item.completed {
    color: var(--stepper-text-dark); /* Warna teks jadi gelap */
}
/* Munculkan garis progress ungu setelahnya */
.stepper-item.completed::after {
   transform: scaleX(1);
}

/* Status Aktif (Active) */
.stepper-item.active .step-counter {
    background-color: var(--stepper-green);
    color: var(--stepper-text-dark); /* Teks gelap di atas hijau muda */
    border-color: var(--stepper-grey-light);
    /* Sedikit perbesar lingkaran aktif */
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 1px 1px rgba(255,255,255,0.7), inset 0 -1px 1px rgba(0,0,0,0.1);
}
.stepper-item.active {
    color: var(--stepper-text-dark);
}
/* Garis progress sebelum yang aktif juga ungu */
.stepper-item.active::after {
    width: 50%; /* Hanya sampai tengah lingkaran aktif */
    transform: scaleX(1);
}

/* Status Ditolak (Danger) */
.stepper-item.danger .step-counter {
    background-color: var(--stepper-red);
    color: white;
    border-color: var(--stepper-grey-light);
}
.stepper-item.danger {
    color: var(--stepper-red); /* Warna teks jadi merah */
}
/* Garis progress sebelum yang ditolak ungu, setelahnya merah */
.stepper-item.danger::after {
    width: 50%;
    transform: scaleX(1);
    background-color: var(--stepper-red); /* Garis jadi merah */
}

/* Sembunyikan garis after pada item terakhir */
.stepper-item:last-child::after {
    content: none;
}

/* =================================
   LAYOUT ADMIN BARU
==================================== */

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 240px;
    padding: 20px 0;
    background-color: #2c3e50; /* Warna gelap */
    color: #ecf0f1;
    overflow-y: auto;
    z-index: 1030; /* Di atas konten, di bawah topbar */
    transition: all 0.3s;
}

.admin-sidebar-header {
    padding: 0 1.5rem 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #34495e;
}

.admin-sidebar .nav-link {
    color: #bdc3c7; /* Warna link abu-abu */
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #34495e; /* Warna hover/aktif */
    color: #fff;
}

.admin-sidebar .nav-link .icon {
    margin-right: 10px;
}

.admin-sidebar .sidebar-divider {
    height: 1px;
    background-color: #34495e;
    margin: 1rem 1.5rem;
}

.admin-sidebar .nav-category {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: #95a5a6; /* Warna kategori */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Topbar (header admin) */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 240px; /* Sejajar dengan lebar sidebar */
    right: 0;
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1020;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pindahkan dropdown ke kanan */
    transition: all 0.3s;
}

/* Konten Utama */
.admin-content {
    margin-left: 240px; /* Sejajar dengan lebar sidebar */
    margin-top: 60px; /* Di bawah topbar */
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
    transition: all 0.3s;
}

/* =================================
   LANDING PAGE BARU (index.php)
==================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #198754 0%, #157347 100%); /* Gradient Hijau */
    color: white;
    padding: 6rem 0; /* Lebih banyak padding */
    text-align: center;
}
.hero-section .display-4 {
    font-weight: 700; /* Lebih Bold */
}
.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.hero-section .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}
.hero-section .btn-light {
    color: #198754; /* Warna hijau untuk tombol light */
}
.hero-section .btn-outline-light:hover {
    color: #198754;
}

/* Section Styling */
.section-padding {
    padding: 4rem 0;
}
.section-title {
    margin-bottom: 3rem;
    font-weight: 600;
    color: #343a40; /* Warna judul section */
}

/* How it Works Section */
.how-it-works-item {
    text-align: center;
    padding: 1.5rem;
}
.how-it-works-item .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #eaf6ec; /* Hijau sangat muda */
    color: #198754; /* Hijau */
    font-size: 2rem; /* Ukuran ikon */
    margin-bottom: 1.5rem;
}
.how-it-works-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Features Section */
.feature-card {
    border: none; /* Hilangkan border card */
    background-color: #f8f9fa; /* Background abu muda */
    padding: 2rem;
    text-align: center;
    border-radius: 0.5rem; /* Sedikit rounded corner */
    height: 100%; /* Agar tinggi card sama */
    transition: transform 0.2s ease-in-out;
}
.feature-card:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat hover */
}
.feature-card .feature-icon {
    font-size: 3rem; /* Ukuran ikon fitur */
    color: #198754; /* Warna hijau */
    margin-bottom: 1.5rem;
}
.feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: #eaf6ec; /* Hijau sangat muda */
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.cta-section .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* =================================
   HEADER & FOOTER BARU (GRADIENT UNGU-PINK)
==================================== */

/* Warna Gradien */
:root {
  --gradient-purple: #8e5bd9; /* Ungu muda dari tema sebelumnya */
  --gradient-pink: #d63384;   /* Pink Bootstrap */
  --gradient-text: #ffffff; /* Warna teks di atas gradien */
}

/* Navbar Kustom */
.navbar-custom-gradient {
    background: linear-gradient(90deg, var(--gradient-purple) 0%, var(--gradient-pink) 100%);
    color: var(--gradient-text);
    /* Efek Emboss/3D Sederhana */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), /* Shadow bawah */
                inset 0 1px 1px rgba(255, 255, 255, 0.3), /* Highlight atas */
                inset 0 -1px 1px rgba(0, 0, 0, 0.1); /* Shadow dalam bawah */
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Garis bawah halus */
}

/* Warna Teks & Link Navbar */
.navbar-custom-gradient .navbar-brand,
.navbar-custom-gradient .nav-link,
.navbar-custom-gradient .dropdown-toggle {
    color: var(--gradient-text) !important;
}

/* Warna Hover Link Navbar */
.navbar-custom-gradient .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important; /* Sedikit redup saat hover */
}

/* Tombol Outline (misal: Registrasi) di Navbar */
.navbar-custom-gradient .btn-outline-light {
    border-color: var(--gradient-text);
    color: var(--gradient-text) !important;
}
.navbar-custom-gradient .btn-outline-light:hover {
    background-color: var(--gradient-text);
    color: var(--gradient-purple) !important; /* Warna ungu saat hover */
}

/* Avatar Navbar */
.navbar-custom-gradient .navbar-avatar {
    border: 1px solid rgba(255, 255, 255, 0.5); /* Border putih transparan */
}

/* Footer Kustom */
.footer-custom-gradient {
    background: linear-gradient(90deg, var(--gradient-pink) 0%, var(--gradient-purple) 100%); /* Gradien dibalik */
    color: var(--gradient-text);
    /* Efek Emboss/3D Sederhana */
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1), /* Shadow atas */
                inset 0 1px 1px rgba(255, 255, 255, 0.1), /* Highlight dalam atas tipis */
                inset 0 -1px 1px rgba(255, 255, 255, 0.3); /* Highlight dalam bawah */
    border-top: 1px solid rgba(0,0,0,0.1); /* Garis atas halus */
}

/* Warna Link Footer */
.footer-custom-gradient a {
    color: var(--gradient-text);
    text-decoration: underline; /* Beri garis bawah agar jelas link */
}
.footer-custom-gradient a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Iframe Peta */
.footer-custom-gradient iframe {
    border-radius: 0.25rem; /* Sedikit rounded corner */
    border: 1px solid rgba(255,255,255,0.2);
}
