
.color_14B8A6 {
    color: #14B8A6 !important;
}
.color_FBBF24 {
    color: #FBBF24 !important;
}
.color_2D59F0 {
    color: #2D59F0 !important;
}
/* ===== کانتینر اصلی ===== */
.doctors-container {
    max-width: 1024px;
    margin: 0 auto;
}

/* ===== کارت دکتر ===== */
.doctor-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

    .doctor-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

/* ===== ساختار داخلی کارت ===== */
.doctor-card-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

/* ===== بخش اطلاعات دکتر (سمت راست) ===== */
.doctor-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

/* ===== تصویر دکتر ===== */
.doctor-avatar {
    position: relative;
    flex-shrink: 0;
}

    .doctor-avatar img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    /* نشانگر آنلاین */
    .doctor-avatar.online::before {
        content: '';
        position: absolute;
        top: 2px;
        right: 2px;
        width: 16px;
        height: 16px;
        background-color: #10b981;
        border: 3px solid #ffffff;
        border-radius: 50%;
        z-index: 10;
    }

    /* انیمیشن نشانگر */
    .doctor-avatar.online::after {
        content: '';
        position: absolute;
        top: 2px;
        right: 2px;
        width: 16px;
        height: 16px;
        background-color: #10b981;
        border-radius: 50%;
        animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        opacity: 0;
    }

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ===== جزئیات دکتر ===== */
.doctor-details {
    flex: 1;
    text-align: right;
}

.doctor-name {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 4px;
}

.doctor-specialty {
    font-size: 14px;
    color: #9ca3af;
}

/* ===== آمار - این قسمت در HTML نباید استفاده شود ===== */
.doctor-stats {
    display: none;
}

/* ===== بخش سمت چپ: آمار + دکمه ===== */
.doctor-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 200px;
}

    /* ===== آمار در ستون (بالای دکمه) ===== */
    .doctor-action .doctor-stats {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .doctor-action .stat-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        justify-content: end;
        
    }

/* ===== ردیف نوبت و دکمه ===== */
.action-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.stat-icon {
    font-size: 20px;
    line-height: 1;
}

.stat-value {
    font-weight: 700;
}

.rating-icon {
    color: #fbbf24;
}

.recommend-icon {
    color: #10b981;
}

.appointment-icon {
    color: #6366f1;
}

/* ===== باکس نوبت خالی ===== */
.next-appointment {
    display: inline-flex;
    flex-direction: column;
 
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
}
next-appointment-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.next-appointment-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
    white-space: nowrap;
}

.next-appointment-date {
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
}

/* ===== دکمه نوبت‌گیری ===== */
.btn-appointment {
    background-color: #6366f1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    white-space: nowrap;
}

    .btn-appointment:hover {
        background-color: #4f46e5;
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
        transform: translateY(-1px);
    }

    .btn-appointment:active {
        transform: translateY(0);
    }
.city-icon {
    fill: rgb(71, 84, 103);
    width: 16px;
    min-width: 16px;
    max-width: 16px;
    height: 16px;
    min-height: 16px;
    max-height: 16px;
}

.doctor-city{
    margin-top:4px;
}
/* ===== ریسپانسیو - تبلت ===== */
@media (max-width: 1024px) {
    .doctors-container {
        max-width: 768px;
        padding: 0 16px;
    }
}

/* ===== ریسپانسیو - موبایل ===== */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .doctor-card {
        padding: 16px;
        border-radius: 16px;
    }

    .doctor-card-inner {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .doctor-info {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .doctor-avatar img {
        width: 56px;
        height: 56px;
    }

    .doctor-avatar.online::before,
    .doctor-avatar.online::after {
        width: 12px;
        height: 12px;
        border-width: 2px;
        top: 0;
        right: 0;
    }

    .doctor-name {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .doctor-specialty,
    .doctor-city {
        font-size: 12px;
        margin: 2px 0;
    }

       

        .doctor-action {
            min-width: 140px;
            max-width: 180px;
        }

        .doctor-action .doctor-stats {
            gap: 6px;
        }

    .stat-item {
        font-size: 11px;
    }

    .stat-icon {
        font-size: 14px;
    }

    .stat-value {
        font-size: 11px;
    }

    .stat-label {
        font-size: 11px;
    }

    .action-row {
        flex-direction: row;
        gap: 8px;
        margin-top: 8px;
    }

    .next-appointment {
        padding: 6px 12px;
        font-size: 10px;
    }

    .next-appointment-label {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .next-appointment-date {
        font-size: 11px;
    }

    .btn-appointment {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== ریسپانسیو - موبایل کوچک ===== */
@media (max-width: 480px) {
    .doctor-card {
        padding: 12px;
    }

    .doctor-card-inner {
        gap: 8px;
    }

    .doctor-avatar img {
        width: 48px;
        height: 48px;
    }

    .doctor-avatar.online::before,
    .doctor-avatar.online::after {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .doctor-name {
        font-size: 14px;
    }

    .doctor-specialty,
    .doctor-city {
        font-size: 11px;
    }

  

    .doctor-action {
        min-width: 120px;
        max-width: 160px;
    }

        .doctor-action .doctor-stats {
            gap: 5px;
        }

    .stat-item {
        font-size: 10px;
    }

    .stat-icon {
        font-size: 12px;
    }

    .stat-value {
        font-size: 10px;
    }

    .stat-label {
        font-size: 10px;
    }

    .action-row {
        gap: 6px;
        margin-top: 6px;
    }

    .next-appointment {
        padding: 5px 10px;
    }

    .next-appointment-label {
        font-size: 8px;
    }

    .next-appointment-date {
        font-size: 10px;
    }

    .btn-appointment {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== انیمیشن ورود ===== */
.doctor-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== حالت فوکوس ===== */
.doctor-card:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.btn-appointment:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== اسکرول نرم ===== */
html {
    scroll-behavior: smooth;
}
