/* =============================================== */
/* استايل‌هاي اختصاصي صفحه ليست مشاوران آوا */
/* =============================================== */

/* کانتينر اصلي */
.doctors-page .container.py-4.position-relative {
    margin-top: 50px;
    font-family: inherit;
}

/* =============================================== */
/* هدر مدرن */
/* =============================================== */
.doctors-page .modern-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0 1rem 0;
    position: relative;
    margin-bottom: 2rem;
    border-radius: 0 0 25px 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.doctors-page .modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.doctors-page .header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.doctors-page .header-main-title {
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.doctors-page .header-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.doctors-page .header-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.doctors-page .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.doctors-page .legend-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.doctors-page .legend-icon.available {
    background: #22c55e;
}

.doctors-page .legend-icon.busy {
    background: #f59e0b;
}

.doctors-page .legend-icon.offline {
    background: #94a3b8;
}

/* =============================================== */
/* دکمه اطلاع‌رساني */
/* =============================================== */
.doctors-page .info-action-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: doctors-pulse-vibrate 2s infinite;
}

.doctors-page .info-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.5);
    animation: none;
}

.doctors-page .info-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctors-page .info-action-btn:hover::before {
    opacity: 1;
}

.doctors-page .info-action-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.doctors-page .info-action-btn:hover i {
    transform: rotate(15deg);
}

/* انيميشن لرزشي */
@keyframes doctors-pulse-vibrate {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 12px 25px rgba(102, 126, 234, 0.5);
    }
    70% {
        transform: scale(1.05) translateY(-2px) translateX(3px);
    }
    85% {
        transform: scale(1.05) translateY(-2px) translateX(-3px);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    }
}

/* =============================================== */
/* مودال */
/* =============================================== */
.doctors-page .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: doctors-fadeIn 0.3s ease;
}

.doctors-page .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: doctors-slideUp 0.4s ease;
}

.doctors-page .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 25px 25px 0 0;
    position: relative;
    text-align: center;
}

.doctors-page .modal-header h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.doctors-page .modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 15px;
}

.doctors-page .close-modal {
    position: absolute;
    top: 20px;
    left: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctors-page .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.doctors-page .modal-body {
    padding: 30px;
}

/* انيميشن‌هاي مودال */
@keyframes doctors-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes doctors-slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* =============================================== */
/* گريد روش‌هاي مشاوره */
/* =============================================== */
.doctors-page .methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.doctors-page .method-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.doctors-page .method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctors-page .method-card.turn-0:hover {
    border-color: #10b981;
}

.doctors-page .method-card.turn-1:hover {
    border-color: #3b82f6;
}

.doctors-page .method-card.turn-2:hover {
    border-color: #8b5cf6;
}

.doctors-page .method-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.doctors-page .method-icon.turn-0 {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.doctors-page .method-icon.turn-1 {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.doctors-page .method-icon.turn-2 {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.doctors-page .method-card h4 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.doctors-page .method-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.doctors-page .method-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.doctors-page .method-features li {
    color: #4b5563;
    font-size: 0.9rem;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctors-page .method-features li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* =============================================== */
/* دکمه‌هاي مودال */
/* =============================================== */
.doctors-page .modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.doctors-page .btn-understand {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctors-page .btn-understand:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.doctors-page .btn-close-modal {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #d1d5db;
    padding: 14px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doctors-page .btn-close-modal:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* =============================================== */
/* کارت مشاور بهبود يافته */
/* =============================================== */
.doctors-page .agent-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    display: block;
}

.doctors-page .agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to left, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.doctors-page .agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #c7d2fe;
}

.doctors-page .agent-card:hover::before {
    transform: scaleX(1);
}

.doctors-page .agent-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.doctors-page .agent-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.doctors-page .agent-photo-container {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.doctors-page .agent-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doctors-page .agent-details {
    flex: 1;
    min-width: 0;
}

.doctors-page .agent-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doctors-page .agent-card:hover .agent-name {
    color: #667eea;
}

.doctors-page .agent-expertise {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

/* =============================================== */
/* استايل treatmentarea */
/* =============================================== */
.doctors-page .treatment-area {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 8px 0 5px 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e5e7eb;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.doctors-page .treatment-area:hover {
    background: #e5e7eb;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    max-height: none;
    position: relative;
    z-index: 5;
}

.doctors-page .treatment-area i {
    margin-left: 5px;
    color: #667eea;
}

/* =============================================== */
/* نشان مشاوره */
/* =============================================== */
.doctors-page .consultation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

.doctors-page .consultation-badge.turn-0 {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    border: 2px solid rgba(52, 211, 153, 0.3);
}

.doctors-page .consultation-badge.turn-1 {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    border: 2px solid rgba(96, 165, 250, 0.3);
}

.doctors-page .consultation-badge.turn-2 {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
    border: 2px solid rgba(167, 139, 250, 0.3);
}

.doctors-page .consultation-badge .badge-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.doctors-page .consultation-badge .badge-text {
    font-weight: 700;
    white-space: nowrap;
}

.doctors-page .consultation-badge .badge-description {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-right: 5px;
    white-space: nowrap;
}

/* =============================================== */
/* بخش سمت راست کارت */
/* =============================================== */
.doctors-page .agent-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.doctors-page .agent-code {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
}

.doctors-page .arrow-icon {
    color: #9ca3af;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.doctors-page .agent-card:hover .arrow-icon {
    transform: translateX(-5px);
    color: #667eea;
    background: #e0e7ff;
}

/* =============================================== */
/* وضعيت مشاور */
/* =============================================== */
.doctors-page .status-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.doctors-page .status-badge.available {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.doctors-page .status-badge.busy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.doctors-page .status-badge.offline {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.doctors-page .status-badge i {
    font-size: 1rem;
}

/* =============================================== */
/* جزئيات دسترسي */
/* =============================================== */
.doctors-page .availability-details {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    padding: 4px 10px;
    border-radius: 15px;
    width: fit-content;
}

.doctors-page .availability-details i {
    font-size: 0.75rem;
    color: #3b82f6;
}

/* =============================================== */
/* کارت فيلتر */
/* =============================================== */
.doctors-page .filter-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
}

.doctors-page .filter-header {
    margin-bottom: 24px;
}

.doctors-page .filter-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.doctors-page .filter-title i {
    color: #3b82f6;
}

.doctors-page .filter-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.doctors-page .filter-select {
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 12px;
    font-size: 16px;
    width: 100%;
}

/* =============================================== */
/* فيلتر جنسيت */
/* =============================================== */
.doctors-page .gender-filter {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.doctors-page .gender-option {
    flex: 1;
    position: relative;
}

.doctors-page .filter-radio {
    display: none;
}

.doctors-page .filter-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 17px;
    background: white;
}

.doctors-page .filter-radio:checked + .filter-label {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.doctors-page .radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.doctors-page .filter-radio:checked + .filter-label .radio-custom {
    border-color: white;
    background: white;
}

.doctors-page .filter-radio:checked + .filter-label .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* =============================================== */
/* آکاردئون */
/* =============================================== */
.doctors-page .accordion-button {
    font-size: 17px;
    padding: 12px 5px;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
}

.doctors-page .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.doctors-page .accordion-body {
    padding: 16px 0 0 0;
}

/* =============================================== */
/* جستجوي تخصص */
/* =============================================== */
.doctors-page .search-container {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 10px;
}

.doctors-page .specialties-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    position: relative;
}

.doctors-page .specialty-item {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    animation: doctors-fadeIn 0.3s ease;
}

.doctors-page .specialty-item:last-child {
    border-bottom: none;
}

.doctors-page .specialty-item.highlight {
    background-color: #f0f9ff;
    border-right: 3px solid #3b82f6;
    padding-right: 8px;
}

.doctors-page .specialty-item.hidden {
    display: none !important;
}

.doctors-page .filter-checkbox {
    margin-bottom: 12px;
    padding-right: 8px;
}

.doctors-page .filter-checkbox .form-check-input {
    margin-left: 8px;
    margin-top: 0.2em;
}

.doctors-page .filter-checkbox .form-check-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

/* اسکرول بار */
.doctors-page .specialties-list-container::-webkit-scrollbar {
    width: 8px;
}

.doctors-page .specialties-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.doctors-page .specialties-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.doctors-page .specialties-list-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* =============================================== */
/* چک‌باکس نوع مشاوره */
/* =============================================== */
.doctors-page .consultation-type-filter .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctors-page .consultation-type-filter .consultation-badge {
    display: inline-flex;
    padding: 4px 12px;
    margin: 0;
}

/* =============================================== */
/* دکمه‌هاي فيلتر */
/* =============================================== */
.doctors-page .filter-actions {
    margin-top: 35px;
}

.doctors-page .btn-apply {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    cursor: pointer;
}

.doctors-page .btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.doctors-page .btn-reset {
    background: white;
    color: #6b7280;
    border: 2px solid #d1d5db;
    padding: 16px;
    border-radius: 15px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.doctors-page .btn-reset:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

/* =============================================== */
/* بخش جستجو */
/* =============================================== */
.doctors-page .search-section {
    margin-bottom: 30px;
}

.doctors-page .search-input-wrapper {
    position: relative;
}

.doctors-page .search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.doctors-page .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.doctors-page .search-button {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.doctors-page .search-input:focus + .search-button {
    color: #3b82f6;
}

/* =============================================== */
/* لودينگ */
/* =============================================== */
.doctors-page .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.doctors-page .loading-overlay .spinner {
    text-align: center;
}

.doctors-page .loading-text {
    color: #3b82f6;
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* =============================================== */
/* پينوشت وضعيت */
/* =============================================== */
.doctors-page .status-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    flex-wrap: wrap;
}

.doctors-page .status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.doctors-page .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.doctors-page .status-dot.available {
    background: #22c55e;
}

.doctors-page .status-dot.busy {
    background: #f59e0b;
}

.doctors-page .status-dot.offline {
    background: #94a3b8;
}

.doctors-page .agent-info-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* فاصله يکسان بين همه آيتم‌ها */
    margin-top: 10px;
}

.doctors-page .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    width: fit-content;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.doctors-page .treatment-item {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    max-width: 100%;
}

.doctors-page .treatment-item .info-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.doctors-page .treatment-item:hover .info-value {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    max-width: none;
}

.doctors-page .consultation-item {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctors-page .consultation-item.turn-1 {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.doctors-page .consultation-item.turn-2 {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.doctors-page .availability-item {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.doctors-page .info-label {
    font-weight: 600;
    opacity: 0.9;
}

.doctors-page .badge-icon {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.doctors-page .badge-text {
    font-weight: 600;
}

.doctors-page .badge-description {
    font-size: 0.75rem;
    opacity: 0.9;
}



/* استايل پايه آيکون‌ها */
.doctors-page .treatment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 30px;
    width: fit-content;
    max-width: 100%;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* استايل اختصاصي براي روانشناسي */
.doctors-page .treatment-item.psychology {
    background: linear-gradient(145deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.doctors-page .treatment-item.psychology i {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* استايل اختصاصي براي حقوقي */
.doctors-page .treatment-item.legal {
    background: linear-gradient(145deg, #2563eb, #1e40af);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.doctors-page .treatment-item.legal i {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* استايل اختصاصي براي مالي */
.doctors-page .treatment-item.financial {
    background: linear-gradient(145deg, #059669, #047857);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(5, 150, 105, 0.4);
}

.doctors-page .treatment-item.financial i {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* استايل اختصاصي براي مشاوره خانواده */
.doctors-page .treatment-item.family {
    background: linear-gradient(145deg, #db2777, #be185d);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(219, 39, 119, 0.4);
}

/* استايل اختصاصي براي کسب و کار */
.doctors-page .treatment-item.business {
    background: linear-gradient(145deg, #ea580c, #c2410c);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.4);
}

/* استايل پيش‌فرض براي ساير موارد */
.doctors-page .treatment-item.default {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(107, 114, 128, 0.4);
}

/* افکت هور براي همه */
.doctors-page .treatment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.3);
}

.doctors-page .treatment-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.doctors-page .treatment-item .info-label {
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.doctors-page .treatment-item .info-value {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.doctors-page .treatment-item:hover .info-value {
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    max-width: 250px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
}


/* =============================================== */
/* رسپانسيو */
/* =============================================== */
@media (max-width: 991px) {
    .doctors-page .filter-card {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .doctors-page .gender-filter {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .doctors-page .modern-page-header {
        padding: 1.5rem 0 2.5rem 0;
        border-radius: 0 0 16px 16px;
    }

    .doctors-page .header-main-title {
        font-size: 1.8rem;
    }

    .doctors-page .header-subtitle {
        font-size: 1rem;
    }

    .doctors-page .header-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doctors-page .legend-item {
        align-self: flex-start;
    }

    .doctors-page .agent-card-content {
        display: revert;
        flex-direction: column;
        align-items: flex-start;
    }   
    
    
    .doctors-page .agent-side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .doctors-page .consultation-badge .badge-description {
        display: none;
    }

    .doctors-page .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .doctors-page .modal-header {
        padding: 25px 20px;
    }
    
    .doctors-page .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .doctors-page .modal-body {
        padding: 20px;
    }
    
    .doctors-page .modal-actions {
        flex-direction: column;
    }
    
    .doctors-page .info-action-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .doctors-page .status-footer {
        flex-direction: column;
        gap: 15px;
    }

    .doctors-page .specialties-list-container {
        max-height: 300px;
    }
    
    .doctors-page .agent-name {        
        display: ruby;       
    }
    
    .doctors-page .agent-card-content {
        display: flex; /* revert رو بردار و flex نگه دار */        
    }
    .doctors-page .agent-info {       
        gap: 15px;
        flex: 1;
        min-width: 0;
    }
    .doctors-page .agent-details {
        text-align: right; /* راست‌چين نگه دار */
        flex: 1;
    }
    .doctors-page .agent-photo-container {
        flex-shrink: 0; /* عکس کوچيک نشه /
        width: 60px; / اندازه کوچيکتر براي موبايل */
        height: 60px;
    }
    .doctors-page .agent-name {
       font-size: 1.1rem; /* فونت کوچيکتر */
    }
    .doctors-page .agent-expertise {
       font-size: 0.9rem;
    }
    .doctors-page .agent-info-footer {
       flex-direction: column; /* اگر لازم، اما مي‌توني row نگه داري */
    }
    .doctors-page .agent-side {
        flex-shrink: 0; /* جلوگيري از wrap زودهنگام */
        align-items: flex-end;
    }
 }

@media (max-width: 576px) {
    .doctors-page .agent-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .doctors-page .agent-details {
        text-align: center;
    }
    
    .doctors-page .treatment-area {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .doctors-page .availability-details {
        margin: 8px auto 0;
    }

    .doctors-page .consultation-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .doctors-page .agent-card-content {
            flex-direction: column;
            align-items: flex-start;
        }
    .doctors-page .agent-info {
        flex-direction: row; /* همچنان row نگه دار */
        width: 100%;
    }
    .doctors-page .agent-side {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}

