/* RESET DAN VARIABLES */
/* NUCLEAR OPTION - Force modal to be on top of EVERYTHING */
#commentModal {
    z-index: 2147483647 !important; /* Maximum z-index value */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
}

#commentModal .modal-dialog {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 90% !important;
    max-height: 90% !important;
}

#commentModal .modal-content {
    z-index: 2147483647 !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.5) !important;
}

/* Hide all other high z-index elements when modal is open */
body.modal-open .tab,
body.modal-open .debug-bar-dinlineBlock,
body.modal-open .debug-bar-ndisplay,
body.modal-open .toolbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary: #f8fafc;
    --accent: #06d6a0;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --sidebar-width: 260px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--text);
    min-height: 100vh;
}

/* === LAYOUT === */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content, .teamlead-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #1a1f36 0%, #0f1322 100%);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 0 0.5rem 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

/* Badge untuk approve waiting list */
.sidebar-badge.approve-badge {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    animation: pulse 2s infinite;
}

.approved-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === TOPBAR === */
.topbar {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.date-badge {
    background: var(--card-bg);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === IMPROVED DASHBOARD STYLES === */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Progress Ring */
.progress-ring-lg {
    position: relative;
    width: 120px;
    height: 120px;
}

.ring-chart-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% var(--progress, 0%), #e2e8f0 var(--progress, 0%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ring-chart-lg::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
}

.ring-value-lg {
    position: relative;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Stats Card Improvement */
.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-icon.bg-success { background: linear-gradient(135deg, var(--accent), #0db39e); }
.stat-icon.bg-warning { background: linear-gradient(135deg, var(--warning), #fbbf24); }
.stat-icon.bg-info { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.up { color: var(--accent); }
.stat-trend.down { color: var(--danger); }

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-action-btn:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
    text-decoration: none;
    color: var(--text);
}

.quick-action-btn.btn-primary:hover { border-color: var(--primary); }
.quick-action-btn.btn-success:hover { border-color: var(--accent); }
.quick-action-btn.btn-warning:hover { border-color: var(--warning); }

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.quick-action-btn.btn-primary .action-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.quick-action-btn.btn-success .action-icon { background: linear-gradient(135deg, var(--accent), #0db39e); }
.quick-action-btn.btn-warning .action-icon { background: linear-gradient(135deg, var(--warning), #fbbf24); }

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.action-desc {
    color: var(--text-light);
    font-size: 0.85rem;
}

.action-arrow {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.quick-action-btn:hover .action-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(248, 250, 252, 0.8);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

/* === HORIZONTAL KANBAN BOARD === */
.horizontal-kanban {
    overflow-x: auto;
    padding: 10px 0;
}

.horizontal-kanban::-webkit-scrollbar {
    height: 8px;
}

.horizontal-kanban::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.horizontal-kanban::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.horizontal-kanban::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.kanban-container {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 10px 5px;
}

/* Kolom Kanban */
.kanban-column {
    min-width: 300px;
    max-width: 300px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.column-header {
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #6c757d;
}

/* Warna header berdasarkan status */
.kanban-column[data-status="todo"] .column-header { border-left-color: #6c757d; }
.kanban-column[data-status="in_progress"] .column-header { border-left-color: #fd7e14; }
.kanban-column[data-status="review"] .column-header { 
    border-left-color: #0dcaf0; 
    background: linear-gradient(135deg, #f0fdff, #ffffff);
}
.kanban-column[data-status="done"] .column-header { border-left-color: #198754; }

.column-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
}

.column-count {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.column-cards {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Kanban Cards */
.kanban-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 4px solid #6c757d;
    transition: all 0.2s ease;
    position: relative;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.kanban-card.priority-high { border-left-color: var(--danger); }
.kanban-card.priority-medium { border-left-color: var(--warning); }
.kanban-card.priority-low { border-left-color: var(--accent); }

/* Card Review - Highlight khusus */
.kanban-card[data-status="review"] {
    border-left-color: #0dcaf0;
    background: linear-gradient(135deg, #f8fdff, #ffffff);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.15);
}

.kanban-card[data-status="review"]:hover {
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3748;
    margin: 0;
    flex: 1;
    margin-right: 8px;
}

.card-description {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #718096;
}

.meta-item i {
    width: 14px;
    color: #a0aec0;
}

/* Status Badge */
.status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 0.5rem;
}

.status-badge.review {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
    color: white;
}

.status-badge.waiting-approval {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: white;
    animation: pulse 2s infinite;
}

.review-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.empty-column {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.empty-column i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Add Card Button - Hanya di To Do */
.add-card-btn {
    border: 2px dashed #cbd5e0;
    background: transparent;
    color: #718096;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.add-card-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Approve Button - Hanya untuk card di review */
.btn-approve {
    background: linear-gradient(135deg, var(--accent), #05b38c);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.4);
    background: linear-gradient(135deg, #05b38c, #049c75);
}

/* === BUTTONS & FORMS === */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.form-control, .form-select {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* === ALERTS === */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-left: 4px solid var(--warning);
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    color: #059669;
    border-left: 4px solid var(--accent);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid var(--danger);
}

/* === MODALS === */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* === DROPDOWN FIXES === */
.dropdown-menu {
    z-index: 1060 !important;
}

.card-actions .dropdown-menu {
    min-width: 140px;
    font-size: 0.85rem;
}

.card-actions {
    position: relative;
    z-index: 10;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

/* Status form visibility */
.kanban-card:not([data-status="review"]) .status-form,
.kanban-card[data-status="done"] .status-form {
    display: none !important;
}

.kanban-card[data-status="review"] .btn-approve {
    display: block;
}

.kanban-card:not([data-status="review"]) .btn-approve {
    display: none !important;
}

.kanban-card[data-status="done"] .badge.bg-success {
    display: block;
}

.kanban-card:not([data-status="done"]) .badge.bg-success {
    display: none !important;
}

/* === ANIMATIONS === */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content, .teamlead-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .topbar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .kanban-column {
        min-width: 280px;
    }
    
    .column-cards {
        min-height: 400px;
    }
    
    .progress-ring-lg {
        margin-top: 2rem;
    }
    
    .quick-action-btn {
        padding: 1rem;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    /* === BLOCKERS SPECIFIC STYLES === */

/* Blocker Table Styles */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
}

.table-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Avatar Styles */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Button Group Styles */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Blocker Priority Badges */
.badge.bg-success { background: linear-gradient(135deg, #198754, #20c997) !important; }
.badge.bg-warning { background: linear-gradient(135deg, #ffc107, #fd7e14) !important; }
.badge.bg-danger { background: linear-gradient(135deg, #dc3545, #e83e8c) !important; }
.badge.bg-info { background: linear-gradient(135deg, #0dcaf0, #3b82f6) !important; }

/* === PROFILE SPECIFIC STYLES === */

/* Profile Avatar */
.avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-stats {
    margin: 1.5rem 0;
}

.profile-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.profile-stats .stat-label {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength .progress {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    height: 6px;
}

.password-strength .progress-bar {
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Project Info */
.project-info {
    padding: 0.5rem 0;
}

.project-info .metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.project-info .metric-label {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text);
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

/* Profile Upload */
.profile-upload {
    position: relative;
    display: inline-block;
}

.profile-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Card Body Background */
.glass-card .card-body {
    background: transparent;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent), #05b38c);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .avatar-lg {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .profile-stats .stat-value {
        font-size: 1.25rem;
    }
    
    .glass-card .card-body {
        padding: 1rem;
    }
}
/* === MEMBER SPECIFIC STYLES === */

/* Task Cards */
.task-card {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.task-header {
    padding: 1rem 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.task-title {
    font-weight: 600;
    color: var(--text);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    flex: 1;
}

.task-body {
    padding: 0 1rem;
}

.task-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Progress Bar */
.progress {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Time Display */
.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

/* === DASHBOARD LAYOUT FIXES === */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

/* Fix untuk layout yang ngepress ke kiri */
.main-content, .teamlead-content, .content {
    margin-left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
}

/* Container untuk memastikan konten tidak terlalu melebar */
.dashboard-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Grid system improvement */
.row.g-3, .row.g-4 {
    margin: 0 -0.75rem;
}

.col-md-3, .col-md-4, .col-md-6, .col-lg-6 {
    padding: 0 0.75rem;
}

/* Stats grid improvement */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Timer section styling */
.timer-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timer-display {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.timer-controls {
    text-align: center;
}

.timer-info {
    text-align: center;
    margin-top: 1rem;
}

.timer-info .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Current task alert improvement */
.current-task-alert {
    background: linear-gradient(135deg, #0dcaf0, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}

.current-task-alert .badge {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
/* === GRID SYSTEM === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col-lg-6, .col-md-4, .col-md-6, .col-sm-4, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Gap utilities */
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }
.g-2 { gap: 0.5rem; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }

.ms-2 { margin-left: 0.5rem !important; }

/* Flex utilities */
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-block { display: inline-block !important; }

.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

.flex-column { flex-direction: column !important; }

/* Text utilities */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.text-muted { color: var(--text-light) !important; }
.text-dark { color: var(--text) !important; }
.text-white { color: white !important; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }

/* Spacing utilities */
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* Button utilities */
.btn-sm { 
    padding: 0.5rem 1rem !important; 
    font-size: 0.875rem !important;
}

.btn-outline-primary { 
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

.w-100 { width: 100% !important; }

/* Badge utilities */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--accent) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: #0dcaf0 !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-light { background-color: #f8f9fa !important; color: #000 !important; }

/* Display utilities */
.display-4 { 
    font-size: 2.5rem !important; 
    font-weight: 300 !important;
    line-height: 1.2 !important;
}

.display-6 { 
    font-size: 1.5rem !important; 
    font-weight: 300 !important;
    line-height: 1.2 !important;
}

/* Small text */
.small { font-size: 0.875rem !important; }

/* Progress Bar Styles */
.progress-section {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Priority Indicators */
.priority-high {
    border-left: 4px solid #dc3545;
}

.priority-medium {
    border-left: 4px solid #ffc107;
}

.priority-low {
    border-left: 4px solid #0dcaf0;
}

/* Status Badges */
.status-badge.waiting-approval {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
}

.btn-approve {
    background: #198754;
    color: white;
    border: none;
}

.btn-approve:hover {
    background: #157347;
    color: white;
}
/* === DROPDOWN FIXES === */
.card-actions {
    position: relative;
    z-index: 100;
}

.dropdown-menu {
    z-index: 1060 !important;
    min-width: 160px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

/* Prevent card click when interacting with dropdown */
.kanban-card .dropdown,
.kanban-card .card-actions {
    pointer-events: auto;
}

.kanban-card .dropdown * {
    pointer-events: auto;
}

/* Enhanced modal styles */
.modal-xl {
    max-width: 1200px;
}

.modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}
/* === DROPDOWN FIXES === */
.card-actions {
    position: relative;
    z-index: 1000 !important;
}

.dropdown-menu {
    z-index: 1060 !important;
    min-width: 160px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

/* Prevent card click when interacting with dropdown */
.kanban-card .dropdown,
.kanban-card .card-actions {
    pointer-events: auto;
}

.kanban-card .dropdown * {
    pointer-events: auto;
}

/* Fix untuk card click yang mengganggu dropdown */
.kanban-card {
    position: relative;
}

.card-actions .dropdown-toggle {
    z-index: 1001;
}

.card-actions .dropdown-menu {
    z-index: 1002 !important;
}
/* === STATS GRID FIX === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive stats grid */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat card improvements */
.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-icon.bg-success { background: linear-gradient(135deg, var(--accent), #0db39e); }
.stat-icon.bg-warning { background: linear-gradient(135deg, var(--warning), #fbbf24); }
.stat-icon.bg-info { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.up { color: var(--accent); }
.stat-trend.down { color: var(--danger); }

/* === DETAIL CARD STYLES === */
.detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    position: relative;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.detail-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section-title i {
    color: var(--primary);
}

/* Progress Section */
.progress-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.progress-circle svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease;
}

.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-circle-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.progress-circle-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.timeline-content {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* Subtask List */
.subtask-list {
    max-height: 400px;
    overflow-y: auto;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.subtask-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.subtask-item.completed {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.subtask-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subtask-item.completed .subtask-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.subtask-content {
    flex: 1;
}

/* === SUBTASK CARDS FIX === */
#subtasksGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.subtask-square-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.subtask-square-card .card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background: white !important;
    transition: all 0.3s ease;
    height: 280px !important;
    min-height: 280px !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.subtask-square-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.subtask-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Check Button Circle */
.check-btn-circle {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    color: inherit;
    cursor: pointer;
    margin-bottom: 1rem;
}

.check-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    transition: all 0.3s ease;
}

/* Subtask Title & Description */
.subtask-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    display: -moz-box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtask-desc {
    display: -webkit-box;
    display: -moz-box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1rem;
}

/* Subtask Footer */
.subtask-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: auto;
}

.subtask-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

/* Time Tracking Section */
.time-tracking-section {
    margin-top: 0.5rem;
}

.time-tracking-section .btn {
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    width: 100%;
}

.btn-group {
    width: 100%;
}

.btn-group .btn {
    flex: 1;
}

/* Position Badges */
.position-absolute {
    z-index: 10;
}

/* Responsive Grid */
@media (max-width: 1400px) {
    #subtasksGrid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 1200px) {
    #subtasksGrid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    #subtasksGrid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .subtask-square-card .card {
        height: 260px !important;
        min-height: 260px !important;
    }
    
    .check-circle {
        width: 50px;
        height: 50px;
    }
    
    .check-circle i {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    #subtasksGrid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Ensure proper spacing in grid system */
.row.g-3 {
    margin: 0;
    display: contents; /* This helps with grid layout */
}

.col-xl-3, .col-lg-4, .col-md-6, .col-sm-6 {
    margin-bottom: 1.5rem;
}

/* Fix for card hover effects */
.subtask-square-card .card:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-4px);
}

/* Completed state */
.subtask-square-card.completed .card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    border-color: #bbf7d0 !important;
}

.subtask-square-card:not(.completed) .card {
    background: linear-gradient(135deg, #fef7ff, #faf5ff) !important;
    border-color: #e9d5ff !important;
}

.subtask-item.completed .subtask-title {
    text-decoration: line-through;
    color: var(--text-light);
}

.subtask-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.subtask-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Team Member Styles */
.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

.member-email {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Rejection Warning */
.rejection-warning {
    background: linear-gradient(135deg, #fef3f2, #fff6ed);
    border: 1px solid #fed7d7;
    border-left: 4px solid var(--danger);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.rejection-title {
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rejection-reason {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.rejection-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-header {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.25rem;
    }
    
    .detail-body {
        padding: 1.5rem;
    }
    
    .detail-meta {
        gap: 0.5rem;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-circle svg {
        width: 100px;
        height: 100px;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* Enhanced Card Detail Styles */
.subtasks-list {
    max-height: 300px;
    overflow-y: auto;
}


.subtask-item {
    transition: all 0.3s ease;
}

.subtask-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.timeline-info .timeline-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.timeline-info .timeline-item:last-child {
    border-bottom: none;
}

.member-avatar {
    flex-shrink: 0;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner .spinner-border {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-card .col-md-8,
    .detail-card .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .subtasks-list {
        max-height: 200px;
    }
}

/* Toast Notifications */
.toast {
    backdrop-filter: blur(10px);
}

/* Card Actions Dropdown Fix */
.card-actions .dropdown-menu {
    z-index: 1060 !important;
}

/* Progress Bar Animations */
.progress-bar {
    transition: width 0.6s ease;
}
/* Enhanced Member Tasks Styles */
.modern-task-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.modern-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e0;
}

/* Status Colors untuk Task Cards */
.status-todo { 
    border-left: 4px solid #6b7280;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.status-in-progress { 
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.status-review { 
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.status-done { 
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

/* Progress Bars */
.progress-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-todo .progress-bar-fill { background: linear-gradient(135deg, #6b7280, #9ca3af); }
.progress-in-progress .progress-bar-fill { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.progress-review .progress-bar-fill { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.progress-done .progress-bar-fill { background: linear-gradient(135deg, #10b981, #34d399); }

/* Action Buttons */
.btn-complete, .btn-subtasks {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}



.btn-complete {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-complete:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Button Subtasks */
.btn-subtasks {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}


.btn-subtasks:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-decoration: none;
}


/* Priority Tags */
.priority-high { 
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #dc2626;
    font-weight: 600;
}

.priority-medium { 
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #ea580c;
    font-weight: 600;
}

.priority-low { 
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    color: #1d4ed8;
    font-weight: 600;
}

/* Meta Information */
.meta-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.meta-item i {
    color: #6b7280;
    width: 16px;
    text-align: center;
}

/* Empty State */
.modern-empty-state {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #6366f1;
    font-size: 2rem;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .action-section {
        flex-direction: column;
    }

    .btn-waiting, .btn-done {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .review-badge, .approved-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .btn-complete, .btn-subtasks {
        width: 100%;
        text-align: center;
    }
    
    .tags-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* Completed Status */
.completed-status {
    opacity: 0.8;
}

.check-circle.completed {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #86efac;
}

.check-circle.completed i {
    color: #16a34a;
    font-size: 1.5rem;
}

/* Disabled Completed Button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Button spacing */
.time-tracking-section {
    margin-top: 0.5rem;
}

.time-tracking-section .btn {
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}
/* Complete Button Styles */
.complete-subtask-btn {
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-success {
    border: 2px solid #198754;
    color: #198754;
    background: transparent;
}

.btn-outline-success:hover {
    background: #198754;
    color: white;
    transform: translateY(-1px);
}

/* Button spacing in time tracking section */
.time-tracking-section .btn-group {
    margin-bottom: 0.5rem;
}

.time-tracking-section .mt-2 {
    margin-top: 0.5rem !important;
}
/* Button Completed */
.btn-complete {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-complete:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.btn-waiting::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

.btn-waiting {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: not-allowed;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Button Approved - IMPROVED */
.btn-done {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: not-allowed;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Completed Task Info Styles */
.completed-task-info {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.completed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 0.5rem;
}

.completed-message {
    font-size: 0.875rem;
    color: #047857;
    opacity: 0.8;
}

/* Update existing button styles untuk konsistensi */
.btn-waiting {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: not-allowed;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-done {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: not-allowed;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Subtasks List Styles */
.subtasks-container {
    margin-top: 1rem;
}

.subtasks-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subtask-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: white;
    transition: all 0.2s ease;
}

.subtask-item.completed {
    background: #f8fff9;
    border-color: #d1fae5;
}

.subtask-item.pending {
    background: #fffbf0;
    border-color: #fed7aa;
}

.subtask-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subtask-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.subtask-checkbox.completed {
    background: #10b981;
    color: white;
}

.subtask-checkbox.pending {
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

.subtask-content {
    flex: 1;
}

.subtask-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.subtask-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.subtask-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.subtask-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.completed-subtasks-section,
.pending-subtasks-section {
    margin-bottom: 1.5rem;
}

.completed-subtasks-section h6,
.pending-subtasks-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
}
/* Subtasks Mini List Styles */
.subtasks-mini-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.subtasks-progress-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.subtasks-status {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem;
}

.subtasks-mini-list h6 {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Progress bar styling */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}
/* Time Tracking Summary Styles */
.time-tracking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
}

.time-tracking-summary .row {
    margin: 0;
}

.time-tracking-summary .col-6 {
    padding: 0.5rem;
}

/* Timeline item improvements */
.timeline-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item i {
    width: 20px;
    text-align: center;
}
/* Comment System Styles */
.comment-btn {
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #0dcaf0;
    color: #0dcaf0;
    background: transparent;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-btn:hover {
    background: #0dcaf0;
    color: white;
    transform: scale(1.1);
}

.comment-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-avatar {
    font-weight: 600;
    flex-shrink: 0;
}

.delete-comment-btn {
    opacity: 0.6;
    transition: all 0.3s ease;
    border: none;
    padding: 0.25rem 0.5rem;
}

.delete-comment-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.comments-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.add-comment-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Modal styling */
#commentModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#commentModal .modal-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
}

#commentModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}
/* Fix Modal Visibility */
.modal.fade.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Toast styling */
.toast {
    z-index: 100001 !important;
}

/* Pastikan toast di atas modal */
.toast-container {
    z-index: 100000 !important;
}
/* Tambahkan di CSS */
.clickable-title {
    cursor: pointer;
    transition: color 0.2s ease;
}

.clickable-title:hover {
    color: var(--primary);
}

/* Card Detail Styles */
.card-detail-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.detail-info {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.member-avatar-detail {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Subtasks Styles */
.subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subtask-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.subtask-item.completed {
    background: #f8f9fa;
    opacity: 0.8;
}

.subtask-header .form-check-label {
    cursor: default;
}

/* Comments Styles */
.comment-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.comment-text {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.add-comment-form .input-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* Scrollbar untuk modal */
.card-detail-container::-webkit-scrollbar {
    width: 6px;
}

.card-detail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.card-detail-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.card-detail-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
/* Comment Styles */
.comment-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.comment-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.comment-text {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.add-comment-form .input-group {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.smaller {
    font-size: 0.75rem;
}

/* Subtask dengan comments */
.subtask-item {
    transition: all 0.3s ease;
}

.subtask-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* ===== CRITICAL FIXES ===== */

/* Fix modal z-index conflicts */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.dropdown-menu {
    z-index: 1070 !important;
}

/* Fix event bubbling untuk dropdown */
.no-click-bubble {
    pointer-events: auto !important;
}

.card-actions-fix {
    position: relative;
    z-index: 100;
}

.card-actions-fix .dropdown * {
    pointer-events: auto;
}

/* Fix card click areas */
.task-card-simple > *:not(.card-actions-fix):not(.clickable-title) {
    pointer-events: none;
}

.task-card-simple .card-actions-fix,
.task-card-simple .clickable-title {
    pointer-events: auto;
}

/* Fix responsive grid */
@media (max-width: 1400px) {
    .kanban-grid-simple {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .kanban-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-grid-simple {
        grid-template-columns: 1fr;
    }
    
    .teamlead-content {
        padding: 1rem;
    }
}

/* Fix layout overflow */
.dashboard-container {
    width: 100%;
    overflow-x: hidden;
}

.simple-kanban-board {
    width: 100%;
    overflow-x: auto;
}
/* ===== BOARD LAYOUT FIXES ===== */

/* Ensure proper main content layout */
.teamlead-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: #f8fafc;
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

.dashboard-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Fix topbar */
.topbar {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
}

/* Fix kanban board container */
.simple-kanban-board {
    width: 100%;
    overflow-x: auto;
}

/* Fix column equal height */
.kanban-column-simple {
    flex: 1;
    min-width: 0;
}

/* Fix for card content alignment */
.task-card-simple * {
    margin: 0;
}

/* Fix for proper grid layout */
.kanban-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Responsive grid */
@media (max-width: 1400px) {
    .kanban-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-grid-simple {
        grid-template-columns: 1fr;
    }
    
    .teamlead-content {
        padding: 1rem;
    }
}

/* Fix z-index conflicts */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.dropdown-menu {
    z-index: 1070 !important;
}
/* === COMPACT CARD DETAIL STYLES === */
.card-detail-compact {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.detail-header-compact {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.info-item-compact {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.member-avatar-compact {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.progress-section-compact .progress {
    height: 6px;
}

.description-section-compact .description-content-compact {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Subtasks Compact */
.subtasks-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.subtask-item-compact {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.subtask-item-compact:hover {
    border-color: #dee2e6;
}

.subtask-item-compact.completed {
    background: #f8f9fa;
    opacity: 0.8;
}

.subtask-header-compact .form-check-label {
    font-size: 0.875rem;
}

.subtask-description-compact {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Comments Compact */
.comment-section-compact {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.comment-item-compact {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.avatar-small-compact {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
}

.comment-text-compact {
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.add-comment-form-compact .input-group-sm {
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.smaller {
    font-size: 0.8rem;
}

.smallest {
    font-size: 0.7rem;
}

.empty-state-compact {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

/* Comment button styles */
.comment-toggle-btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

.delete-comment-btn {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
}

/* Scrollbar styling untuk compact layout */
.card-detail-compact::-webkit-scrollbar {
    width: 4px;
}

.card-detail-compact::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.card-detail-compact::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.card-detail-compact::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-detail-compact {
        max-height: 60vh;
    }
    
    .subtasks-list-compact {
        max-height: 200px;
    }
    
    .detail-header-compact .row {
        margin: 0 -0.5rem;
    }
    
    .detail-header-compact .col-md-6 {
        padding: 0 0.5rem;
    }
}
/* Toast Styles */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.toast-body {
    font-weight: 500;
}
/* ===== IMPROVED COMMENT ICON STYLES ===== */
.btn-comment-icon {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.btn-comment-icon:hover {
    color: #0d6efd !important;
    background: rgba(13, 110, 253, 0.1) !important;
    transform: scale(1.1);
}

.comment-icon-disabled {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #adb5bd !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    cursor: not-allowed;
}

/* Improved comment section */
.comment-section-compact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid #e9ecef;
    font-size: 0.8rem;
}

.existing-comments-compact {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.comment-item-compact {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    font-size: 0.75rem;
}

.comment-item-compact:last-child {
    margin-bottom: 0;
}

.avatar-small-compact {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-text-compact {
    background: white;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Improved form */
.add-comment-form-compact .input-group-sm {
    border-radius: 4px;
    overflow: hidden;
}

.add-comment-form-compact .form-control-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
}

.add-comment-form-compact .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
}

/* Better spacing untuk card detail */
.card-detail-compact {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.card-detail-compact .subtask-item-compact {
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.8rem;
}

.card-detail-compact .subtask-item-compact:last-child {
    margin-bottom: 0;
}

/* Improved header */
.detail-header-compact {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.detail-header-compact h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Better info grid */
.info-item-compact {
    background: #f8f9fa;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    height: 100%;
    font-size: 0.8rem;
}

.info-item-compact label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

/* Improved progress section */
.progress-section-compact {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    border: 1px solid #e9ecef;
}

.progress-section-compact h6 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.progress-section-compact .progress {
    height: 4px;
}

/* Better description */
.description-section-compact .description-content-compact {
    background: #f8f9fa;
    padding: 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid #e9ecef;
}

/* Improved subtasks section */
.subtasks-section-compact h6 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.subtask-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.subtask-header-compact .form-check {
    flex: 1;
    margin-bottom: 0;
}

.subtask-header-compact .form-check-label {
    font-size: 0.8rem;
    line-height: 1.3;
    cursor: default;
}

.subtask-description-compact {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #6c757d;
}

/* Better badges */
.badge.smaller {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
}

/* Improved scrollbar */
.existing-comments-compact::-webkit-scrollbar {
    width: 3px;
}

.existing-comments-compact::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.existing-comments-compact::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.existing-comments-compact::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .subtask-header-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .subtask-header-compact .form-check {
        width: 100%;
    }
    
    .comment-section-compact {
        padding: 0.5rem;
    }
    
    .card-detail-compact .subtask-item-compact {
        padding: 0.5rem;
    }
    
    .btn-comment-icon,
    .comment-icon-disabled {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.7rem !important;
    }
}
.meta-icon i,
.approval-progress-section i,
.card-header i {
    opacity: 1 !important;
    visibility: visible !important;
}
/* EMERGENCY FIX FOR MODAL */
#addSubtaskModal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

/* Pastikan button bisa diklik */
.btn-primary {
    position: relative;
    z-index: 1;
}

/* Fix untuk overlay */
.modal {
    backdrop-filter: none !important;
}
/* Rejection Styles */
.status-rejected { 
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.bg-rejected { 
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

.progress-rejected .progress-bar-fill { 
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

.rejection-badge .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}
/* ===== ENHANCED BLOCKERS STYLES ===== */

/* Blocker Card Styles */
.blockers-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blocker-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blocker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: all 0.3s ease;
}

.blocker-open::before {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.blocker-resolved::before {
  background: linear-gradient(135deg, #10b981, #059669);
}

.blocker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #e2e8f0;
}

.blocker-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
}

.blocker-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blocker-open .status-text {
  color: #d97706;
}

.blocker-resolved .status-text {
  color: #059669;
}

.blocker-priority {
  margin-left: auto;
}

.priority-badge {
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-high {
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  color: #dc2626;
  border: 1px solid #fecaca;
}

.priority-medium {
  background: linear-gradient(135deg, #fffbeb, #fed7aa);
  color: #d97706;
  border: 1px solid #fed7aa;
}

.priority-low {
  background: linear-gradient(135deg, #f0f9ff, #bae6fd);
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.blocker-content {
  margin-bottom: 1.5rem;
}

.blocker-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blocker-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.blocker-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.meta-content {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 600;
}

.blocker-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.action-btn {
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.action-btn:hover {
  transform: translateY(-1px);
}

/* Header Icon */
.header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

/* Empty State Improvements */
.empty-state {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 2px dashed #e2e8f0;
  border-radius: 20px;
  padding: 3rem 2rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
}

/* Animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .blocker-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .blocker-priority {
    margin-left: 0;
  }
  
  .blocker-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .blocker-actions {
    justify-content: stretch;
  }
  
  .action-btn {
    flex: 1;
    text-align: center;
  }
  
  .header-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .blocker-card {
    padding: 1.25rem;
  }
  
  .meta-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .meta-icon {
    margin: 0 auto;
  }
}
/* ===== COMPACT BLOCKERS STYLES ===== */

.blockers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.blocker-card.compact {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.blocker-card.compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.blocker-open::before {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.blocker-resolved::before {
  background: linear-gradient(135deg, #10b981, #059669);
}

.blocker-card.compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blocker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.open {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.resolved {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.priority-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-high {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.priority-medium {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.priority-low {
  background: rgba(3, 105, 161, 0.1);
  color: #0369a1;
}

.blocker-content {
  margin-bottom: 1rem;
}

.blocker-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  /* FIXED: Standard line-clamp properties */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  box-orient: vertical;
}

.blocker-description {
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  /* FIXED: Standard line-clamp properties */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  box-orient: vertical;
}

.blocker-meta {
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.meta-item i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.task-name {
  font-size: 0.7rem;
  background: #f8fafc;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
}

.blocker-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.action-btn {
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

/* Compact Header Icon */
.header-icon.compact {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* Compact Stat Cards */
.stat-card.compact {
  padding: 1rem;
  gap: 0.75rem;
}

.stat-card.compact .stat-icon {
  width: 45px;
  height: 45px;
  font-size: 1.1rem;
}

.stat-card.compact .stat-number {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
}

.stat-card.compact .stat-label {
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Compact Empty State */
.empty-state.compact {
  padding: 2rem 1.5rem;
}

.empty-state.compact .empty-icon {
  width: 60px;
  height: 60px;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.empty-state.compact h5 {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blockers-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .blockers-grid {
    grid-template-columns: 1fr;
  }
  
  .blocker-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .blocker-priority {
    align-self: flex-start;
  }
  
  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .header-icon.compact {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .blocker-card.compact {
    padding: 1rem;
  }
  
  .stat-card.compact {
    padding: 0.75rem;
  }
  
  .stat-card.compact .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
}