/* Doctor Schedule Page Styles */
.doctor-page-header {
    background: #1e4b9a;
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
    background-image: linear-gradient(135deg, #1e4b9a 0%, #0d2f6d 100%);
}

/* Filter Bar */
.doctor-filter-container {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.specialty-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tag-nav-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eee;
    color: #1e4b9a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: all 0.2s;
}

.tag-nav-btn:hover {
    background: #1e4b9a;
    color: white;
}

.tag-scroll-area {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
}

.tag-scroll-area::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    white-space: nowrap;
    border: 1px solid #eee;
    background: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e4b9a;
    color: white;
    box-shadow: 0 4px 10px rgba(30, 75, 154, 0.3);
}

.search-doctor-container {
    width: 100%;
}

.search-doctor-input {
    border: 1px solid #eee;
    border-radius: 30px;
    padding: 10px 25px;
    width: 100%;
    outline: none;
    font-size: 14px;
    background: #f9fbff;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.doctor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctor-header {
    padding: 25px;
    text-align: center;
    background: #f9fbff;
    border-bottom: 1px solid #eee;
}

.doctor-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #ccc;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: #1e4b9a;
    font-weight: 600;
    font-size: 0.9rem;
    background: #eef4ff;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.doctor-body {
    padding: 20px;
    flex-grow: 1;
}

.schedule-table {
    width: 100%;
    font-size: 0.9rem;
}

.schedule-table th {
    text-align: left;
    color: #888;
    font-weight: 500;
    padding-bottom: 10px;
    width: 40%;
}

.schedule-table td {
    padding-bottom: 8px;
    color: #444;
    font-weight: 600;
}

.schedule-alert {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-appoint {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1e4b9a;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    /* Push to bottom */
    transition: background 0.3s;
}

.btn-appoint:hover {
    background: #163a7a;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .doctor-filter-container {
        border-radius: 20px;
        padding: 15px;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* =========================================
   DOCTOR DETAIL PAGE STYLES (NEW)
   ========================================= */

.details-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    min-height: 600px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    margin-bottom: 25px;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.back-link:hover {
    color: #1e4b9a;
}

.back-link i {
    margin-right: 8px;
}

.details-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

@media (min-width: 900px) {
    .details-card {
        flex-direction: row;
        min-height: 500px;
    }
}

/* Sidebar (Left) */
.details-sidebar {
    background: linear-gradient(to bottom, #f8faff, #ffffff);
    padding: 50px 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 900px) {
    .details-sidebar {
        width: 380px;
        /* Fixed width sidebar */
        flex-shrink: 0;
        border-right: 1px solid #eee;
        border-bottom: none;
        justify-content: flex-start;
    }
}

.details-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 6px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #eee;
}

.details-name {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.details-specialty {
    color: #1e4b9a;
    font-weight: 700;
    background: #eef4ff;
    padding: 8px 18px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.details-polyclinic {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    transition: all 0.3s ease;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom if flex stretch */
}

.btn-whatsapp-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
    color: white;
    background: linear-gradient(135deg, #20bd5a 0%, #0e7d70 100%);
}

/* Content (Right) */
.details-content {
    padding: 40px;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .details-content {
        padding: 30px 20px;
    }
}

.details-section {
    margin-bottom: 40px;
}

.details-section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: block;
    position: relative;
}

.details-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 3px;
    background: #1e4b9a;
    border-radius: 2px;
}

.details-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-empty {
    font-style: italic;
    color: #999;
}

/* Schedule Table */
.details-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.details-schedule-table th {
    text-align: left;
    color: #888;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 15px;
}

.details-schedule-table td {
    background: #fdfdfd;
    padding: 18px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.details-schedule-table tr:hover td {
    background: #fff;
    transform: translateX(5px);
    border-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: #1e4b9a;
}

.day-cell {
    width: 35%;
}

.details-note {
    background: #fff8e1;
    color: #856404;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 30px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid #ffc107;
}