/* Schedule Card Styles */
.schedule-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(24, 203, 244, 0.2);
}

.schedule-card.active {
    border: 3px solid #18cbf4;
    position: relative;
}

.schedule-card.active::before {
    content: "HARI INI";
    position: absolute;
    top: 15px;
    right: -35px;
    background: #f4b518;
    color: black;
    padding: 5px 35px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.schedule-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 25px 20px 15px;
    position: relative;
    overflow: hidden;
}

.schedule-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #18cbf4, #f4b518);
}

.day-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.day-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18cbf4, #0a9fc4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(24, 203, 244, 0.4);
}

.schedule-body {
    padding: 25px;
    flex-grow: 1;
}

.schedule-footer {
    padding: 20px 25px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.primary-btn {
    flex: 1;
    background: linear-gradient(135deg, #18cbf4, #0a9fc4);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #0a9fc4, #18cbf4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 203, 244, 0.4);
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #f0f9ff;
    transform: scale(1.05);
}

.calendar-day.active {
    background: linear-gradient(135deg, #18cbf4, #0a9fc4);
    color: white;
    box-shadow: 0 5px 15px rgba(24, 203, 244, 0.4);
}

.calendar-day.has-schedule {
    position: relative;
}

.calendar-day.has-schedule::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f4b518;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #18cbf4, #f4b518);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #18cbf4;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(24, 203, 244, 0.2);
}

/* Filter Badges */
.filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-badge:hover {
    border-color: #18cbf4;
    transform: translateY(-2px);
}

.filter-badge.active {
    background: #18cbf4;
    color: white;
    border-color: #18cbf4;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f4b518;
    color: black;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #18cbf4;
    color: white;
    transform: rotate(90deg);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .schedule-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .schedule-card:hover {
        transform: none;
    }
}
