/* استایل‌های عمومی پنل مشتری و متخصص */
.wsm-customer-panel,
.wsm-expert-panel {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* استایل‌های هدر */
.customer-header,
.expert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 20px;
}

.customer-welcome,
.expert-welcome {
    flex: 1;
    min-width: 300px;
}

.customer-welcome h2,
.expert-welcome h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.customer-welcome p,
.expert-welcome p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.customer-actions,
.expert-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout-btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

/* استایل‌های تب‌ها */
.wsm-tabs {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: #e7f3ff;
    color: #007cba;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #007cba;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* استایل‌های کارت آمار */
.customer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #007cba, #005a87);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* استایل‌های فرم درخواست */
.wsm-request-form-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.form-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
}

.form-header p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid #007cba;
    transition: all 0.3s ease;
}

.form-section:hover {
    background: #e7f3ff;
    border-right-color: #005a87;
}

.form-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background: #fafbfc;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* استایل‌های نمایش متخصص */
.expert-profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007cba;
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

.expert-info-with-photo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 3px solid #28a745;
}

.expert-details {
    flex: 1;
}

.expert-details h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.expert-details p {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

.expert-call-display {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    border-right: 4px solid #28a745;
    transition: all 0.3s ease;
}

.expert-call-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.expert-call-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.expert-call-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.expert-call-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
}

.expert-call-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.call-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* استایل‌های دکمه‌ها */
.wsm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    position: relative;
    overflow: hidden;
}

.wsm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wsm-btn:hover::before {
    opacity: 1;
}

.wsm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.primary-btn {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.primary-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
}

.secondary-btn {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.secondary-btn:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.danger-btn {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.danger-btn:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.success-btn {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.success-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.warning-btn {
    background: #ffc107;
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.warning-btn:hover:not(:disabled) {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.info-btn {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.info-btn:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

/* استایل‌های درخواست‌ها */
.wsm-active-requests,
.wsm-completed-requests {
    display: grid;
    gap: 20px;
}

.active-request-item,
.completed-request-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.active-request-item::before,
.completed-request-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #007cba;
}

.active-request-item:hover,
.completed-request-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.request-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-title h4 {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.request-id {
    background: #e7f3ff;
    color: #007cba;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.request-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.status-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.status-assigned { background: #cce7ff; color: #004085; border: 1px solid #b3d7ff; }
.status-accepted { background: #d1ecf1; color: #0c5460; border: 1px solid #b8dfe6; }
.status-in-progress { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-completed { background: #d1e7dd; color: #0f5132; border: 1px solid #bcd0c7; }
.status-cancelled { background: #f8d7da; color: #721c24; border: 1px solid #f1b0b7; }

.request-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid #007cba;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    min-width: 120px;
}

.detail-value {
    color: #6c757d;
    font-size: 14px;
    flex: 1;
    line-height: 1.5;
}

.request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
    flex-wrap: wrap;
    gap: 10px;
}

.time-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

.time-info.past { background: #f8d7da; color: #721c24; }
.time-info.future { background: #cce7ff; color: #004085; }
.time-info.soon { background: #fff3cd; color: #856404; }
.time-info.urgent { background: #ffeaa7; color: #856404; }
.time-info.very-urgent { background: #f8d7da; color: #721c24; }

.request-date {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* استایل‌های موقعیت‌یابی */
.location-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.location-status {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin: 10px 0;
}

.location-loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-address {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    border-right: 3px solid #28a745;
    margin-top: 8px;
    font-size: 13px;
    color: #495057;
}

.custom-marker {
    font-size: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007cba;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* استایل‌های نقشه */
.map-instructions {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid #007cba;
}

.map-instructions p {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #004085;
    font-size: 15px;
}

.map-instructions ul {
    margin: 0;
    padding-right: 20px;
    color: #004085;
}

.map-instructions li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.search-control {
    direction: ltr;
}

.map-search-box {
    text-align: center;
}

/* استایل‌های مودال */
.wsm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #e9ecef;
}

.close {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6c757d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.close:hover {
    background: #e9ecef;
    color: #495057;
    transform: rotate(90deg);
}

/* استایل‌های خط زمانی */
.request-timeline {
    position: relative;
    padding: 20px 0;
}

.request-timeline::before {
    content: '';
    position: absolute;
    right: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #007cba, #28a745);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-right: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: 18px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #007cba;
    z-index: 2;
}

.timeline-item.completed::before {
    background: #28a745;
    box-shadow: 0 0 0 3px #28a745;
}

.timeline-item.current::before {
    background: #ffc107;
    box-shadow: 0 0 0 3px #ffc107;
    animation: pulse 2s infinite;
}

.timeline-icon {
    position: absolute;
    right: 12px;
    top: 4px;
    font-size: 20px;
    z-index: 3;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-right: 4px solid #007cba;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-content {
    border-right-color: #28a745;
    background: #f0f9f0;
}

.timeline-item.current .timeline-content {
    border-right-color: #ffc107;
    background: #fffbf0;
}

.timeline-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.timeline-content p {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.timeline-time {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* استایل‌های کوپن تخفیف */
.wsm-discount-coupons {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.coupon-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.coupon-system-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-right: 4px solid #007cba;
}

.coupon-system-info h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 14px;
}

.info-content p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}

.available-coupons h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.coupon-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.coupon-percent {
    font-size: 32px;
    font-weight: bold;
}

.coupon-type {
    font-size: 14px;
    opacity: 0.9;
}

.coupon-body {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: inline-block;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

.coupon-desc {
    font-size: 14px;
    opacity: 0.9;
}

.coupon-footer {
    position: relative;
    z-index: 2;
}

/* استایل‌های وضعیت خالی */
.wsm-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    border: 2px dashed #e9ecef;
}

.wsm-empty-state h4 {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.wsm-empty-state p {
    color: #999;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
}

/* استایل‌های صفحه ورود */
.wsm-login-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
    max-width: 500px;
    border: 1px solid #e9ecef;
}

.wsm-login-required h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.wsm-login-required p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-buttons .wsm-btn {
    min-width: 150px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* استایل‌های مودال تماس */
.call-expert-modal {
    animation: fadeIn 0.3s ease;
}

.call-expert-modal h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.call-expert-modal h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.call-expert-modal p {
    color: #6c757d;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

.confirm-call-btn:hover {
    background: #218838 !important;
    transform: translateY(-2px) !important;
}

.cancel-call-btn:hover {
    background: #545b62 !important;
    transform: translateY(-2px) !important;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل‌های بارگذاری */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* استایل‌های پیام */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .wsm-customer-panel,
    .wsm-expert-panel {
        padding: 10px;
    }
    
    .customer-header,
    .expert-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .customer-actions,
    .expert-actions {
        justify-content: center;
        width: 100%;
    }
    
    .wsm-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        min-width: auto;
        padding: 12px 15px;
    }
    
    .customer-stats,
    .coupon-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-actions {
        justify-content: center;
    }
    
    .request-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-buttons .wsm-btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* واکنش‌گرا برای نمایش متخصص */
    .expert-call-header {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-call-picture {
        width: 80px;
        height: 80px;
    }
    
    .expert-info-with-photo {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-profile-picture {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .call-actions {
        flex-direction: column;
    }
    
    .call-actions .wsm-btn {
        width: 100%;
    }
    
    .location-buttons {
        flex-direction: column;
    }
    
    .location-buttons .wsm-btn {
        width: 100%;
    }
    
    #location-map {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .coupons-grid {
        grid-template-columns: 1fr;
    }
    
    .request-details {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .wsm-request-form-container {
        padding: 20px;
    }
}

/* استایل‌های پیشرفته برای نقشه */
.leaflet-container {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.leaflet-popup-content {
    text-align: right;
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
}

/* استایل برای تقویم فارسی */
.persian-datepicker {
    text-align: right;
    direction: rtl;
}

.pdp-default {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    direction: rtl !important;
}

/* استایل‌های چاپ */
@media print {
    .wsm-tabs,
    .request-actions,
    .form-actions,
    .customer-actions,
    .expert-actions {
        display: none !important;
    }
    
    .request-card,
    .active-request-item,
    .completed-request-item {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .wsm-customer-panel,
    .wsm-expert-panel {
        background: white !important;
        padding: 0 !important;
    }
}

/* استایل‌های ابزارک */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    right: 50%;
    margin-right: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* استایل‌های فرم‌های عملیاتی */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* استایل‌های رتبه‌بندی */
.rating-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-right: 3px solid #ffc107;
}

.existing-rating h5,
.rating-prompt h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.wsm-rating-stars {
    display: flex;
    gap: 2px;
}

.wsm-rating-stars .star {
    font-size: 18px;
}

.wsm-rating-stars .star.full {
    color: #ffc107;
}

.wsm-rating-stars .star.empty {
    color: #e9ecef;
}

.rating-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.rating-comment {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-right: 2px solid #007cba;
    margin-top: 10px;
}

.rating-comment strong {
    color: #2c3e50;
    font-size: 14px;
}

.rating-comment p {
    margin: 8px 0 0 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
}

.rating-date {
    margin-top: 10px;
    text-align: left;
}

.rating-date small {
    color: #6c757d;
    font-size: 12px;
}

/* استایل‌های ناوبری */
.tablenav {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tablenav-pages {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-links a,
.pagination-links span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin: 0 2px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-links a:hover {
    background: #f8f9fa;
    border-color: #007cba;
    color: #007cba;
}

.pagination-links .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination-links .disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* استایل‌های مدیریت */
.wsm-admin-stats .stat-box {
    transition: all 0.3s ease;
}

.wsm-admin-stats .stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.edit-request-btn {
    background: #17a2b8 !important;
    color: white !important;
    border: none !important;
}

.edit-request-btn:hover {
    background: #138496 !important;
}

.delete-request-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

.delete-request-btn:hover {
    background: #c82333 !important;
}