/* public/assets/css/style.css */
:root {
    --primary-teal: #266969;
    --hover-teal: #1a4949; 
    --bg-light: #f4f6f9;
}

body { background-color: var(--bg-light); }

.text-teal { color: var(--primary-teal) !important; }
.bg-teal { background-color: var(--primary-teal) !important; }
.bg-teal-dark { background-color: var(--hover-teal) !important; }

/* Komponen Tombol Umum */
.btn-teal { background-color: var(--primary-teal); border-color: var(--primary-teal); color: white; transition: 0.3s; }
.btn-teal:hover { background-color: var(--hover-teal); border-color: var(--hover-teal); color: white; }

/* Card Login */
.card-login { width: 100%; max-width: 400px; border: none; border-top: 5px solid var(--primary-teal); border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); background-color: white; }
.input-group-text { background-color: transparent; border-right: none; color: var(--primary-teal); }
.form-control { border-left: none; }
.form-control:focus { box-shadow: 0 0 0 0.2rem rgba(38, 105, 105, 0.25); border-color: var(--primary-teal); }

/* =========================================
   STYLING NAVBAR & DROPDOWN
========================================= */
.navbar .nav-link { font-weight: 500; transition: color 0.3s ease; }
.navbar .nav-link:hover { color: #ffffff !important; opacity: 0.8; }

/* Efek Sorot pada Dropdown */
.dropdown-menu-dark .dropdown-item { transition: background-color 0.2s ease; }
.dropdown-menu-dark .dropdown-item:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Aturan Khusus Modal Box (Offcanvas) di Mobile */
@media (max-width: 991.98px) {
    .offcanvas.bg-teal {
        width: 300px; /* Lebar modal box saat slide dari kiri */
    }
}

/* =========================================
   UTILITAS & LOGIN
========================================= */
.text-teal { color: #266969 !important; }
.bg-teal { background-color: #266969 !important; }

.btn-teal { 
    background-color: #266969; 
    border-color: #266969; 
    color: white; 
}
.btn-teal:hover { 
    background-color: #1a4949; 
    color: white; 
}

.card-login {
    width: 100%;
    max-width: 400px;
    border: none;
    border-top: 5px solid #266969;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background-color: white;
}
.input-group-text { background-color: transparent; border-right: none; color: #266969; }
.form-control { border-left: none; }
.form-control:focus { box-shadow: 0 0 0 0.2rem rgba(38, 105, 105, 0.25); border-color: #266969; }

/* =========================================
   EFEK SLIDER CARD KHUSUS MOBILE
========================================= */
@media (max-width: 767.98px) {
    .mobile-slider {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling di iOS */
        scrollbar-width: none; /* Sembunyikan scrollbar di Firefox */
    }
    .mobile-slider::-webkit-scrollbar {
        display: none; /* Sembunyikan scrollbar di Chrome/Safari */
    }
    .mobile-slider > .col-slider {
        flex: 0 0 88%; /* Lebar card 88% agar card berikutnya ngintip sedikit */
        scroll-snap-align: center;
        margin-right: 15px; /* Jarak antar card */
    }
}

/* =========================================
   SISTEM SIDEBAR & MAIN CONTENT
========================================= */
/* Mendorong konten ke kanan jika layar besar (Desktop) */
@media (min-width: 992px) {
    .main-content-wrapper {
        margin-left: 280px; 
    }
    #sidebarMenu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1030;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Styling Menu (Sidebar Link) */
.sidebar-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover, .sidebar-link[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.sidebar-link.active {
    background-color: #ffffff;
    color: var(--primary-teal);
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Lebar tetap untuk ikon menu agar teks rata sejajar */
.w-20px {
    width: 24px;
}

/* Animasi Putar Caret (Panah Akordeon) */
.caret-icon {
    transition: transform 0.3s ease;
}
.sidebar-link[aria-expanded="true"] .caret-icon {
    transform: rotate(180deg);
}