body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.loading-overlay.active {
    display: flex;
}

.loading-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.hero-section {
    background: linear-gradient(135deg, #f76707 0%, #d9480f 100%);
    color: white;
    padding: 3rem 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 2rem;
}

.cursor-pointer {
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #fff2e6;
    color: #f76707;
}

.list-group-item input:checked+span {
    font-weight: 700;
    color: #f76707 !important;
}

.doc-card-horizontal {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.doc-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #f76707;
}

.doc-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.doc-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #fff2e6;
    color: #f76707;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    flex-shrink: 0;
    margin: 0 auto;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.doc-info h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d273b;
    line-height: 1.3;
}

.doc-poli {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f76707;
    display: inline-flex;
    align-items: center;
    background: #fff2e6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #ffe8d6;
}

.doc-schedule {
    flex-grow: 1;
}

.doc-schedule-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #929dab;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.jadwal-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #4b5563;
    background: #f8f9fa;
    border: 1px solid #e6e8eb;
    margin-bottom: 0.3rem;
    margin-right: 0.3rem;
}

.time-radio {
    display: none;
}

.time-label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #4b5563;
    background: white;
    font-weight: 500;
}

.time-label:hover {
    background: #fff2e6;
    border-color: #f76707;
}

.time-radio:checked+.time-label {
    background: #f76707;
    border-color: #f76707;
    color: white;
    box-shadow: 0 2px 6px rgba(247, 103, 7, 0.3);
}

#timePickerInput {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

#timePickerInput::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
    width: 24px;
    height: 24px;
}

#timePickerInput:focus {
    border-color: #f76707;
    box-shadow: 0 0 0 0.2rem rgba(247, 103, 7, 0.25);
}

.btn-booking {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem;
    letter-spacing: 0.3px;
    width: 100%;
    transition: all 0.2s;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pagination-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    background: white;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-btn:hover {
    background: #fff2e6;
    border-color: #f76707;
    color: #f76707;
}

.pagination-btn.active {
    background: #f76707;
    border-color: #f76707;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-info {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.flatpickr-day.is-full {
    position: relative;
    opacity: 0.8 !important;
    background-color: #fdf2f2 !important;
    border-color: #fdf2f2 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    color: #a1aab5 !important;
}

.full-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 900;
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 4px;
    padding: 2px 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .doc-card-horizontal .card-body {
        padding: 1rem;
    }

    .doc-card-horizontal .border-start {
        border-left: 0 !important;
        padding-left: 0 !important;
        margin-top: 1rem;
    }

    .doc-card-horizontal .col-auto.text-center {
        min-width: 100% !important;
    }

    .doc-avatar {
        width: 72px;
        height: 72px;
    }

    .pagination-info {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .container-xl {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    #searchDoctor {
        font-size: 1rem;
    }
}