/* Jadwal Wisuda Styles */
.schedule-section {
    padding: 40px 0 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

.filter-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 30px;
}

.filter-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-title i {
    color: var(--primary-color);
}

.filter-control {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.filter-apply-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.schedule-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.schedule-header {
    background: var(--gradient-primary);
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.schedule-header-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.1;
}

.schedule-header-title {
    color: white;
    margin: 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.schedule-header-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.schedule-container {
    padding: 30px;
}

/* Graduation Schedule Cards */
.graduation-schedule-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.graduation-schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.graduation-schedule-card.upcoming {
    border-color: rgba(16, 185, 129, 0.2);
}

.graduation-schedule-card.past {
    border-color: rgba(107, 114, 128, 0.2);
    opacity: 0.8;
}

.graduation-schedule-card.today {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.schedule-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-date {
    text-align: center;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.upcoming {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.completed {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.schedule-card-body {
    padding: 20px;
    flex-grow: 1;
}

.schedule-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.schedule-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-item i {
    width: 16px;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.registration-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.progress {
    height: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.registration-period {
    padding: 15px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.registration-period h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.period-dates {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.period-start,
.period-end {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.period-start i,
.period-end i {
    color: #059669;
    font-size: 0.75rem;
}

.period-separator {
    color: var(--text-muted);
    font-weight: 600;
}

.schedule-card-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(248, 249, 250, 0.5);
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.schedule-card-footer .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.schedule-card-footer .btn-outline-primary:hover {
    transform: translateY(-1px);
}

.schedule-card-footer .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.schedule-card-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title,
.empty-state-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-text,
.empty-state-text {
    color: var(--text-muted);
    margin: 0;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Legend */
.legend-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.legend-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-title i {
    color: var(--primary-color);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.schedule-detail-content {
    padding: 10px 0;
}

.detail-header {
    text-align: center;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.detail-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.detail-code {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-card {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.detail-card h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card h6 i {
    color: var(--primary-color);
}

.detail-card p {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-card .progress {
    height: 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 5px;
}

.detail-card .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .schedule-section {
        padding: 40px 0;
    }
    
    .filter-card {
        padding: 20px;
    }
    
    .schedule-container {
        padding: 20px;
    }
    
    .graduation-schedule-card {
        margin-bottom: 20px;
    }
    
    .schedule-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .schedule-card-footer .btn {
        width: 100%;
    }
    
    .period-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .period-separator {
        display: none;
    }
    
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-header {
        padding: 15px;
    }
    
    .detail-card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .schedule-header {
        padding: 20px;
    }
    
    .schedule-header-title {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .date-day {
        font-size: 1.5rem;
    }
    
    .schedule-card-header {
        padding: 15px;
    }
    
    .schedule-card-body {
        padding: 15px;
    }
    
    .schedule-card-footer {
        padding: 15px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.graduation-schedule-card {
    animation: fadeInUp 0.6s ease forwards;
}

.graduation-schedule-card:nth-child(1) { animation-delay: 0.1s; }
.graduation-schedule-card:nth-child(2) { animation-delay: 0.2s; }
.graduation-schedule-card:nth-child(3) { animation-delay: 0.3s; }
.graduation-schedule-card:nth-child(4) { animation-delay: 0.4s; }
.graduation-schedule-card:nth-child(5) { animation-delay: 0.5s; }
.graduation-schedule-card:nth-child(6) { animation-delay: 0.6s; }