﻿
/* جعبه جستجوی پزشکان */
.doctor-search-container {
    padding: 2rem 0;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-form .input-group {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 103, 205, 0.2);
    align-items: stretch; /* جلوگیری از فشرده شدن ارتفاع */
}

.search-input {
    border: 2px solid #0067CD;
    border-left: none;
    border-radius: 0 30px 30px 0 !important; /* گردی فقط سمت راست */
}

    .search-input:focus {
        box-shadow: none;
        border-color: #0067CD;
    }

.btn-search, .btn-location {
    background: #0067CD;
    color: white;
    border: none;
    padding: 0 1.5rem;
    transition: all 0.3s;
}

    .btn-search:hover, .btn-location:hover {
        background: #005bb7;
    }

.btn-location {
    border-right: 2px solid white;
}

/* آیکون‌ها */
.bi-search, .bi-geo-alt {
    font-size: 1.2rem;
}


.city-tree {
    max-height: 400px;
    overflow-y: auto;
}

.city-item {
    border-bottom: 1px solid #eee;
}

.city-subitem {
    transition: all 0.3s;
}

    .city-subitem:hover {
        background-color: #f5f5f5;
        color: #118B50;
    }

.toggle-city:hover {
    background-color: #f8f9fa;
}

/* اسکرول بار زیبا */
.city-tree::-webkit-scrollbar {
    width: 8px;
}

.city-tree::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.city-tree::-webkit-scrollbar-thumb {
    background: #118B50;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }

    .city-tree {
        max-height: 300px;
    }
}



/* استایل‌های جستجوی هوشمند */
.highlight {
    background-color: #FFD700;
    padding: 2px 0;
    border-radius: 3px;
    font-weight: bold;
    color: #000;
}

.search-suggestions {
    position: absolute;
    z-index: 1000;
    width: calc(100% - 40px);
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: right;
    direction: rtl;
}

.search-suggestion-item {
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

    .search-suggestion-item:hover {
        background-color: #f0f8ff;
        color: #118B50;
    }

/* انیمیشن‌ها */
.city-item, .province-header {
    transition: all 0.3s ease;
}

/* استایل‌های راست‌چین پیشرفته */
.province-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.city-list {
    padding: 0 20px;
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.city-subitem {
    padding: 8px 15px;
    border-bottom: 1px dashed #e0e0e0;
    cursor: pointer;
}

    .city-subitem:hover {
        background-color: #f0f8ff;
    }

/* استایل‌های مخصوص نسخه راست‌چین */
.dir-rtl .bi-chevron-left {
    transform: rotate(180deg);
}

/*استایل‌های دکمه‌ها*/
.city-chip {
    transition: all 0.3s;
    border-width: 1.5px;
}

    .city-chip:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
/* این استیل را به CSS خود اضافه کنید */
.modal.fade {
    opacity: 1 !important;
}

.modal-backdrop.fade {
    opacity: 0.5 !important;
}

/*////////////////////////////image//////////////////*/
.service-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

.svg-icon {
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background: rgba(78, 115, 223, 0.1);
}

.service-card:nth-child(2) .svg-icon {
    background: rgba(28, 200, 138, 0.1);
}

.service-card:nth-child(3) .svg-icon {
    background: rgba(246, 194, 62, 0.1);
}

.rounded-lg {
    border-radius: 12px !important;
}

.hover-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


/* استایل‌های عمومی */
.body-dr {
    background-color: #f8f9fa;
    color: #333;
}

.doctor-profile-container {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 15px;
}

/* کارت پزشک */
.doctor-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .doctor-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

/* بخش تصویر پزشک - مربع */
.doctor-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* ایجاد مربع کامل */
    overflow: hidden;
}

.doctor-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* بخش اطلاعات پزشک */
.doctor-info {
    padding: 1rem;
    text-align: right;
    direction: rtl;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.doctor-specialty {
    color: #0067CD;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.doctor-location {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.85rem;
}

.location-icon {
    margin-left: 5px;
    color: #e74c3c;
    font-size: 0.9rem;
}

.doctor-contact {
    margin: 0.5rem 0;
}

.doctor-phone {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
}

.phone-icon {
    margin-left: 5px;
    color: #28a745;
    font-size: 0.9rem;
}

.call-btn {
    margin-right: 8px;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.8rem;
}

    .call-btn:hover {
        background: #28a745;
        color: white;
    }

/* بخش امتیاز */
.doctor-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.doctor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stars {
    color: #f39c12;
    margin-left: 3px;
    font-size: 0.9rem;
}

/* دکمه نوبت‌دهی */
.appointment-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: #0067CD;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
    margin-top: 0.8rem;
}

    .appointment-btn:hover {
        background: #005bb7;
    }

/* تنظیمات شبکه‌بندی */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 10px;
    padding-left: 10px;
}

.col-lg-4 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

    .pagination ul {
        display: flex;
        list-style: none;
        padding: 0;
    }

    .pagination li {
        margin: 0 5px;
    }

    .pagination a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #f8f9fa;
        color: #555;
        text-decoration: none;
        transition: all 0.3s;
    }

        .pagination a:hover,
        .pagination .is-active {
            background: #0067CD;
            color: white;
        }

    .pagination .disabled {
        pointer-events: none;
        opacity: 0.5;
    }

/* پیغام عدم وجود پزشک */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-info {
    background-color: #e7f5ff;
    color: #1864ab;
    border: 1px solid #a5d8ff;
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .doctor-name {
        font-size: 1.1rem;
    }

    .doctor-info {
        padding: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}