/* استايل سايدبار فيلتر */
.filter-sidebar {
    /*background: white;*/
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    padding: 10px 10px 10px 5px;
    position: sticky;
    top: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.filter-title {
    font-size: 19px;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    color: #333;
}

.filter-subtitle {
    font-size: 16px;
    font-weight: 600;
    display: block;
    color: #525252;
    margin-bottom: 12px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-select {
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 12px;
    font-size: 16px;
}

/* استايل راديو جنسيت */
.gender-filter {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.gender-option {
    flex: 1;
    position: relative;
}

.filter-radio {
    display: none;
}

.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;
}

.filter-radio:checked + .filter-label {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-radio:checked + .filter-label .radio-custom {
    border-color: white;
    background: white;
}

.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%);
}

/* استايل آکاردئون */
.accordion-button {
    /*font-weight: 600;*/
    font-size: 17px;
    padding: 12px 5px;
    border: none;
    background: none;
}

.accordion-button:not(.collapsed) {
    /*background: none;*/
    box-shadow: none;
}

.accordion-body {
    padding: 16px 0 0 0;
}

/* استايل چک باکس ها */
.filter-checkbox {
    margin-bottom: 12px;
    padding-right: 8px;
}

.filter-checkbox .form-check-input {
    margin-left: 8px;
    margin-top: 0.2em;
}

.filter-checkbox .form-check-label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

/* دکمه هاي فيلتر */
.filter-actions {
    margin-top: 24px;
}

/* استايل ليست مشاوران */
.agent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: white;
}

.agent-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-texts {
    display: flex;
    flex-direction: column;
}

.agent-texts span {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.agent-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-code {
    color: #666;
    font-size: 14px;
}

.arrow-icon {
    color: #999;
}

.no-result {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.minimal-page-header {
    background: linear-gradient(135deg, #6063f2 0%, #61f2ae 100%);    
    padding: 1.5rem 0 2rem 0;
    position: relative;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    margin-bottom: 0.8rem;
}

.header-tip {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    color: inherit;
}

.header-wave svg {
    width: 100%;
    height: 100%;
}

/* رسپانسيو */
@media (max-width: 768px) {
    .minimal-page-header {
        padding: 1.2rem 0 1.8rem 0;
    }
    
    .header-badge {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .header-tip {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* استايل‌هاي جستجو */
.search-container {
    position: sticky;
    top: 0;
    z-index: 10;
   /* background: white;*/
    padding-top: 10px;
}

.specialties-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    position: relative;
}

.specialty-item {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.specialty-item:last-child {
    border-bottom: none;
}

.specialty-item.highlight {
    background-color: #f0f9ff;
    border-right: 3px solid #3b82f6;
    padding-right: 8px;
}

.specialty-item.hidden {
    display: none !important;
}

/* استايل فيلترهاي سريع */
.quick-filters {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.quick-filter.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* اسکرول بار زيبا */
.specialties-list-container::-webkit-scrollbar {
    width: 8px;
}

.specialties-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.specialties-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.specialties-list-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

 /* استايل‌هاي جديد */
    .status-badge {
        position: absolute;
        /*top: 2px;*/
        right: 10px;
        width: 32px;
        height: 32px;
        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);
    }

    .status-badge.available {
        background: linear-gradient(135deg, #4ade80, #22c55e);
        color: white;
    }

    .status-badge.busy {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }

    .status-badge.offline {
        background: linear-gradient(135deg, #94a3b8, #64748b);
        color: white;
    }

    .availability-type {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        margin-top: 8px;
    }

    .availability-type.appointment {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
        border: 1px solid rgba(59, 130, 246, 0.3);
    }

    .availability-type.online {
        background: rgba(34, 197, 94, 0.1);
        color: #16a34a;
        border: 1px solid rgba(34, 197, 94, 0.3);
    }

    .availability-type.both {
        background: rgba(168, 85, 247, 0.1);
        color: #8b5cf6;
        border: 1px solid rgba(168, 85, 247, 0.3);
    }
    
    .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);
    }

    .consultation-badge.turn-0 {
        background: linear-gradient(135deg, #34d399, #10b981);
        color: white;
        border: 2px solid rgba(52, 211, 153, 0.3);
    }

    .consultation-badge.turn-1 {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
        color: white;
        border: 2px solid rgba(96, 165, 250, 0.3);
    }

    .consultation-badge.turn-2 {
        background: linear-gradient(135deg, #a78bfa, #8b5cf6);
        color: white;
        border: 2px solid rgba(167, 139, 250, 0.3);
    }

    .consultation-badge .badge-icon {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
    }

    .consultation-badge .badge-text {
        font-weight: 700;
    }

    .consultation-badge .badge-description {
        font-size: 0.75rem;
        opacity: 0.9;
        margin-right: 5px;
    }

    .agent-photo-container {
        position: relative;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .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);
    }

    .availability-details {
        font-size: 0.75rem;
        color: #666;
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .availability-details i {
        font-size: 0.7rem;
    }

    /* هدر جديد */
    .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);
    }

    .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%);
    }

    .header-content {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 900px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .header-main-title {
        color: white;
        /*font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1.2rem; */       
        text-shadow: 0 3px 6px rgba(0,0,0,0.3);
        letter-spacing: -0.5px;
    }

    .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;
    }

    .header-legend {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 1.5rem;
    }

    .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);
    }

    .legend-icon {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
    }

    .legend-icon.available {
        background: #22c55e;
    }

    .legend-icon.busy {
        background: #f59e0b;
    }

    .legend-icon.offline {
        background: #94a3b8;
    }
    
    /* راهنماي روش‌هاي مشاوره */
    .consultation-methods-guide {
        background: white;
        border-radius: 20px;
        padding: 30px;
        margin: 40px auto;
        max-width: 1200px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
        position: relative;
        overflow: hidden;
    }

    .consultation-methods-guide::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to left, #667eea, #764ba2);
    }

    .guide-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .guide-header h3 {
        color: #1f2937;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .guide-header h3 i {
        color: #667eea;
        font-size: 2rem;
    }

    .guide-header p {
        color: #6b7280;
        font-size: 1rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .methods-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        margin-top: 30px;
    }

    .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;
    }

    .method-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .method-card.turn-0:hover {
        border-color: #10b981;
    }

    .method-card.turn-1:hover {
        border-color: #3b82f6;
    }

    .method-card.turn-2:hover {
        border-color: #8b5cf6;
    }

    .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;
    }

    .method-icon.turn-0 {
        background: linear-gradient(135deg, #34d399, #10b981);
    }

    .method-icon.turn-1 {
        background: linear-gradient(135deg, #60a5fa, #3b82f6);
    }

    .method-icon.turn-2 {
        background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    }

    .method-card h4 {
        color: #1f2937;
        font-size: 1.3rem;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .method-card p {
        color: #6b7280;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .method-features {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: right;
    }

    .method-features li {
        color: #4b5563;
        font-size: 0.9rem;
        padding: 8px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .method-features li i {
        color: #10b981;
        font-size: 0.9rem;
    }

     /* کارت مشاور بهبود يافته */
    .agent-card {
        background: white;
        border-radius: 18px;
        padding: 25px;
        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;
    }

    .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;
    }

    .agent-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-color: #c7d2fe;
    }

    .agent-card:hover::before {
        transform: scaleX(1);
    }

    .agent-card-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .agent-info {
        display: flex;
        align-items: center;
        gap: 20px;
        flex: 1;
    }

    .agent-details {
        flex: 1;
    }

    .agent-name {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 5px;
        transition: color 0.3s ease;
    }

    .agent-card:hover .agent-name {
        color: #667eea;
    }

    .agent-expertise {
        color: #6b7280;
        font-size: 1rem;
        margin-bottom: 12px;
        font-weight: 500;
    }

    .agent-side {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    .agent-code {
        background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
        padding: 8px 16px;
        border-radius: 25px;
        font-size: 0.9rem;
        color: #4b5563;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .arrow-icon {
        color: #9ca3af;
        font-size: 1.3rem;
        transition: all 0.3s ease;
        background: #f3f4f6;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .agent-card:hover .arrow-icon {
        transform: translateX(-5px);
        color: #667eea;
        background: #e0e7ff;
    }

    /* فيلترهاي جديد */
    .filter-card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        border: 1px solid #e5e7eb;
        position: sticky;
        top: 20px;
    }

    .filter-header {
        margin-bottom: 24px;
    }

    .filter-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .filter-title i {
        color: #3b82f6;
    }

    .filter-subtitle {
        color: #6b7280;
        font-size: 0.95rem;
    }

   /* دکمه‌هاي فيلتر بهبود يافته */
    .filter-actions {
        margin-top: 35px;
    }

    .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);
    }

    .btn-apply:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    }

    .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;
    }

    .btn-reset:hover {
        background: #f3f4f6;
        color: #374151;
        border-color: #9ca3af;
    }

    /* بخش جستجو */
    .search-section {
        margin-bottom: 30px;
    }

    .search-input-wrapper {
        position: relative;
    }

    .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;
    }

    .search-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .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;
    }

    .search-input:focus + .search-button {
        color: #3b82f6;
    }

    /* پينوشت وضعيت */
    .status-footer {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 30px;
        padding: 20px;
        background: #f9fafb;
        border-radius: 12px;
        flex-wrap: wrap;
    }

    .status-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #4b5563;
    }

    .status-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .status-dot.available {
        background: #22c55e;
    }

    .status-dot.busy {
        background: #f59e0b;
    }

    .status-dot.offline {
        background: #94a3b8;
    }
    
    .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);
    }
    
    .loading-overlay .spinner {
        text-align: center;
    }
    
    .loading-text {
        color: #3b82f6;
        font-weight: 500;
        font-size: 1.1rem;
    }
    
    /* استايل دکمه اطلاع‌رساني */
.info-action-btn {
    /*background: linear-gradient(135deg, #ff6b6b, #ff4757);
    background: linear-gradient(135deg, #07052f, #6fff472e);*/
    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(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse-vibrate 2s infinite;
}

.info-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.5);
    animation: none;
}

.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;
}

.info-action-btn:hover::before {
    opacity: 1;
}

.info-action-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.info-action-btn:hover i {
    transform: rotate(15deg);
}

/* انيميشن لرزشي */
@keyframes pulse-vibrate {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 12px 25px rgba(255, 107, 107, 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(255, 107, 107, 0.4);
    }
}

/* مودال */
.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: fadeIn 0.3s ease;
}

.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: slideUp 0.4s ease;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 25px 25px 0 0;
    position: relative;
    text-align: center;
}

.modal-header h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 15px;
}

.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;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* انيميشن‌هاي مودال */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* دکمه‌هاي مودال */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.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;
}

.btn-understand:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.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;
}

.btn-close-modal:hover {
    background: #e5e7eb;
    color: #4b5563;
}

/* ريسپانسيو */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 25px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .info-action-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

    /* ريسپانسيو */
    @media (max-width: 768px) {
        .modern-page-header {
            padding: 1.5rem 0 2.5rem 0;
            border-radius: 0 0 16px 16px;
        }

        .header-main-title {
            font-size: 1.8rem;
        }

        .header-subtitle {
            font-size: 1rem;
        }

        .header-legend {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .legend-item {
            align-self: flex-start;
        }

        .agent-card-content {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }

        .agent-side {
            width: 100%;
            justify-content: space-between;
        }

        .filter-card {
            position: relative;
            top: 0;
            margin-bottom: 20px;
        }

        .status-footer {
            flex-direction: column;
            gap: 15px;
        }
    }

/* انيميشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialty-item {
    animation: fadeIn 0.3s ease;
}

/* رسپانسيو */
@media (max-width: 768px) {
    .specialties-list-container {
        max-height: 300px;
    }
    
    .quick-filters .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* رسپانسيو */
@media (max-width: 991px) {
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
    
    .gender-filter {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .agent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .agent-side {
        align-self: flex-end;
    }
}