/* =======================================
   Schedule/Jadwal Styles
   Untuk: index.php (public), admin jadwal management
   ======================================= */

/* SCHEDULE SECTION - PUBLIC */
.schedule-section {
    background: #f0f7ff;
    padding: 40px 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.schedule-section h2 {
    color: #2c5033;
    margin-bottom: 25px;
    font-size: 24px;
}

.schedule-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.schedule-block {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-block h3 {
    color: #2c5033;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-block h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

.schedule-block.prestasi {
    border-left-color: #764ba2;
}

.schedule-block.prestasi h3::before {
    background: #764ba2;
}

.schedule-list {
    list-style: none;
    padding: 0;
}

.schedule-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: start;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-date {
    background: #667eea;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    min-width: 100px;
}

.schedule-block.prestasi .schedule-date {
    background: #764ba2;
}

.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-name {
    font-weight: 600;
    color: #2c3e50;
}

.schedule-description {
    font-size: 13px;
    color: #666;
}

/* ADMIN SCHEDULE MANAGEMENT */
.schedule-admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.schedule-admin-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.schedule-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.schedule-table th {
    background: #34495e;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.schedule-table tr:hover {
    background: #f9f9f9;
}

.jalur-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.jalur-reguler {
    background: #667eea;
}

.jalur-prestasi {
    background: #764ba2;
}

.status-aktif {
    background: #27ae60;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-nonaktif {
    background: #95a5a6;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* MODAL - Add/Edit Schedule */
.schedule-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.schedule-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
}

.schedule-modal-header {
    margin-bottom: 20px;
}

.schedule-modal-header h3 {
    color: #2c3e50;
    margin: 0;
}

.schedule-form-group {
    margin-bottom: 15px;
}

.schedule-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.schedule-form-group input,
.schedule-form-group select,
.schedule-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.schedule-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.schedule-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-save-schedule {
    padding: 10px 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-save-schedule:hover {
    background: #229954;
}

.btn-cancel-schedule {
    padding: 10px 20px;
    background: #95a5a6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel-schedule:hover {
    background: #7f8c8d;
}

.btn-add-schedule {
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-add-schedule:hover {
    background: #2980b9;
}

.btn-edit-schedule {
    padding: 6px 12px;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.btn-edit-schedule:hover {
    background: #e67e22;
}

.btn-delete-schedule {
    padding: 6px 12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.btn-delete-schedule:hover {
    background: #c0392b;
}

.btn-toggle-schedule {
    padding: 6px 12px;
    background: #16a085;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.btn-toggle-schedule:hover {
    background: #138d75;
}

.schedule-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .schedule-container {
        grid-template-columns: 1fr;
    }

    .schedule-filters {
        grid-template-columns: 1fr;
    }

    .schedule-section {
        padding: 20px;
    }

    .schedule-block {
        padding: 15px;
    }

    .schedule-modal-content {
        max-width: 95%;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .schedule-date {
        min-width: auto;
    }

    .schedule-table {
        font-size: 12px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px;
    }
}
