/*
Theme Name: SIMAPDU Theme
Theme URI: https://simapdu.madrasahh.online
Author: SIMAPDU Team
Author URI: https://simapdu.madrasahh.online
Description: Custom theme untuk SIMAPDU - Sistem Akademik Madrasah
Version: 1.0.0
License: GPL v2 or later
Text Domain: simapdu
Tags: education, school, academic, responsive, custom-menu, featured-images
*/

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* ============================================
   FULL WIDTH CONTAINER (TAMBAHAN BARU)
   ============================================ */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #1a73e8;
    color: white;
    padding: 15px 30px; /* Ubah padding horizontal biar mepet ujung */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%; /* Hapus batasan lebar */
    padding: 0;
}

.site-logo a {
    color: white;
    text-decoration: none;
}

.site-logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-logo span {
    font-size: 13px;
    opacity: 0.8;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav ul li a:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 30px;
    min-height: 70vh;
    width: 100%;
}

/* ============================================
   SIMAPDU LOGIN
   ============================================ */
.simapdu-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.simapdu-login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}

.simapdu-login-box h1 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 5px;
}

.simapdu-login-box p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* ============================================
   SIMAPDU DASHBOARD
   ============================================ */
.simapdu-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
}

.simapdu-dashboard-header {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.simapdu-dashboard-header h2 {
    margin: 0;
    font-size: 20px;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-info {
    background: rgba(255,255,255,0.2);
    color: white;
}

.simapdu-sidebar {
    background: #f8f9fa;
    padding: 20px;
    min-height: 500px;
    border-right: 1px solid #e9ecef;
}

.simapdu-sidebar .nav {
    list-style: none;
    padding: 0;
}

.simapdu-sidebar .nav-item {
    margin-bottom: 2px;
}

.simapdu-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.simapdu-sidebar .nav-link:hover {
    background: #e9ecef;
}

.simapdu-sidebar .nav-link.active {
    background: #1a73e8;
    color: white;
}

.simapdu-sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

.simapdu-content {
    padding: 20px;
    min-height: 500px;
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a2332;
    color: #8b9ab0;
    padding: 20px 30px;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .simapdu-dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .main-content {
        padding: 15px;
    }
}

/* ============================================
   PERBAIKAN FULL WIDTH DASHBOARD (FINAL)
   ============================================ */

/* Hancurkan batasan lebar container-fluid */
.container-fluid.simapdu-dashboard-wrapper,
.simapdu-dashboard-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hilangkan rounded corner dan bayangan yang menghalangi */
.simapdu-dashboard {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* Sidebar memanjang sampai ujung kiri layar */
.simapdu-sidebar {
    padding-left: 25px !important;
    min-height: calc(100vh - 150px); /* Agar menu sidebarnya panjang sampai bawah */
}

/* Konten memanjang sampai ujung kanan layar */
.simapdu-content {
    padding-right: 25px !important;
}

/* Sidebar Navigation Style */
.simapdu-sidebar .nav {
    padding: 15px;
}
.simapdu-sidebar .nav-link {
    color: #495057;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.2s;
}
.simapdu-sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}
.simapdu-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

/* Parent Menu Group Style */
.simapdu-sidebar .nav-item > .fw-bold {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    pointer-events: none; /* Tidak bisa diklik */
    background: transparent !important;
    border-bottom: 1px solid #dee2e6;
    margin-top: 15px;
    margin-bottom: 10px;
}
.simapdu-sidebar .nav-item > .fw-bold i {
    display: none; /* Sembunyikan icon di Parent */
}

/* Submenu Style */
.simapdu-sidebar .nav.flex-column.ms-3 .nav-link {
    font-size: 0.9rem;
    padding: 8px 15px 8px 35px;
}