@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* =========================================
   GLOBAL RESET & VARIABLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-inter: 'Inter', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
    --gc-border: #dadce0;
    --gc-hover: #f1f3f4;
    --gc-text: #3c4043;
    --gc-blue: #1967d2;
    --primary-blue: #007bff;
    --layout-header-height: 82px;
}

/* =========================================
   1. LANDING PAGE (index.html)
========================================= */
.landing-page {
    font-family: var(--font-inter);
}

.landing-nav {
    position: absolute;
    top: 0; width: 100%;
    padding: 20px 40px;
    z-index: 10;
    background: white;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
}

.school-name {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
    padding-left: 15px;
    font-size: 0.9rem;
    color: #333;
}

.school-name span { color: #666; font-size: 0.8rem; }

.hero-section {
    position: relative;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #ddd;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

/* =========================================
   2. LOGIN PAGE (login.html)
========================================= */
.login-page {
    font-family: var(--font-inter);
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-wrapper {
    width: 900px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-box {
    display: flex;
    height: 550px;
}

.login-form-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header h2 { font-size: 1.2rem; margin: 15px 0 5px; color: #222; }
.login-header p { font-size: 0.85rem; color: #666; margin-bottom: 30px; }

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.input-group .right-icon { left: auto; right: 15px; cursor: pointer; }

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    background-color: #f0f7ff;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.forgot-password { text-align: right; margin-bottom: 20px; font-size: 0.85rem; }
.forgot-password a { color: var(--primary-blue); text-decoration: none; }

.btn-login {
    width: 100%; padding: 12px; background: var(--primary-blue);
    color: white; border: none; border-radius: 8px; font-weight: 600;
    cursor: pointer; margin-bottom: 15px;
}

.btn-outline-login {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px; background: white; border: 1px solid #ddd;
    border-radius: 8px; color: #333; text-decoration: none; font-weight: 500;
    margin-bottom: 10px; cursor: pointer; font-size: 0.9rem;
}

.login-image-container {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    position: relative;
}

.login-image-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px; color: white;
}

.login-image-overlay h3 { font-size: 1.5rem; margin-bottom: 5px; }
.login-image-overlay p { font-size: 0.9rem; color: #ddd; }

/* =========================================
   3. CLASSROOM DASHBOARD (superAdmin)
========================================= */

.dashboard-page {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 0.875rem; /* PERBAIKAN: Ukuran font sedang ke kecil */
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 1200;
    transition: transform 0.25s ease;
}

.sidebar-header {
    min-height: var(--layout-header-height);
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.school-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a237e;
    font-size: 13px;
    line-height: 1.2;
}

.school-logo i {
    font-size: 1.5rem;
}

/* PERBAIKAN: Sidebar Action & Footer mengikuti gambar */
.user-profile {
    padding: 15px 20px 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
}

.sidebar-actions {
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-actions .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Custom Scrollbar untuk Nav Menu */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}
.nav-menu::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #444;
    text-decoration: none;
    font-weight: 500;
}

.nav-link i.fa-solid:first-child {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    background-color: #f0f4ff;
    color: #0d6efd;
    border-right: 3px solid #0d6efd;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.sidebar-toggle-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid #d9dce3;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.sidebar-overlay {
    display: none;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* PERBAIKAN: Header / Topbar Styling */
.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    min-height: var(--layout-header-height);
    padding: 12px 30px;
    display: flex;
    align-items: center;
    /* Dihapus property flex dari sini agar fungsi w-100 di HTML bekerja dengan benar merapikan search bar */
}

/* Menyesuaikan ukuran input pada Topbar */
.topbar .form-select, .topbar .form-control, .topbar .btn {
    font-size: 0.875rem;
}

.content-area {
    padding: 30px;
    flex: 1;
}

/* Dashboard Cards */
.class-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-cover {
    height: 120px;
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="2" fill="%23e0e0e0"/></svg>'); 
    padding: 15px;
    display: flex;
    align-items: flex-end;
}

.card-banner-pink {
    background-color: #d81b60;
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-approved {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    font-size: 0.8rem;
}

/* Topic List (Detail Page) */
.topic-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #fff;
    border-left: 4px solid #0d6efd;
}

/* WYSIWYG Editor Placeholder (Tambah Kelas) */
.editor-toolbar {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    padding: 8px;
    background-color: #f8f9fa;
}

.editor-toolbar button, .editor-toolbar select {
    border: none;
    background: transparent;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

.editor-content {
    border: 1px solid #ced4da;
    border-radius: 0 0 5px 5px;
    min-height: 200px;
    padding: 15px;
    background-color: white;
}

.upload-cover-box {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
}
/* =========================================
   4. TABS & DETAIL PAGE COMPONENTS
========================================= */

/* Main Tabs (Topik, Anggota, Diskusi) */
.custom-tabs {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}
.custom-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background: transparent;
}
.custom-tabs .badge {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    font-weight: 600;
}

/* Sub-tabs for Anggota */
.sub-tabs {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    display: flex;
    gap: 25px;
}
.sub-tabs a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.sub-tabs a.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
}
.sub-tabs a.active .badge {
    background-color: #e0f2fe !important;
    color: #0d6efd !important;
    border-color: #b6e0fe !important;
}

/* Table Anggota */
.table-anggota th {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    background-color: #fcfcfc;
}
.table-anggota td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}
.student-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.student-action-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.student-action-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}
.role-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Discussion Item */
.discussion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 15px;
}
.discussion-icon {
    width: 45px;
    height: 45px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}
/* =========================================
   5. DASHBOARD HERO BANNER & CARDS
========================================= */

.dashboard-banner {
    background: linear-gradient(135deg, #0a6eb6 0%, #007bff 100%);
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.banner-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    opacity: 0.15;
    width: 350px;
    transform: rotate(-10deg);
}

.stat-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Progress Bar Custom */
.custom-progress {
    height: 35px;
    border-radius: 20px;
    background-color: #e9ecef;
    overflow: visible; /* Penting untuk memunculkan segitiga di luar box */
}

.custom-progress .progress-bar {
    position: relative;
    font-size: 0.85rem;
}

.progress-danger-custom {
    background-color: #c91f52; 
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.progress-danger-custom::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #c91f52;
}

.progress-success-custom {
    background-color: #00b06b; 
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.progress-success-custom::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #00b06b;
}

/* Progress Label with Line */
.progress-label-container {
    position: relative;
    height: 35px;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background-color: #dee2e6;
    z-index: 1;
}

.progress-label {
    position: absolute;
    z-index: 2;
    background: white;
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
}

.progress-label.left {
    left: 0;
    transform: translateY(-50%);
}

.progress-label.right {
    right: 0;
    transform: translateY(-50%);
}

/* Bottom Nav Pills Overlay */
.bottom-nav-pills {
    margin-top: -24px; /* Menarik box ke atas agar menimpa banner biru */
    position: relative;
    z-index: 10;
}

/* ===== TOPIK MODERN (superAdmin/class_detail) ===== */
.topic-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.topic-card-modern {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.topic-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.topic-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.topic-icon-wrap.icon-orange { background: #f59e0b; }
.topic-icon-wrap.icon-blue { background: #2563eb; }
.topic-icon-wrap.icon-teal { background: #0f766e; }

.topic-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: #6b7280;
}

.topic-side {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topic-term {
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
}

.topic-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.create-type-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 40px 1fr 14px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.create-type-card:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.create-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== FORM TAMBAH TOPIK (materi/quiz/tugas) ===== */
.create-form-panel {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 20px;
}

.create-form-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.create-form-subtitle {
    color: #6b7280;
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.form-section-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ===== WEBSITE SETTINGS & NOTIFICATION PAGE ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.settings-card {
    grid-column: span 12;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 18px;
}

.settings-card h6 {
    margin-bottom: 4px;
}

.settings-helper {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.image-preview-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    min-height: 140px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    padding: 12px;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-item.unread {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== COURSE EDIT FORM STYLING ===== */
.course-edit-form {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    max-width: 950px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label-edit {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.form-control-edit {
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control-edit:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.form-control-edit:disabled,
.form-control-edit[readonly] {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Editor toolbar styling updates */
.editor-toolbar {
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 12px;
    background-color: #f9fafb;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.editor-toolbar .form-select {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.editor-toolbar button {
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 0.9rem;
}

.editor-toolbar button:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.editor-content {
    border: 1px solid #d1d5db;
    border-radius: 0 0 8px 8px;
    min-height: 200px;
    padding: 14px;
    background-color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.editor-content:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.upload-area-edit {
    padding: 0;
}

.card-cover-edit {
    width: 100%;
    background-color: #f3f4f6;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="2" fill="%23e5e7eb"/></svg>');
    background-size: 20px 20px;
    background-position: center;
}

.form-actions-edit {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-actions-edit .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-actions-edit .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.form-actions-edit .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ===== MODAL STYLING FOR CREATE TOPIK ===== */
.modal-content {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.125rem;
    color: #1f2937;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.form-control-modal {
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-control-modal:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.form-control-modal::placeholder {
    color: #9ca3af;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-label i {
    margin-right: 6px;
    color: var(--primary-blue);
}

.input-group-text {
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
    border: 1px solid #d1d5db;
}

.input-group .form-control-modal {
    border-right: none;
}

.input-group .form-control-modal:focus {
    border-right: none;
}

.input-group .input-group-text {
    background-color: #f9fafb;
    border-left: none;
}

.modal-footer .btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.modal-footer .btn-light {
    border-color: #d1d5db;
    color: #6b7280;
}

.modal-footer .btn-light:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.modal-footer .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.modal-footer .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

@media (max-width: 991.98px) {
    .course-edit-form {
        padding: 24px;
        border-radius: 10px;
    }

    .form-label-edit {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .form-control-edit {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .editor-content {
        min-height: 160px;
        padding: 12px;
    }

    .form-actions-edit {
        flex-direction: column;
    }

    .form-actions-edit .btn {
        width: 100%;
    }

    .modal-body {
        padding: 20px;
    }

    .form-control-modal {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .course-edit-form {
        padding: 16px;
        border-radius: 8px;
    }

    .form-group-edit {
        gap: 8px;
        margin-bottom: 18px;
    }

    .form-label-edit {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
    }

    .form-control-edit {
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    .editor-toolbar {
        gap: 6px;
        padding: 8px;
    }

    .editor-toolbar button,
    .editor-toolbar .form-select {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .editor-content {
        min-height: 140px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-actions-edit .btn {
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .form-control-modal,
    .input-group-text {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .modal-footer .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 991.98px) {
    .course-edit-form {
        padding: 24px;
        border-radius: 10px;
    }

    .form-label-edit {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .form-control-edit {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .editor-content {
        min-height: 160px;
        padding: 12px;
    }

    .form-actions-edit {
        flex-direction: column;
    }

    .form-actions-edit .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .course-edit-form {
        padding: 16px;
        border-radius: 8px;
    }

    .form-group-edit {
        gap: 8px;
        margin-bottom: 18px;
    }

    .form-label-edit {
        font-size: 0.65rem;
        letter-spacing: 0.02em;
    }

    .form-control-edit {
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    .editor-toolbar {
        gap: 6px;
        padding: 8px;
    }

    .editor-toolbar button,
    .editor-toolbar .form-select {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .editor-content {
        min-height: 140px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-actions-edit .btn {
        padding: 11px 20px;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .settings-card.span-6 {
        grid-column: span 6;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    /* Tampilkan topbar di mobile */
    .topbar {
        display: flex !important;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1100;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        pointer-events: auto;
    }

    .topbar {
        padding: 10px 14px 10px 60px;
        min-height: 72px;
    }

    .topbar .w-100 {
        flex-wrap: wrap;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .topbar .form-select,
    .topbar .input-group {
        width: 100% !important;
        max-width: 100%;
    }

    .topbar .input-group .btn {
        width: auto !important;
    }

    .topbar .input-group.ms-auto {
        margin-left: 0 !important;
    }

    .content-area {
        padding: 14px;
    }

    .dashboard-banner {
        padding: 16px !important;
    }

    .dashboard-banner .stat-box {
        min-width: 100% !important;
    }

    .bottom-nav-pills {
        margin-top: 0;
        justify-content: flex-start !important;
    }

    .bottom-nav-pills > div {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .custom-tabs,
    .sub-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .custom-tabs .nav-link,
    .sub-tabs a {
        flex: 0 0 auto;
    }

    .table-anggota th,
    .table-anggota td {
        padding: 10px;
    }

    .discussion-item,
    .topic-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .topic-card-modern,
    .topic-side {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .topic-actions {
        justify-content: flex-start;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 64px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        z-index: 1300;
        display: flex;
        align-items: center;
        justify-content: space-around;
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
    }

    .mobile-bottom-nav a {
        color: #6b7280;
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 64px;
    }

    .mobile-bottom-nav a i {
        font-size: 1rem;
    }

    .mobile-bottom-nav a.active {
        color: #0d6efd;
    }

    .main-content {
        padding-bottom: 76px;
    }

    .sidebar-footer {
        padding-bottom: 92px;
    }
}

@media (max-width: 575.98px) {
    .sidebar-toggle-btn {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
    }

    .user-profile,
    .sidebar-actions,
    .sidebar-footer,
    .sidebar-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-banner h2 {
        font-size: 1.35rem;
    }

    .topbar {
        padding-left: 56px;
    }

    .progress-label {
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .content-area .row {
        --bs-gutter-x: 0.8rem;
        --bs-gutter-y: 0.8rem;
    }
}

/* =========================================
   RESPONSIVE DESIGN FOR LOGIN PAGE
========================================= */

/* Tablet & Medium Screens (768px and below) */
@media (max-width: 768px) {
    .login-page {
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    .login-wrapper {
        width: 100%;
        max-width: 500px;
        margin: auto;
        border-radius: 10px;
    }

    .login-box {
        flex-direction: column;
        height: auto;
    }

    .login-form-container {
        padding: 30px 25px;
    }

    .login-header h2 {
        font-size: 1.1rem;
    }

    .login-header p {
        font-size: 0.8rem;
    }

    .login-image-container {
        display: none;
    }
}

/* Mobile Phones (576px and below) */
@media (max-width: 576px) {
    .login-page {
        height: auto;
        min-height: 100vh;
        padding: 15px;
        align-items: flex-start;
        padding-top: 50px;
    }

    .login-wrapper {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .login-box {
        flex-direction: column;
        height: auto;
    }

    .login-form-container {
        padding: 25px 20px;
    }

    .login-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .login-header svg {
        width: 28px;
        height: 28px;
    }

    .login-header h2 {
        font-size: 1rem;
        margin: 12px 0 5px;
        line-height: 1.3;
    }

    .login-header p {
        font-size: 0.75rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .input-group input {
        padding: 11px 12px 11px 38px;
        font-size: 1rem;
        border-radius: 6px;
    }

    .input-group i {
        left: 12px;
        font-size: 0.9rem;
    }

    .input-group .right-icon {
        right: 12px;
    }

    .forgot-password {
        margin-bottom: 16px;
        font-size: 0.8rem;
    }

    .btn-login {
        padding: 13px;
        font-size: 0.95rem;
        margin-bottom: 12px;
        border-radius: 6px;
        font-weight: 600;
    }

    .btn-login:active {
        transform: scale(0.98);
    }

    .btn-outline-login {
        padding: 12px;
        font-size: 0.85rem;
        margin-bottom: 9px;
        border-radius: 6px;
    }

    .btn-outline-login i {
        font-size: 1rem;
    }

    form {
        width: 100%;
    }

    .login-image-container {
        display: none;
    }
}

/* =========================================
   6. SISWA-SPECIFIC COMPONENTS
   Extend dari style.css (guru/admin)
========================================= */

/* ===== SIDEBAR SISWA - Nav Menu ===== */
/* Tambahan menu (Tugas, Nilai, Jadwal) sudah menggunakan class nav-link yang sama */

/* ===== KELAS CARD — Progress Bar ===== */
.class-card .progress {
    height: 6px;
    border-radius: 10px;
    background-color: #e9ecef;
}

/* ===== BADGE MATA PELAJARAN ===== */
.badge-mapel {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-mapel-blue   { background-color: #ede9fe; color: #4f46e5; }
.badge-mapel-green  { background-color: #dcfce7; color: #16a34a; }
.badge-mapel-orange { background-color: #ffedd5; color: #ea580c; }
.badge-mapel-red    { background-color: #fee2e2; color: #dc2626; }
.badge-mapel-cyan   { background-color: #e0f2fe; color: #0891b2; }

/* ===== STATUS BADGE (Tugas) ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background-color: #fef3c7; color: #d97706; }
.status-done    { background-color: #dcfce7; color: #16a34a; }
.status-late    { background-color: #fee2e2; color: #dc2626; }
.status-graded  { background-color: #e0f2fe; color: #0891b2; }

/* ===== SUMMARY BADGE CARD (Halaman Tugas) ===== */
.summary-badge-card {
    background: white;
    border-radius: 10px;
    padding: 12px 20px;
    min-width: 130px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

/* ===== KELAS ITEM MINI (Dashboard Widget) ===== */
.kelas-item-mini {
    transition: background 0.15s;
}

.kelas-item-mini:hover {
    background-color: #f8f9fa;
}

.kelas-icon-mini {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== NILAI — Lingkaran Nilai ===== */
.nilai-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== GRADE BADGE ===== */
.grade-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 0.85rem;
}

.grade-a { background-color: #dcfce7; color: #16a34a; }
.grade-b { background-color: #fef9c3; color: #854d0e; }
.grade-c { background-color: #fee2e2; color: #dc2626; }

/* ===== JADWAL — Cell ===== */
.jadwal-cell {
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* ===== KELAS DETAIL SISWA - DISKUSI & ANGGOTA ===== */

/* Discussion Thread */
.discussion-thread {
    transition: all 0.2s ease;
}

.discussion-thread:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.discussion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ede9fe;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 1.2rem;
}

/* Student Avatar */
.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

/* Materi/Quiz/Tugas Item */
.materi-item,
.quiz-item,
.tugas-item {
    transition: all 0.2s ease;
}

.materi-item:hover,
.quiz-item:hover,
.tugas-item:hover {
    background-color: #f9fafb;
}

.materi-list,
.quiz-list,
.tugas-list {
    max-height: 500px;
    overflow-y: auto;
}

/* Modal Styling */
.modal-content {
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #f9fafb;
}

/* Discussion Detail */
.discussion-main {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.reply-item {
    transition: all 0.2s ease;
}

.reply-item:hover {
    background-color: #f9fafb;
}

.reply-form textarea {
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.reply-form textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Navigation tabs dalam modal */
.nav-tabs .nav-link {
    border-bottom: 2px solid transparent;
    color: #6b7280;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Topic Item */
.topic-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
    transition: all 0.2s ease;
    background-color: white;
}

.topic-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== SISWA-SPECIFIC MEDIA QUERIES ===== */

@media (max-width: 991.98px) {
    .summary-badge-card {
        min-width: calc(50% - 0.5rem);
        flex: 1 1 calc(50% - 0.5rem);
    }

    .kelas-item-mini {
        padding: 10px !important;
    }
}

@media (max-width: 575.98px) {
    .summary-badge-card {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .badge-mapel,
    .status-badge {
        font-size: 0.7rem;
    }

    .nilai-circle {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .grade-badge {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.78rem;
    }

    .jadwal-cell {
        padding: 8px 6px;
        font-size: 0.72rem;
    }
}

/* ===== RESPONSIVE NAV TABS & BUTTON ALIGNMENT ===== */
@media (max-width: 768px) {
    .nav-tabs {
        border-bottom: none;
        margin-bottom: 0 !important;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-wrap: wrap;
        row-gap: 15px;
    }

    .nav-tabs {
        width: 100%;
        order: -1;
    }

    .nav-tabs .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .nav-tabs .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 15px !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .nav-link {
        flex: 0 0 auto;
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }

    .nav-tabs .badge {
        font-size: 0.6rem;
        padding: 2px 5px;
        margin-left: 5px;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* ===== RESPONSIVE TUGAS SISWA PAGE ===== */

/* Summary Badges - Tablet */
@media (max-width: 768px) {
    .d-flex.gap-3.mb-4.flex-wrap {
        gap: 12px !important;
    }

    .summary-badge-card {
        min-width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .summary-badge-card .fs-4 {
        font-size: 1.5rem !important;
    }

    /* Sub-tabs on tablet */
    .sub-tabs {
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .sub-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    /* Table on tablet - still showing as table but more compact */
    .table-responsive {
        border-radius: 8px;
    }

    .table-anggota td,
    .table-anggota th {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .table-anggota th {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .status-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .badge-mapel {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .btn-sm.rounded-pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Summary Badges - Mobile */
@media (max-width: 576px) {
    .d-flex.gap-3.mb-4.flex-wrap {
        gap: 10px !important;
    }

    .summary-badge-card {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
        padding: 12px 14px;
        border-radius: 8px;
        text-align: center;
    }

    .summary-badge-card .fw-bold {
        font-size: 1.35rem;
        margin-bottom: 4px;
    }

    .summary-badge-card .small {
        font-size: 0.7rem;
    }

    /* Sub-tabs on mobile */
    .sub-tabs {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 1rem;
        padding-bottom: 0;
    }

    .sub-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding-bottom: 10px;
        font-size: 0.85rem;
        padding: 0 8px 10px 0;
    }

    .sub-tabs .badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        margin-left: 4px;
    }

    /* Table on mobile - Keep as table but make it scrollable */
    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .table-anggota {
        min-width: 600px; /* Prevent table from shrinking too much */
        font-size: 0.75rem;
    }

    .table-anggota td,
    .table-anggota th {
        padding: 8px 6px;
        white-space: nowrap;
    }

    .table-anggota th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: white;
        font-size: 0.7rem;
    }

    .status-badge {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .badge-mapel {
        padding: 3px 6px;
        font-size: 0.65rem;
    }

    .btn-sm.rounded-pill {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    /* Make table content more compact on mobile */
    .table-anggota .fw-medium.text-dark {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .table-anggota .text-muted.small {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

/* ===== ERROR PAGES ===== */

.error-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.error-page .card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.error-page .error-header {
    align-items: flex-start;
    justify-content: space-between;
}

.error-page .error-code {
    font-size: 5rem;
    font-weight: 800;
    color: #0d6efd;
}

.error-page .error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.error-page .error-text {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.75;
}

.error-page .error-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-size: 1.5rem;
}

.error-page .btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.error-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.error-page .alert {
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.error-page .alert-info {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.error-page .alert-warning {
    background-color: #fff4e5;
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.16);
}

/* Responsive Error Pages */
@media (max-width: 768px) {
    .error-page .error-code {
        font-size: 4.5rem;
    }

    .error-page .error-title {
        font-size: 1.75rem;
    }

    .error-page .card-body {
        padding: 2rem 1.5rem;
    }

    .error-page .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .error-page .error-code {
        font-size: 3.5rem;
    }

    .error-page .error-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .error-page .error-title {
        font-size: 1.5rem;
    }

    .error-page .error-text {
        font-size: 0.95rem;
    }

    .error-page .card-body {
        padding: 1.5rem 1rem;
    }
}

/* =========================================
   6. INDEX & DETAIL MATERI PUBLIC STYLES
========================================= */

/* INDEX.HTML - Course Listing Page */
:root {
    --primary-blue: #0d6efd;
    --dark-text: #1f2937;
    --muted-text: #4b5563;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --dark-bg: #111827;
}

.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    transition: all 0.3s ease;
    z-index: 1200;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .logo-text {
    border-start: 2px solid var(--border-color);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* .nav-link {
    font-weight: 600;
    color: var(--muted-text);
    padding: 8px 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), #1e6fb8);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} */

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link:hover::after {
    width: calc(100% - 32px);
}

.nav-link.active {
    color: var(--primary-blue) !important;
}

.nav-link.active::after {
    width: calc(100% - 32px);
}

/* Improved Navbar for Public Pages */
.navbar-custom.navbar-public {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-public .navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease;
}

.navbar-public .navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-public .logo-text {
    border-left: 2px solid var(--primary-blue);
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    justify-content: center;
}

.navbar-public .logo-text > span:first-child {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.3px;
}

.navbar-public .logo-text > span:last-child {
    font-size: 0.7rem;
    font-weight: 500;
    color: #9ca3af;
    margin-top: 2px;
}

/* Navigation Items Enhancement */
.navbar-public .navbar-nav {
    gap: 4px;
    align-items: center;
}

.navbar-public .nav-item .nav-link {
    font-weight: 600;
    color: #6b7280;
    padding: 10px 18px !important;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-public .nav-item .nav-link::after {
    display: none;
}

.navbar-public .nav-item .nav-link:hover {
    color: var(--primary-blue);
    background-color: rgba(13, 110, 253, 0.08);
}

.navbar-public .nav-item .nav-link.active {
    color: var(--primary-blue);
    background-color: rgba(13, 110, 253, 0.12);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.2);
}

/* Button in Navbar */
.navbar-public .d-flex .btn {
    padding: 10px 24px !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border-width: 1.5px;
}

.navbar-public .d-flex .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

/* Hero Section - INDEX.HTML */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #0d6efd 100%);
    color: #ffffff;
    margin-top: 72px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #bfdbfe;
    max-width: 550px;
}

/* Toolbar Section - Search & Filter */
.toolbar-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.search-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-wrapper .form-control {
    padding-left: 45px;
    padding-right: 15px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-wrapper .form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    pointer-events: none;
}

.filter-select {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    padding-left: 15px;
    padding-right: 40px;
    background-color: #ffffff;
}

.view-toggle-btn {
    height: 46px;
    width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--muted-text);
    transition: all 0.2s ease;
}

.view-toggle-btn.active, .view-toggle-btn:hover {
    background-color: #eff6ff;
    color: var(--primary-blue);
    border-color: rgba(13, 110, 253, 0.3);
}

/* Course Cards & Popover */
.course-item-wrapper {
    position: relative;
    transition: z-index 0.2s step-out;
    z-index: 1;
}

.course-item-wrapper:hover {
    z-index: 50;
    transition: z-index 0.2s step-into;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.02);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
}

.course-img-container {
    position: relative;
    height: 170px;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.course-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-new { background-color: #10b981; color: #ffffff; }
.badge-hot { background-color: #ef4444; color: #ffffff; }

.card-body-custom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.4;
    margin-bottom: 0;
}

.card-footer-custom {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: #ffffff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Popover Box */
.course-popover {
    position: absolute;
    top: -12px;
    left: -12px;
    width: calc(100% + 24px);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.course-item-wrapper:hover .course-popover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.popover-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eff6ff;
}

.popover-specifications {
    display: flex;
    justify-content: space-between;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.spec-item {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-text);
    flex: 1;
}

.spec-item i {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 4px;
}
.btn-waiting-course {
    background-color: #d97706;
    color: #ffffff;
    width: 100%;
    font-weight: 600;
    padding: 11px;
    border-radius: 8px;
    border: none;
    transition: background-color 0.2s;
}
.btn-preview-course {
    background-color: var(--primary-blue);
    color: #ffffff;
    width: 100%;
    font-weight: 600;
    padding: 11px;
    border-radius: 8px;
    border: none;
    transition: background-color 0.2s;
}

.btn-preview-course:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

@media (max-width: 991px) {
    .course-popover {
        display: none !important;
    }
}
/* ===== history ===== */
.history-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d6efd 100%);
    color: #ffffff;
    padding: 40px 0;
    margin-top: 72px;
}

.history-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.history-content {
    padding: 40px 0;
}

.filter-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-top: 4px solid #0d6efd;
}

.stat-card.success {
    border-top-color: #10b981;
}

.stat-card.warning {
    border-top-color: #f59e0b;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.table-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.table-history {
    margin-bottom: 0;
}

.table-history thead {
    background-color: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.table-history th {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    text-align: left;
}

.table-history td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 0.9rem;
}

.table-history tbody tr:hover {
    background-color: #f9fafb;
}

.table-history tbody tr:last-child td {
    border-bottom: none;
}

.badge-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-completed {
    background-color: #dcfce7;
    color: #166534;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-late {
    background-color: #fee2e2;
    color: #991b1b;
}

.score-cell {
    font-weight: 600;
    color: #0d6efd;
}

.score-cell.high {
    color: #10b981;
}

.score-cell.low {
    color: #ef4444;
}
/* Quiz Header Section */
.quiz-header {
    background-color: #063375;
    color: #ffffff;
    padding: 50px 0 60px 0;
    margin-top: 72px;
    
    /* UTAMA: Memaksa background biru memenuhi batas paling bawah layar */
    min-height: calc(100vh - 72px); 
}

.breadcrumb-custom {
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.breadcrumb-custom a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-custom a:hover {
    color: #ffffff;
}

.quiz-header-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.quiz-header-desc {
    font-size: 1.1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}
/* Item Tombol Opsi Standar */
.quiz-option-item {
    border-color: #e5e7eb !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Efek Sorot saat Kursor Mendekat */
.quiz-option-item:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

/* State Aktif/Terpilih (Selected) Sesuai Gambar 2 */
.quiz-option-item.selected {
    background-color: #e2e8f0 !important; /* Warna latar abu-abu/lavender lembut */
    border: 2px solid #1e293b !important; /* Border gelap tebal mengunci */
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

/* Pembatas Garis Transparan di Atas Batas Navigasi */
.border-white-10 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
/* Konfigurasi Grid 5 Kolom Sejajar */
.quiz-number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-height: 280px;
    overflow-y: auto; /* Otomatis memunculkan scrollbar jika baris melebihi batas */
    padding-right: 2px;
}

/* Item Kotak Nomor */
.num-item {
    aspect-ratio: 1; /* Memastikan bentuk kotak sempurna (1:1) */
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, all 0.2s;
    border: 1px solid #e5e7eb;
}

.num-item:hover {
    transform: scale(1.08);
}

/* Variasi Status Warna Kotak Soal */
.num-item.blank {
    background-color: #ffffff;
    color: #4b5563;
}

.num-item.done {
    background-color: #198754 !important; /* Hijau Sukses */
    color: #ffffff !important;
    border-color: #198754 !important;
}

.num-item.current {
    background-color: #ffc107 !important; /* Kuning Peringatan / Aktif */
    color: #000000 !important;
    border-color: #ffc107 !important;
}

/* Bulatan Keterangan Indikator */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
/* DETAIL MATERI PUBLIC STYLES */
/* Course Header Section */
.course-header {
    background-color: #063375;
    color: #ffffff;
    padding: 50px 0 60px 0;
    margin-top: 72px;
}

.breadcrumb-custom {
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.breadcrumb-custom a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-custom a:hover {
    color: #ffffff;
}

.course-header-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.course-header-desc {
    font-size: 1.1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
}

.badge-bestseller {
    background-color: #f59e0b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.course-meta {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #d1d5db;
}

.rating-stars {
    color: #f59e0b;
}

/* Floating Sidebar Card */
/* Container Kolom Sidebar */
.course-sidebar-wrapper {
    position: relative;
    z-index: 15; /* Naikkan tingkatan agar berada di atas element header banner */
}

/* Trik Overlap: Hanya aktif di layar komputer/desktop (min-width: 992px) */
@media (min-width: 992px) {
    .course-sidebar-wrapper {
        /* Tarik box sidebar ke atas langsung sejak awal halaman dimuat */
        margin-top: -400px; 
    }
}

/* Card Utama Sidebar */
.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    
    /* Tetap pertahankan sticky agar ketika di-scroll ke bawah, card mengunci di atas screen */
    position: sticky;
    top: 90px; /* Jarak pas dari topbar atas saat di-scroll */
    z-index: 10;
}

.sidebar-preview-img {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #e5e7eb;
}

.sidebar-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-bg);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.sidebar-content {
    padding: 24px;
}
 
.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.btn-enroll {
    background-color: var(--primary-blue);
    color: #ffffff;
    font-weight: 700;
    padding: 14px;
    border-radius: 8px;
    width: 100%;
    border: none;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.btn-enroll:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

.course-includes {
    margin-top: 25px;
}

.course-includes h6 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 15px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 10px;
}

.include-item i {
    width: 20px;
    text-align: center;
    color: var(--dark-text);
}

/* Main Content Sections */
.content-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-text);
}

/* Learning Objectives */
.learning-objectives {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.objective-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.objective-item i {
    color: #10b981;
    margin-top: 3px;
}

/* Accordion Customization */
.accordion-button {
    font-weight: 600;
    color: var(--dark-text);
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background-color: #eff6ff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-item {
    margin-bottom: 0;
}

.accordion-body {
    padding: 1rem 1.5rem;
}

.lecture-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--muted-text);
}

.lecture-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lecture-item a {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.lecture-item a:hover .lecture-title {
    color: var(--primary-blue);
}

.lecture-title {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

/* Topic Detail Items - for accordion content */
.topic-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.topic-detail-item:last-child {
    margin-bottom: 0;
}

.topic-detail-item:hover {
    background-color: #eff6ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.item-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.item-title {
    flex: 1;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.item-title:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.item-type {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Instructor Profile */
.instructor-profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eff6ff;
}

.instructor-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin: 10px 0 15px 0;
}

.instructor-stats i {
    margin-right: 5px;
    color: #f59e0b;
}

/* Responsiveness */
/* @media (min-width: 992px) {
    .course-sidebar-wrapper {
        margin-top: -200px; 
    }
}

@media (max-width: 991px) {
    .course-sidebar-wrapper {
        margin-top: 30px;
    }
    .objective-list {
        grid-template-columns: 1fr;
    }
    .course-header-title {
        font-size: 1.8rem;
    }
} */
/* Efek animasi meluncur ke bawah untuk dropdown Bootstrap */
.dropdown-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect untuk item log out agar lebih interaktif */
.dropdown-item.text-danger:hover {
    background-color: #fee2e2; /* Latar belakang merah sangat muda saat di-hover */
    color: #dc2626 !important;
    border-radius: 8px;
    margin: 0 8px;
    width: calc(100% - 16px);
}
/* =================================================================== */
/* =================  CSS UNTUK NAVIGASI MOBILE BAWAH  =============== */
/* =================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 15px; /* Jarak dari bawah layar */
  left: 50%;
  transform: translateX(-50%);
  width: 90%; /* Lebar navigasi */
  max-width: 450px; /* Lebar maksimal */
  background-color: #ffffff;
  border-radius: 10px; /* Membuat sudut lebih melengkung */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 5px 0;
  display: none; /* Defaultnya disembunyikan di desktop */
  border: 1px solid #eee;
}

.mobile-bottom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around; /* Menyebar item secara merata */
}

.mobile-bottom-nav li {
  text-align: center;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column; /* Icon di atas, teks di bawah */
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #888; /* Warna ikon dan teks non-aktif */
  font-size: 12px;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-bottom-nav a i {
  font-size: 22px; /* Ukuran ikon */
  margin-bottom: 3px;
}

/* Warna untuk item yang aktif (sesuaikan dengan --accent-color Anda) */
.mobile-bottom-nav a.active {
  color: #438afd; 
  /* #f78452 */
}
/* Mengunci posisi dropup tepat di tengah-tengah atas ikon profil */
.mobile-bottom-nav .dropdown-menu {
    display: none !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    /* Mulai dari tengah agak ke bawah sedikit untuk efek animasi */
    transform: translateX(-50%) translateY(10px) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

/* Tampilkan tepat di tengah tanpa melenceng saat diklik */
.mobile-bottom-nav .dropdown-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) !important;
}
/* Media Query untuk menampilkan navigasi HANYA di layar mobile */
@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: block; /* Tampilkan navigasi di mobile */
  }
  /* Beri ruang di bawah body agar konten tidak tertutup nav mobile */
  body {
    padding-bottom: 85px; 
  }
  .scroll-top {
    bottom: 100px; /* Menaikkan posisi dari bawah agar di atas navigasi */
  }
}