/* Custom CSS for Jadwal Pelatihan Dasar CPNS Donggala */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Animation for glowing orbs */
@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Tab button transitions */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-2px);
}

/* PERUBAHAN UTAMA: Modern CSS Grid Accordion (100% Responsif & Anti-Potong) */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.accordion-content.active {
    grid-template-rows: 1fr;
}

.accordion-inner {
    overflow: hidden;
}

/* Card hover effects */
.jadwal-card {
    transition: all 0.3s ease;
}

.jadwal-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Method badge colors */
.badge-mandiri {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-async {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.badge-sync {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-klasikal {
    background-color: #ffedd5;
    color: #c2410c;
}

/* Date header styling */
.date-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

/* Filter tag styling */
.filter-tag {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sticky filter shadow on scroll */
#filter-section.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-btn span {
        font-size: 0.875rem;
    }
    
    .date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Loading animation for data */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: fadeIn 0.4s ease forwards;
}

/* Facilitator section (Anti-potong juga) */
.facilitator-section {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.facilitator-section.active {
    grid-template-rows: 1fr;
    opacity: 1;
}

.facilitator-inner {
    overflow: hidden;
}

/* Button hover states */
button:active {
    transform: scale(0.98);
}

/* Focus styles for accessibility */
input:focus, select:focus, button:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
}

/* Print styles */
@media print {
    #filter-section, .tab-btn {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
}