* { font-family: 'Plus Jakarta Sans', sans-serif; }
    .status-complete { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
    .status-progress { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
    .status-incomplete { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
    .card-hover { transition: all 0.3s ease; }
    .card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
    .bar-animate { animation: growUp 0.8s ease-out forwards; transform-origin: bottom; }
    @keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .fade-in { animation: fadeIn 0.5s ease-out; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .glass-effect { backdrop-filter: blur(10px); background: rgba(255,255,255,0.9); }
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    .filter-indicator { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; padding: 2px 8px; border-radius: 20px; background-color: #eff6ff; color: #2563eb; margin-left: 8px; font-weight: 500; }
    .chart-scroll-wrapper { overflow-x: auto; overflow-y: visible; width: 100%; padding-bottom: 8px; }
    .chart-inner { display: flex; align-items: flex-end; justify-content: flex-start; gap: 2rem; min-width: min-content; width: 100%; }
    .chart-group { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; flex-shrink: 0; }
    .bars-container { display: flex; align-items: flex-end; gap: 0.75rem; height: 12rem; }
    .bar-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
    .bar { width: 2.5rem; border-radius: 0.5rem 0.5rem 0 0; transition: height 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .bar-value { font-size: 0.7rem; font-weight: 700; }
    @media (max-width: 640px) { .bar { width: 1.75rem; } .bars-container { gap: 0.5rem; height: 10rem; } .chart-inner { gap: 1rem; } }
    
    /* Gauge styling */
    .gauge-container { position: relative; width: 180px; height: 180px; }
    .gauge-circle-bg { fill: none; stroke: #e2e8f0; stroke-width: 14; }
    .gauge-circle-fill { fill: none; stroke: url(#gaugeGradient); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; }
    
    /* --- TABLE RAPI: NO WRAP & ALIGNMENT BETTER --- */
    .progress-table {
      border-collapse: separate;
      border-spacing: 0;
      width: 100%;
    }
    .progress-table th {
      background: #f8fafc;
      font-weight: 700;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #1e293b;
      padding: 14px 12px;
      border-bottom: 2px solid #e2e8f0;
      white-space: nowrap;
    }
    .progress-table td {
      padding: 14px 12px;
      vertical-align: middle;
      border-bottom: 1px solid #f1f5f9;
      white-space: nowrap;
    }
    /* untuk kolom dengan banyak task (multiple row) kita bisa override wrap agar rapi */
    .progress-table td.task-multiline-cell {
      white-space: normal;
      vertical-align: top;
      min-width: 200px;
    }
    .task-cell-inner {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .task-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 6px 10px;
      margin: 2px 0;
      border-radius: 10px;
      background: #fafbfc;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .task-item:hover { background: #f1f5f9; transform: translateX(2px); }
    .task-name { 
      font-size: 0.75rem; 
      font-weight: 600; 
      color: #1e293b;
      white-space: nowrap;
      flex-shrink: 0;
    }
    /* Status badges no wrap */
    .status-badge { 
      display: inline-flex; 
      align-items: center; 
      gap: 6px; 
      padding: 5px 12px; 
      border-radius: 30px; 
      font-size: 0.7rem; 
      font-weight: 700; 
      white-space: nowrap;
      line-height: 1.2;
    }
    .status-badge-complete { background: #d1fae5; color: #065f46; }
    .status-badge-progress { background: #fed7aa; color: #92400e; }
    .status-badge-incomplete { background: #fee2e2; color: #991b1b; }
    .status-badge-empty { background: #f1f5f9; color: #94a3b8; }
    
    /* Stat number boxes tetap kompak */
    .stat-number { 
      font-weight: 800; 
      font-size: 1rem; 
      display: inline-flex; 
      align-items: center; 
      justify-content: center; 
      width: 36px; 
      height: 36px; 
      border-radius: 14px; 
      white-space: nowrap;
    }
    .stat-complete { background: #d1fae5; color: #065f46; }
    .stat-progress { background: #fed7aa; color: #92400e; }
    .stat-incomplete { background: #fee2e2; color: #991b1b; }
    
    /* ontrack badges */
    .ontrack-card { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-radius: 24px; padding: 20px; }
    .ontrack-progress-bar { height: 12px; background: #e2e8f0; border-radius: 20px; overflow: hidden; }
    .ontrack-progress-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 20px; transition: width 0.5s ease; }
    .ontrack-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 40px; font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
    .ontrack-badge-success { background: #10b981; color: white; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
    .ontrack-badge-warning { background: #f59e0b; color: white; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
    .ontrack-badge-danger { background: #ef4444; color: white; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
    .filter-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; appearance: none; }
    
    /* fix untuk nama peserta panjang agar tidak wrap & sticky tetap rapi */
    .progress-table td:first-child {
      white-space: nowrap;
      font-weight: 700;
      background-color: white;
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    /* kolom summary (complete/progress/incomplete) */
    .progress-table td.text-center {
      white-space: nowrap;
    }
    /* membuat kolom dengan banyak task tetap nyaman di scroll horizontal */
    .overflow-x-auto {
      scrollbar-width: thin;
    }
    /* Untuk status badge di single task (materi dengan 1 tugas) */
    .single-task-cell {
      text-align: center;
      vertical-align: middle;
    }
	/* Animasi spinner untuk tombol refresh */
	.refresh-spinner {
	  display: inline-block;
	  width: 18px;
	  height: 18px;
	  border: 2px solid rgba(100, 116, 139, 0.3);
	  border-radius: 50%;
	  border-top-color: #3b82f6;
	  animation: spin 0.7s linear infinite;
	  margin-right: 8px;
	}
	@keyframes spin {
	  to { transform: rotate(360deg); }
	}
	/* Gaya tombol saat sedang memuat */
	.btn-refreshing {
	  pointer-events: none;
	  opacity: 0.8;
	  background-color: #e2e8f0 !important;
	}
	/* Efek transparan pada dashboard saat loading */
	.dashboard-loading {
	  opacity: 0.6;
	  transition: opacity 0.2s ease;
	}