/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Warna utama & variabel */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --background: #F5F7F8;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #777777;
    --border: #E0E0E0;
    --shadow: 0 5px 15px rgba(0,0,0,.08);
    --transition: .3s ease;
}

/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Biar layar ga bocor ke samping di HP */
html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    transition: var(--transition);
}

.card {
    border: none;
    border-radius: 16px;
    transition: var(--transition);
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.page-title {
    font-weight: 600;
}

/* Helper pembungkus tabel biar bisa di-scroll di HP */
.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-nowrap th,
.table-nowrap td {
    white-space: nowrap !important;
}

/* Kustom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* Penyesuaian tampilan mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .card {
        border-radius: 12px;
    }

    .modal-dialog {
        margin: 10px;
    }
}