/* 
 * Jadwal Dokter - Premium UI Styles
 * Refactored into a separate file for better maintenance and performance.
 */

:root {
    --primary-gradient: linear-gradient(135deg, #4b9db6 0%, #347a8f 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --skeleton-bg: #e2e8f0;
}

body {
    background-color: #f8fafc;
}

/* Header & Filters */
.filter-header {
    background: var(--primary-gradient);
    padding: 2rem 0;
    margin-bottom: 2rem;
    color: white;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: var(--shadow-md);
}

#filter-container {
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Card Design */
.doctor-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.doctor-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8fafc;
}

.doctor-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.specialization-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Schedule Table */
.schedule-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-collapse: collapse !important;
}

.schedule-table th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid #cbd5e1;
    font-weight: 800;
    padding: 12px 8px;
}

.schedule-table td {
    background: #fff;
    color: #1e293b;
    font-weight: 600;
    height: 45px;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
}

/* Mobile Specific */
@media screen and (max-width: 765px) {
    .filter-header {
        padding: 1.5rem 0;
        border-radius: 0;
    }

    .sticky-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 10px 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 0 !important;
        z-index: 1100;
    }

    .sticky-mobile .form-group {
        margin-bottom: 8px;
    }

    .sticky-mobile label {
        display: none;
    }

    #tbjadwal, #tbresponsiveformobile {
        padding-top: 10px;
    }

    .doctor-name {
        font-size: 1.1rem;
    }
    
    .select2-container--bootstrap-5 .select2-selection {
        font-size: 16px !important;
    }
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 250px;
    margin-bottom: 25px;
    border-radius: 15px;
    background: white;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.skeleton-img {
    width: 20%;
    height: 100%;
    border-radius: 10px;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-title { height: 30px; width: 40%; }
.skeleton-text { height: 20px; width: 30%; }
.skeleton-table { height: 100px; width: 100%; }

@media screen and (max-width: 765px) {
    .skeleton-card {
        flex-direction: column;
        height: 450px;
        align-items: center;
    }
    .skeleton-img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }
}
