/* ============================================
   JADWAL PAGE - INTERNATIONAL STANDARD
   Modern, Professional, Modular Design
   ============================================ */

:root {
    --primary-green: #2D6A4F;
    --primary-dark: #1B4332;
    --accent-gold: #D4AF37;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-container {
    margin-bottom: 30px;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 50%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    color: #10b981;
    font-size: 14px;
    font-weight: 500;
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.scroll-hint i {
    font-size: 18px;
    animation: scrollArrow 1.5s ease-in-out infinite;
}

.scroll-hint i:first-child {
    animation-direction: alternate;
}

.scroll-hint i:last-child {
    animation-direction: alternate-reverse;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes scrollArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 1.2rem;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 55px !important;
    border: 2px solid #E0E0E0 !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    background: var(--white) !important;
    box-shadow: var(--shadow-sm) !important;
}

.search-box input:focus {
    outline: none !important;
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1) !important;
}

.search-box input::placeholder {
    color: #999;
}

/* Search result counter */
.search-result {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-result.active {
    color: var(--primary-green);
    font-weight: 500;
}

/* ============================================
   TABLE LAYOUT
   ============================================ */
.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.jadwal-table {
    width: 100%;
    border-collapse: collapse;
}

.jadwal-table thead {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.jadwal-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.jadwal-table tbody tr {
    border-bottom: 1px solid #E0E0E0;
    transition: var(--transition);
}

.jadwal-table tbody tr:hover {
    background: #F8F9FA;
}

.jadwal-table tbody tr:last-child {
    border-bottom: none;
}

.jadwal-table td {
    padding: 15px;
    vertical-align: top;
}

.table-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 5px 0 0 0;
    line-height: 1.4;
}

/* ============================================
   JADWAL SECTION
   ============================================ */
.jadwal-section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Mobile Table - Horizontal scroll with wider Kegiatan column */
    .table-container {
        overflow-x: auto;
    }
    
    .jadwal-table {
        font-size: 0.9rem;
    }
    
    .jadwal-table th,
    .jadwal-table td {
        padding: 10px;
        white-space: nowrap;
    }
    
    /* Force Kegiatan column to be 2x wider on mobile */
    .jadwal-table th:nth-child(3),
    .jadwal-table td:nth-child(3) {
        min-width: 400px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
