/* Global Styles for Poppins Font */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
    background-color: #f8f9fa; /* Warna latar belakang umum */
}

/* --- Public Page Specific Styles --- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: #0d6efd !important;
}
.hero-section {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.hero-section h1 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.btn-hero {
    background-color: white;
    color: #2575fc;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-hero:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.section-title {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
}
.feature-icon {
    font-size: 3rem;
    color: #6a11cb;
    margin-bottom: 15px;
}
.partner-logo {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.footer {
    background-color: #212529;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}
.footer a {
    color: #adb5bd;
    text-decoration: none;
}
.footer a:hover {
    color: white;
}
.footer h5 {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Admin Dashboard Specific Styles --- */
#wrapper {
    display: flex;
    transition: all 0.3s ease;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px; /* Lebar sidebar */
    margin-left: 0; /* Sidebar selalu terlihat, bahkan di mobile */
    transition: margin .3s ease-out;
    background: linear-gradient(to bottom, #2d3436 0%, #000000 100%); /* Gradien gelap */
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    position: relative; /* Buat sidebar bagian dari flow dokumen, tidak fixed di mobile */
    z-index: 1030;
}

#sidebar-wrapper.toggled {
    margin-left: -250px !important;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.25rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    background-color: #0d6efd;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-align: center;
}

#sidebar-wrapper .list-group-item {
    padding: 1rem 1.25rem;
    color: rgba(255,255,255,.8);
    border: none;
    background-color: transparent;
    transition: all 0.2s ease;
}

#sidebar-wrapper .list-group-item.active {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: white !important;
    font-weight: 500;
    border-left: 5px solid #0d6efd;
    border-radius: 0;
}

#sidebar-wrapper .list-group-item:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

/* Page Content Wrapper */
#page-content-wrapper {
    flex-grow: 1;
    min-width: calc(100vw - 250px); /* Konten selalu selebar viewport - sidebar_width */
    width: auto; /* Biarkan width menyesuaikan */
    padding-left: 0;
    transition: all 0.3s ease;
}

#wrapper.toggled #page-content-wrapper {
    min-width: 100vw;
    margin-left: 0;
}

/* Navbar Admin (Top Bar) */
.admin-navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.8rem 1rem;
    z-index: 1000;
}
.admin-navbar .navbar-text {
    font-weight: 500;
    color: #555;
}

/* Content Area within dashboard */
.admin-content {
    padding: 20px;
    background-color: #f8f9fa;
}

/* Card Styling (consistent with public) */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: none;
}
.card-header {
    background-color: #0d6efd;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}

/* Table Styling (consistent with public) */
.table {
    font-size: 0.9rem;
    color: #343a40;
}
.table thead th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}
.table-hover tbody tr:hover {
    background-color: #f2f2f2;
}

/* Form Styling (consistent with public) */
.form-control, .btn {
    border-radius: 8px;
}
.form-label {
    font-weight: 500;
    color: #495057;
}

/* Alert Styling (consistent with public) */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
}

/* Stats Cards (Dashboard) */
.stats-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.stats-card:hover {
    transform: translateY(-5px);
}
.stats-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stats-card .icon-large {
    font-size: 3.5rem;
    opacity: 0.3;
}
.stats-card .value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}
.stats-card .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Login Page Specific Styling (tetap ada di admin/index.php inline style) */
/* Pastikan tidak ada konflik di sini */

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .admin-navbar .navbar-toggler {
        display: block;
    }
    .admin-navbar .navbar-brand {
        font-size: 1.2rem;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .partner-logo {
        max-height: 60px;
    }
}