
.text-justify {
    text-align: justify; /* Ratakan teks kanan-kiri */
}
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Sticky footer styling */
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
#layoutSidenav {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive styling */
@media screen and (max-width: 767px) {
    
    .card-body {
        overflow-x: auto;
    }
    .modal-dialog {
        margin: 0.5rem auto !important;
        width: 85% !important;        /* Modal lebih kecil */
        max-width: 380px !important;   /* Biar pas di HP */
    }
    /* Pastikan body modal juga responsif */
    .modal-content {
        width: 100% !important;
    }
    .navbar-brand {
        font-size: 14px; /* kecil di HP */
    }
     /* Mengubah ukuran navbar dropdown */
    .navbar-nav .nav-link.dropdown-toggle {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Memperkecil dropdown menu */
    .dropdown-menu {
        font-size: 0.8rem;
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 0.4rem 1rem;
    }
    
    /* Jika teks terlalu panjang */
    .nav-link.dropdown-toggle {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}