/* Custom Styles untuk Sistem Jurnal Presensi */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

/* Button Styles */
.btn {
    @apply px-4 py-2 rounded-lg font-semibold transition-colors duration-200;
}

.btn-primary {
    @apply bg-purple-600 text-white hover:bg-purple-700;
}

.btn-success {
    @apply bg-green-600 text-white hover:bg-green-700;
}

.btn-danger {
    @apply bg-red-600 text-white hover:bg-red-700;
}

.btn-secondary {
    @apply bg-gray-500 text-white hover:bg-gray-600;
}

/* Card Styles */
.card {
    @apply bg-white rounded-lg shadow-sm border border-gray-200;
}

.card-header {
    @apply px-6 py-4 border-b border-gray-200;
}

.card-body {
    @apply p-6;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:border-purple-500 focus:outline-none transition-colors;
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:border-purple-500 focus:outline-none transition-colors;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 mb-2;
}

/* Status Badges */
.status-badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.status-active {
    @apply bg-green-100 text-green-800;
}

.status-inactive {
    @apply bg-red-100 text-red-800;
}

.status-pending {
    @apply bg-yellow-100 text-yellow-800;
}

/* Attendance Status */
.attendance-present {
    @apply bg-green-100 text-green-800 border border-green-200;
}

.attendance-sick {
    @apply bg-yellow-100 text-yellow-800 border border-yellow-200;
}

.attendance-permission {
    @apply bg-blue-100 text-blue-800 border border-blue-200;
}

.attendance-absent {
    @apply bg-red-100 text-red-800 border border-red-200;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ... CSS yang sudah ada ... */

/* Statistik Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.stat-info h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #2d3748;
}

.stat-info p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
    color: #667eea;
}

.action-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.action-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Absensi Styles */
.absensi-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.absensi-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.absensi-list {
    max-height: 400px;
    overflow-y: auto;
}

.absensi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
}

.siswa-info {
    flex: 1;
}

.siswa-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.siswa-info small {
    color: #718096;
}

.absensi-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.absensi-radio {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.absensi-radio input {
    display: none;
}

.radio-label {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.absensi-radio input:checked + .radio-label.hadir {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.absensi-radio input:checked + .radio-label.sakit {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.absensi-radio input:checked + .radio-label.ijin {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.absensi-radio input:checked + .radio-label.alpha {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #64748b;
}

.info-item span {
    font-weight: 500;
    color: #1e293b;
}

/* Attendance Summary */
.attendance-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.summary-item.hadir { background: #dcfce7; }
.summary-item.sakit { background: #fef3c7; }
.summary-item.ijin { background: #dbeafe; }
.summary-item.alpha { background: #fee2e2; }

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.summary-item.hadir .summary-icon { background: #22c55e; }
.summary-item.sakit .summary-icon { background: #f59e0b; }
.summary-item.ijin .summary-icon { background: #3b82f6; }
.summary-item.alpha .summary-icon { background: #ef4444; }

.summary-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.summary-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.total-attendance {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
}

/* Content Box */
.content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    white-space: pre-line;
}

/* Attendance Tabs */
.attendance-tabs {
    margin-top: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-button.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.student-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #e2e8f0;
}

.student-item i {
    color: #64748b;
}

/* Attendance Overview */
.attendance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.attendance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
}

.attendance-item.hadir { background: linear-gradient(135deg, #22c55e, #16a34a); }
.attendance-item.sakit { background: linear-gradient(135deg, #f59e0b, #d97706); }
.attendance-item.ijin { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.attendance-item.alpha { background: linear-gradient(135deg, #ef4444, #dc2626); }

.attendance-icon {
    font-size: 2rem;
}

.attendance-info h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.25rem 0;
}

.attendance-info p {
    margin: 0 0 0.25rem 0;
    opacity: 0.9;
}

.attendance-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Tag List */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.25rem;
}

.action-buttons-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Header Actions */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .absensi-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .absensi-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .attendance-summary {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .attendance-overview {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ... CSS yang sudah ada ... */

/* Problem List */
.problem-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.problem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
}

.problem-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.problem-info small {
    color: #92400e;
}

.problem-stats {
    display: flex;
    gap: 0.5rem;
}

/* Recent Journals */
.recent-journals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.journal-header strong {
    color: #374151;
}

.journal-header small {
    color: #6b7280;
    font-size: 0.875rem;
}

.journal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.journal-materi {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.summary-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.summary-card.total { background: linear-gradient(135deg, #667eea, #764ba2); }
.summary-card.excellent { background: linear-gradient(135deg, #10b981, #059669); }
.summary-card.good { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.summary-card.problem { background: linear-gradient(135deg, #ef4444, #dc2626); }

.summary-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.summary-card h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

/* Table Footer */
.table-footer {
    background: #f8fafc !important;
    font-weight: bold;
}

.table-footer td {
    border-top: 2px solid #e2e8f0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    color: #374151;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.note-header strong {
    color: #374151;
}

.note-header small {
    color: #6b7280;
    font-size: 0.8rem;
}

.note-content p {
    margin: 0.5rem 0;
    color: #4b5563;
    line-height: 1.5;
}

.note-content p strong {
    color: #374151;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Date Range */
.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range span {
    color: #6b7280;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problem-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .problem-stats {
        align-self: flex-end;
    }
    
    .journal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .journal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .date-range {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* ... CSS yang sudah ada ... */

/* Student Specific Styles */
.attendance-summary-total {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.summary-total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-total-item strong {
    color: #374151;
}

.summary-total-item span {
    font-weight: 500;
}

/* Attendance History */
.attendance-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attendance-item {
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    background: white;
    transition: all 0.2s;
}

.attendance-item.hadir { border-left-color: #22c55e; background: #f0fdf4; }
.attendance-item.sakit { border-left-color: #f59e0b; background: #fffbeb; }
.attendance-item.ijin { border-left-color: #3b82f6; background: #eff6ff; }
.attendance-item.alpha { border-left-color: #ef4444; background: #fef2f2; }

.attendance-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.attendance-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.attendance-date strong {
    font-size: 1.1rem;
    color: #1f2937;
}

.attendance-date small {
    color: #6b7280;
    font-size: 0.875rem;
}

.attendance-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.subject-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
}

.subject-info span {
    color: #6b7280;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.status-badge.hadir { background: #dcfce7; color: #166534; }
.status-badge.sakit { background: #fef3c7; color: #92400e; }
.status-badge.ijin { background: #dbeafe; color: #1e40af; }
.status-badge.alpha { background: #fee2e2; color: #991b1b; }

.attendance-material,
.attendance-task {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.attendance-material strong,
.attendance-task strong {
    color: #374151;
}

/* Attendance Chart */
.attendance-chart {
    padding: 1rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 200px;
    gap: 1rem;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    transition: all 0.3s ease;
    position: relative;
}

.chart-bar.hadir { background: linear-gradient(to top, #22c55e, #16a34a); }
.chart-bar.sakit { background: linear-gradient(to top, #f59e0b, #d97706); }
.chart-bar.ijin { background: linear-gradient(to top, #3b82f6, #1d4ed8); }
.chart-bar.alpha { background: linear-gradient(to top, #ef4444, #dc2626); }

.chart-bar:hover {
    transform: scale(1.05);
}

.chart-label {
    position: absolute;
    top: -25px;
    font-weight: bold;
    color: #374151;
}

.chart-title {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

/* Stats List */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
    text-align: center;
}

.stat-details strong {
    display: block;
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-details span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Profile Info */
.profile-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.profile-details {
    flex: 1;
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task-item {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    background: white;
    transition: all 0.2s;
}

.task-item.active { border-left-color: #3b82f6; background: #eff6ff; }
.task-item.completed { border-left-color: #22c55e; background: #f0fdf4; }
.task-item.overdue { border-left-color: #ef4444; background: #fef2f2; }
.task-item.missed { border-left-color: #6b7280; background: #f9fafb; }

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.task-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.task-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-meta span {
    color: #6b7280;
    font-size: 0.875rem;
}

.task-meta i {
    margin-right: 0.25rem;
}

.task-content {
    margin-bottom: 1rem;
}

.task-material,
.task-assignment {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
}

.task-material strong,
.task-assignment strong {
    color: #374151;
    display: block;
    margin-bottom: 0.5rem;
}

.task-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Task Stats */
.task-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.task-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-stat-item .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.task-stat-item:nth-child(1) .stat-icon { background: #667eea; }
.task-stat-item:nth-child(2) .stat-icon { background: #22c55e; }
.task-stat-item:nth-child(3) .stat-icon { background: #3b82f6; }
.task-stat-item:nth-child(4) .stat-icon { background: #ef4444; }

.task-stat-item .stat-info h3 {
    margin: 0;
    font-size: 1.75rem;
    color: #1f2937;
}

.task-stat-item .stat-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Subject Stats */
.subject-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.subject-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
}

.subject-info small {
    color: #6b7280;
    font-size: 0.875rem;
}

.subject-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill.hadir { background: #22c55e; }
.progress-fill.sakit { background: #f59e0b; }
.progress-fill.ijin { background: #3b82f6; }
.progress-fill.alpha { background: #ef4444; }

.progress-text {
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.progress-percentage {
    min-width: 60px;
    text-align: right;
}

/* Academic Stats */
.academic-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.academic-stat-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.main-stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    min-width: 200px;
}

.main-stat h3 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.main-stat p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.main-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.detail-item .label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.detail-item .value {
    font-size: 1.25rem;
    font-weight: bold;
}

.detail-item .value.hadir { color: #22c55e; }
.detail-item .value.sakit { color: #f59e0b; }
.detail-item .value.ijin { color: #3b82f6; }
.detail-item .value.alpha { color: #ef4444; }

.subject-performance h4 {
    margin: 0 0 1rem 0;
    color: #374151;
}

.performance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.subject-name strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #374151;
}

.subject-name small {
    color: #6b7280;
    font-size: 0.875rem;
}

.performance-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.percentage {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.percentage.good { color: #22c55e; }
.percentage.poor { color: #ef4444; }

/* Custom Tooltip */
.custom-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    max-width: 300px;
    word-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .attendance-overview {
        grid-template-columns: 1fr;
    }
    
    .attendance-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-placeholder {
        margin: 0 auto;
    }
    
    .task-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .task-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .academic-stat-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .performance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .performance-bar {
        width: 100%;
    }
    
    .chart-bars {
        height: 150px;
    }
    
    .chart-bar {
        width: 40px;
    }
}