/* Menggunakan Font Poppins untuk seluruh aplikasi */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
}
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1rem 1.25rem;
}
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: scale(1.05);
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    background-color: #f8f9fa;
}
.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.list-group-item-action:hover {
    background-color: #e9f5ff;
    color: #0d6efd;
    transform: translateX(5px);
}
.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}
.sidebar-header {
    padding: 1rem 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}
.sidebar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    white-space: nowrap;
}
.sidebar-logo {
    height: 35px;
    width: 35px;
    margin-right: 10px;
    transition: margin 0.3s ease-in-out;
}
.sidebar-logo-text {
    font-size: 1rem;
    font-weight: 600;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    padding-top: 1rem;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}
.sidebar-menu li a:hover {
    background-color: #e9f5ff;
    color: #0d6efd;
}
.sidebar-menu li a.active {
    background-color: #e9f5ff;
    color: #0d6efd;
    font-weight: 600;
}
.sidebar-menu li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.sidebar-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 1rem 1.25rem;
}
.main-content {
    flex-grow: 1;
    padding: 0; /* Dihapus paddingnya agar navbar bisa full-width */
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem; /* Padding diperkecil */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-card .icon-circle {
    width: 45px; /* Lebar ikon diperkecil */
    height: 45px; /* Tinggi ikon diperkecil */
    margin-right: 1rem;
    font-size: 1.2rem; /* Ukuran ikon diperkecil */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card .icon-circle.bg-primary-light { background-color: #e9f5ff; color: #0d6efd; }
.stat-card .icon-circle.bg-success-light { background-color: #e6f9f0; color: #198754; }
.stat-card .icon-circle.bg-warning-light { background-color: #fff8e6; color: #ffc107; }
.stat-card .info h5 {
    font-size: 1.5rem; /* Ukuran angka diperkecil */
    font-weight: 600;
    margin: 0;
}
.stat-card .info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem; /* Ukuran teks diperkecil */
}
.action-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: block;
}
.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: #0d6efd;
}
.action-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.action-card h5 {
    font-weight: 600;
    font-size: 1rem;
}
.navbar-logo {
    height: 40px !important;
    width: auto;
    vertical-align: middle;
}
.dashboard-wrapper.sidebar-collapsed .sidebar {
    width: 90px;
}
.dashboard-wrapper.sidebar-collapsed .sidebar .sidebar-logo-text,
.dashboard-wrapper.sidebar-collapsed .sidebar .sidebar-menu span {
    display: none;
}
.dashboard-wrapper.sidebar-collapsed .sidebar .sidebar-header {
    justify-content: center;
}
.dashboard-wrapper.sidebar-collapsed .sidebar-logo {
    margin-right: 0;
}
.dashboard-wrapper.sidebar-collapsed .sidebar .sidebar-menu li a {
    justify-content: center;
}
.dashboard-wrapper.sidebar-collapsed .sidebar .sidebar-menu li a i {
    margin-right: 0;
    font-size: 1.3rem;
}
.dashboard-wrapper.sidebar-collapsed .sidebar .sidebar-divider {
    margin: 1rem 0.75rem;
}

/* Wrapper untuk membatasi lebar konten utama */
.main-content-inner {
    max-width: 1400px; /* Anda bisa sesuaikan angka ini jika ingin lebih lebar atau sempit */
    margin-left: auto;
    margin-right: auto;
}