.timeline::before {
            content: "";
            position: absolute;
            top: 0;
            left: 15px;
            width: 2px;
            height: 100%;
            background: #dee2e6;
          }
          .timeline-item {
            position: relative;
            margin-bottom: 14px;
            padding-left: 25px;
          }
          .timeline-badge {
            position: absolute;
            left: 7px;
            top: 8px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
          }
          .timeline-content {
            font-size: 0.8rem;
            line-height: 1.3;
          }
          .timeline-content small {
            font-size: 0.7rem;
          }
          .avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 8px;
            border: 1px solid #ddd;
          }
          .timeline-item:last-child {
            margin-bottom: 5px;
          }



:root {
    --dark-bg: #3a495c;
    --light-bg: #f8f9fa;
}

body {
    background-color: #f5f6f8;
    background-image: linear-gradient(to bottom, #f0f2f5, #f8f9fa);
    min-height: 100vh;
}

/* Add subtle texture */
body {
    background-color: #f8f9fa;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(120, 119, 198, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 85% 30%, rgba(255, 119, 198, 0.03) 0%, transparent 20%);
}
/* Smooth shadow and hover effects */
.small-box, .card {
    position: relative;
    border-radius: 12px;
    background: white;
}

/* Force word breaking for all description containers, even inside modals */
.description-content,
.description-content * {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* Create gradient border effect */
.small-box::before{
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #b75301, #d49867, #f3dc80);
    border-radius: 14px;
    z-index: -1;
    /* PERUBAHAN DISINI: Sembunyikan gradient di awal */
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(183, 83, 1, 0.15) !important;
}

.small-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #b75301, #d49867, #f3dc80);
    border-radius: 14px;
    z-index: -1;
    /* SEMBUNYIKAN DI AWAL */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.small-box:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var (lightslategray);
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Better responsive layout */
.user-lastname {
    display: inline;
    font-style: italic !important;
}

@media (max-width: 768px) {
    .project-card {
        min-width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .custom-width-20 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .chart-container {
        height: 200px !important;
    }
}
/* Membuat avatar tumpang tindih */
.avatar-member {
    margin-right: -8px !important; 
    /* Mengganti border-white dengan shadow ringan yang bersih */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); 
    transition: transform 0.2s ease-in-out;
}
.avatar-member:hover {
    transform: scale(1.1);
    z-index: 10;
}
.assignment-list {
    margin-left: 8px; /* Mengimbangi margin negatif */
    margin-top: 5px !important;
}
/* Memastikan chart memiliki kontainer yang bersih */
.chart-container {
    position: relative;
    height: 150px; 
    width: 100%;
}

/* Mengubah tampilan card manager agar menonjol tanpa border */
.p-2.mb-3.rounded {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05); /* Shadow halus */
}
/* Perbarui ini jika ada di file CSS terpisah */
.chart-container {
    position: relative;
    /* TINGGI BARU */
    height: 250px; 
    width: 100%;
}

/* Kelas untuk membuat konten di dalam elemen bisa digeser horizontal */
.horizontal-scroll-container {
    /* Pastikan lebar container mencakup lebar konten penuh */
    overflow-x: auto; /* Memungkinkan scrolling horizontal jika konten melebihi lebar */
    -webkit-overflow-scrolling: touch; /* Memperbaiki scrolling di iOS */
    max-width: 100%; /* Memastikan tidak melebihi lebar induk */
}

/* Jika Anda ingin konten di dalam card body bisa di-scroll: */
.card-body.scrollable-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix untuk dropdown di dalam modal */
.select2-container {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

/* Pastikan Select2 dropdown tidak terlalu besar */
.select2-container--bootstrap4 .select2-results__option {
    padding: 6px 12px;
}

.select2-container--bootstrap4 .select2-selection--multiple {
    min-height: 38px;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    padding: 2px 8px;
    margin-top: 4px;
    margin-right: 4px;
    font-size: 0.875rem;
}

/* Batasi tinggi dropdown agar tidak terlalu panjang */
.select2-results {
    max-height: 250px !important;
}

.select2-results__options {
    max-height: 250px !important;
}

/* Fix khusus untuk select2 di dalam modal */
.select2-container--open {
    z-index: 9999 !important;
}

/* Fix untuk Select2 dengan theme bootstrap4 */
.select2-container--bootstrap4 .select2-selection {
    border: 1px solid #ced4da;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Memastikan dropdown muncul di atas elemen lain */
.select2-container--bootstrap4 .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Pastikan select2 container mengikuti parent */
.select2-container {
    width: 100% !important;
}

/* ========================================= */
/* SIDEBAR RESPONSIVE FOR MOBILE & DESKTOP  */
/* ========================================= */

/* Desktop sidebar collapse */
@media (min-width: 992px) {
    body.sidebar-collapse .main-sidebar {
        margin-left: -250px;
    }
    
    body.sidebar-collapse .content-wrapper,
    body.sidebar-collapse .main-header,
    body.sidebar-collapse .main-footer {
        margin-left: 0 !important;
    }
    
    body:not(.sidebar-collapse) .main-sidebar {
        margin-left: 0;
    }
}

/* Mobile sidebar styles */
@media (max-width: 991px) {
    /* Prevent any horizontal scroll */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Sidebar default hidden di mobile - COMPLETELY HIDDEN */
    .main-sidebar {
        position: fixed !important;
        top: 0;
        left: -100% !important;
        height: 100vh;
        z-index: 1040;
        width: 250px !important;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        overflow-x: hidden;
        visibility: hidden;
        opacity: 0;
    }
    
    /* Show sidebar when pushmenu active */
    body.sidebar-open .main-sidebar {
        left: 0 !important;
        visibility: visible;
        opacity: 1;
    }
    
    /* Ensure content is full width when sidebar closed */
    .content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Ensure navbar is visible and button clickable */
    .main-header {
        position: relative;
        z-index: 1041;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .navbar-nav .nav-link {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Overlay untuk close sidebar */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1039;
        animation: fadeIn 0.3s;
        pointer-events: auto;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Content wrapper full width */
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    /* Navbar full width */
    .main-header {
        margin-left: 0 !important;
    }
    
    /* Footer full width */
    .main-footer {
        margin-left: 0 !important;
    }
    
    /* Hide text in sidebar untuk lebih compact */
    .sidebar .nav-link p {
        display: inline !important;
    }
    
    /* Floating button adjustment for mobile */
    .float {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .my-float {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    /* Adjustments for smaller mobile */
    .main-sidebar {
        width: 260px !important;
        left: -260px;
    }
    
    .main-sidebar .brand-text {
        font-size: 1rem;
    }
    
    /* Reduce padding in content */
    .content-wrapper {
        padding: 0 0.5rem;
    }
    
    .content-header {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .main-sidebar {
        width: 80% !important;
        max-width: 280px !important;
        left: -80%;
    }
    
    body.sidebar-open .main-sidebar {
        left: 0;
    }
    
    /* Smaller floating button */
    .float {
        width: 45px;
        height: 45px;
        bottom: 60px;
        right: 15px;
    }
    
    .my-float {
        margin-top: 12px;
        font-size: 18px;
    }
}