/* Font utama */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #212529;
    overflow-x: hidden;
}

/* NAVBAR STYLE */
.navbar {
    background: #ffffff !important;
    padding: 15px 0;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0d6efd !important; /* Warna biru logo */
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-btn-outline {
    border: 1px solid #212529;
    color: #212529;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.nav-btn-solid {
    background-color: #0f172a; /* Warna gelap tombol Login */
    color: #ffffff;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #0f172a;
    transition: 0.3s;
}
.nav-btn-solid:hover {
    background-color: #334155;
    color: #fff;
}

/* --- UPDATE BACKGROUND HERO (FULL SIDE GRADIENT) --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
    padding: 0;
}

/* Layer 1: Gradasi Linear (Full dari Kiri ke Kanan) */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* Ganti jadi Linear Gradient 90 derajat */
    background: linear-gradient(90deg, 
        #4b93ff 0%,         /* Biru Terang di sisi paling kiri */
        #a6caff 35%,        /* Biru Muda di tengah kiri */
        #ffffff 65%,        /* Mulai Putih */
        #ffffff 100%        /* Putih total di kanan */
    );
    z-index: 0;
}

/* Layer 2: Pola Grid (Kotak-kotak) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Grid dengan warna biru tipis agar terlihat di atas background biru & putih */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.4) 1px, transparent o.5px), /* Garis vertikal agak putih */
        linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 1px, transparent 0.5px); /* Garis horizontal agak putih */
    background-size: 60px 60px;
    /* Tambahkan grid biru gelap tipis untuk area putih agar grid tetap terlihat */
    background-image: 
        linear-gradient(to right, rgba(37, 99, 235, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Update Navbar agar menyatu (efek kaca) */
.navbar {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px); /* Efek blur di belakang navbar */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Judul Besar */
.hero-title {
    font-size: 3rem; /* Ukuran font diperbesar */
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.text-ngilmu { color: #f59e0b; } /* Kuning/Oranye */
.text-blue { color: #2563eb; }   /* Biru */
.text-black { color: #1e293b; }  /* Hitam/Gelap */

.hero-desc {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Tombol Hitam 'Gabung Mitra' */
.btn-cta-dark {
    background-color: #0f172a;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

/* Footer sederhana */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   SIDEBAR LAYOUT STYLE
   ========================================= */
body.student-layout {
    background-color: #f3f5f9; /* Background abu muda */
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-width: 280px;
    max-width: 280px;
    background-color: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 1000;
    border-top-right-radius: 30px; 
    border-bottom-right-radius: 30px;
}

/* Profil di Sidebar */
.sidebar-profile {
    text-align: center;
    margin-bottom: 40px;
}
.profile-img-box {
    width: 90px;
    height: 90px;
    background: #2563eb; /* Biru */
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Menu Links */
.list-group-item {
    border: none;
    padding: 12px 20px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #64748b;
    border-radius: 12px !important;
    background: transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-group-item:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Menu Aktif (Warna Oranye seperti referensi) */
.list-group-item.active {
    background-color: #f59e0b !important; /* Kuning/Oranye */
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* Content Wrapper */
#page-content-wrapper {
    width: 100%;
    padding: 30px;
    overflow-y: auto;
}

/* Responsive: Hide sidebar on mobile */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -280px;
        position: fixed;
        height: 100vh;
        transition: margin 0.25s ease-out;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

/* =========================================
   TEACHER LAYOUT (SIDEBAR GURU)
   ========================================= */
body.teacher-layout {
    background-color: #f3f5f9;
    overflow-x: hidden;
}

/* Profil Guru: Biru (seperti Siswa) */
.teacher-profile-img-box {
    width: 90px;
    height: 90px;
    background: #2563eb; /* Biru */
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Menu Aktif: Kuning/Oranye (seperti Siswa) */
.list-group-item.teacher-active {
    background-color: #f59e0b !important; /* Kuning */
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* Hover Effect untuk Card (Pemanis) */
.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease;
}