/* ================== SCHEDULE ================== */
.schedule-container {
    max-width: 700px;
    margin: 0 auto;
}

.schedule-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.date-picker {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.date-picker .bi {
    color: #888;
}

.date-list {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.date-picker.active .date-list {
    display: flex;
}

.date-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
}

.date-btn.active {
    background-color: #f0932b;
    color: #fff;
}

.date-options {
    display: none;
    flex-wrap: wrap;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin-top: 10px;
}

.date-option {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 5px;
    cursor: pointer;
    font-size: 14px;
}

.date-option:hover {
    background-color: #f0932b;
    color: white;
}

.day-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.day-header:hover {
    background-color: #f9f9f9;
}

.day-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.day-header .bi-chevron-up {
    transition: transform 0.3s ease-in-out;
}

.day-header.collapsed .bi-chevron-up {
    transform: rotate(180deg);
}

.schedule-details {
    padding: 0 1rem 1rem 1rem;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.schedule-details.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.session {
    padding-left: 0.5rem;
    border-left: 3px solid #f0f0f0;
    margin-bottom: 1rem;
}

.session-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.session-title .bi {
    color: #ef4444;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    font-size: 0.95rem;
}

/* ================== BUTTON BOOK ================== */
.btn-book {
    background-color: #f0932b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-book:hover {
    background-color: #e67e22;
}

/* ================== DOCTOR PROFILE ================== */
.doctor-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.doctor-photo img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.doctor-info {
    flex-grow: 1;
}

.doctor-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding-left: 10px;
    color: #2c3e50;
}

.doctor-info h4 {
    margin: 0;
    font-size: 18px;
    color: #ef4444;
}

.doctor-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.doctor-info .specialty {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 4px 0 0 0;
}

.doctor-info hr {
    border: 0;
    height: 1px;
    background-color: #333333;
    margin: 16px 0;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rating-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.rating-stats .bi-hand-thumbs-up-fill {
    color: #f87171;
    font-size: 1.2rem;
}

.rating-stats .percentage {
    color: #f87171;
    font-weight: 700;
}

.rating-stats .patient-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.rating-stats .patient-link:hover {
    color: #f87171;
}

.booking-stats {
    background-color: #eaf5ff;
    color: #7f8c8d;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
}

.booking-stats .count {
    color: #f87171;
    font-weight: 700;
}

@media (max-width: 600px) {
    .doctor-profile {
        flex-direction: column;
        text-align: center;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }
}

/* ================== DOCTOR CARD ================== */
.main-content-area {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid #dee2e6;
}

.filters {
    flex: 0 0 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    align-self: flex-start;
    border: 1px solid #dee2e6;
}

.filters h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filters li {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.filters li.active {
    background-color: #ef4444;
    color: white;
    font-weight: bold;
}

.doctor-card,
.doctor-card-jadwal {
    display: flex;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    align-items: flex-start;
    flex-wrap: wrap; /* biar responsif kalau sempit */
}

.doctor-card {
    border-left: 5px solid #ef4444;
}

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

.doctor-card img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
}

.doctor-details {
    flex: 1;
    min-width: 200px;
}

.doctor-details h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-left: 10px;
}

.info-schedule {
    background-color: #e0f2fe;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 10px;
    display: inline-block;
    color: #ef4444;
    font-size: 13px;
    font-weight: bold;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 15px;
    margin: 10px 0 10px 10px;
}

.info-item i {
    font-size: 1rem;
    min-width: 20px; /* supaya semua icon punya lebar konsisten */
    text-align: center;
    margin-top: 2px; /* kalau perlu geser turun dikit biar lebih pas */
}

.info-item div {
    flex: 1; /* biar isi text fleksibel */
}

.info-item .bi,
.info-item .fa-solid {
    font-size: 20px;
    color: #555;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 120px;
    text-align: right;
}

/* Responsive doctor card */
@media (max-width: 768px) {
    .doctor-card {
        flex-wrap: wrap; /* jangan ubah jadi kolom penuh */
        justify-content: center;
    }

    .booking-actions {
        text-align: center;
        min-width: 80%;
        margin-top: 10px;
    }

    .btn-book {
        width: 100%; /* tombol ikut kecil pas layar kecil */
        max-width: 220px;
    }
}
