/* فونت IRANSansWeb */
@font-face {
    font-family: 'IRANSansWeb';
    src: url('fonts/IRANSansWeb_Medium.woff') format('woff'),
         url('fonts/IRANSansWeb_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* رنگ‌های سازمانی تیپاکس */
    --primary-color: #146B3A;
    --primary-dark: #0F5A2F;
    --primary-light: #1B7C49;
    --secondary-color: #17428F;
    --secondary-dark: #12357A;
    --secondary-light: #1C4FA3;
    --dark-color: #2C2C2C;
    --gray-dark: #474747;
    --gray-medium: #CACACA;
    --gray-light: #D9D9D9;
    --background-color: #F2F2F2;
    --surface-color: #FFFFFF;
    --text-primary: #2C2C2C;
    --text-secondary: #474747;
    --text-light: #6B7280;
    --border-color: #D9D9D9;
    --success-color: #146B3A;
    --warning-color: #F59E0B;
    --error-color: #DC2626;
    
    /* سایه‌ها */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* انیمیشن‌ها */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
}

body {
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    direction: rtl;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== BREAKPOINTS ===== */
/* Mobile First Approach - Base styles are for mobile */

/* Very Small Phones (xs): <= 320px */
@media (max-width: 320px) {
    body {
        font-size: 12px;
    }
}

/* Small Phones (sm): 321px - 425px */
@media (min-width: 321px) and (max-width: 425px) {
    body {
        font-size: 13px;
    }
}

/* Large Phones / Small Tablets (md): 426px - 768px */
@media (min-width: 426px) and (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* Tablets Landscape / Small Laptops (lg): 769px - 1024px */
@media (c) and (max-width: 1024px) {
    body {
        font-size: 14px;
    }
}

/* Laptops / Normal Desktops (xl): 1025px - 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
    body {
        font-size: 14px;
    }
}

/* Wide Desktops (xxl): 1441px - 1920px */
@media (min-width: 1441px) and (max-width: 1920px) {
    body {
        font-size: 14px;
    }
}

/* Very Wide / Ultrawide (ultra): >= 1921px */
@media (min-width: 1921px) {
    body {
        font-size: 14px;
    }
    .container {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* ===== LAYOUT COMPONENTS ===== */

/* مودال */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive Modal */
@media (max-width: 425px) {
    .modal {
        padding: 0.5rem;
    }
    .modal-content {
        max-height: 95vh;
        border-radius: var(--border-radius-lg);
    }
	.services-between-cities-form .form-group {display:contents !important;}
	#servicesBetweenCitiesResult .table-container .data-table {min-width: 300px !important;}
}

@media (min-width: 426px) and (max-width: 768px) {
    .modal-content {
        max-width: 90%;
    }
	.services-between-cities-form .form-group {display:contents !important;}
	#servicesBetweenCitiesResult .table-container .data-table {min-width: 300px !important;}
}

@media (min-width: 769px) {
    .modal-content {
        max-width: 800px;
    }.
	.services-between-cities-form .form-group {display:contents !important;}
	#servicesBetweenCitiesResult .data-table {min-width: 300px;}
}

@media (min-width: 1921px) {
    .modal-content {
        max-width: 900px;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

@media (max-width: 425px) {
    .modal-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

.modal-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 425px) {
    .modal-icon {
        font-size: 1.75rem;
        padding: 0.5rem;
    }
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

@media (max-width: 425px) {
    .modal-title {
        font-size: 1.1rem;
    }
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

@media (max-width: 425px) {
    .modal-body {
        padding: 1rem;
    }
}

.modal-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-right: 4px solid var(--primary-color);
}

@media (max-width: 425px) {
    .modal-section {
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
}

.modal-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 425px) {
    .modal-section h3 {
        font-size: 1rem;
    }
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   /* display: flex; */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modallistline li {
    display: contents !important;
}

.modal-list li:last-child {
    border-bottom: none;
}

@media (max-width: 425px) {
    .modal-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
}

.modal-list strong {
    color: #4ADE80;
    min-width: 120px;
}

.modal-list a {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    background: rgba(96, 165, 250, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: var(--transition);
    display: inline-block;
	margin:4px 0px;
}

.modal-list a:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60A5FA;
    transform: translateY(-2px);
}

.modal-notes {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 425px) {
    .modal-notes {
        padding: 0.875rem;
        margin-top: 1rem;
    }
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.note-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 425px) {
    .note-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

.note-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 425px) {
    .modal-footer {
        padding: 0.875rem 1rem 1rem;
    }
}

.modal-action-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.modal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 425px) {
    .modal-action-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* محتوای اصلی */
.container {
    width: 100%;
    background: var(--surface-color);
    min-height: 100vh;
    display: none;
    flex-direction: column;
}

/* هدر */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

@media (min-width: 769px) {
    .header {
        padding: 1rem 1.5rem;
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1025px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 425px) {
    .logo {
        justify-content: center;
        text-align: center;
    }
}

.logo-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

@media (max-width: 425px) {
    .logo-icon {
        font-size: 1.75rem;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

@media (max-width: 425px) {
    .header-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 1921px) {
    .header-title {
        font-size: 1.5rem;
    }
}

.header-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

@media (max-width: 425px) {
    .header-subtitle {
        font-size: 0.8rem;
    }
}

/* پیام‌های هدر */
.header-messages {
    width: 100%;
    padding: 0.5rem 4.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1025px) {
    .header-messages {
        max-width: 1000px;
        margin-top: 0;
    }
}

.important-message {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

.important-message::before {
    content: '⚠️ مهم';
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 215, 0, 0.8);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-bottom-left-radius: var(--border-radius);
}

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

.typewriter-text {
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 40px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

@media (max-width: 425px) {
    .typewriter-text {
        font-size: 0.75rem;
        min-height: 35px;
    }
}

@media (min-width: 1921px) {
    .typewriter-text {
        font-size: 1rem;
        min-height: 50px;
    }
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s infinite;
    margin-right: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* بخش دکمه‌های اصلی */
.header-actions {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 769px) {
    .header-actions {
        padding: 1rem 1.5rem;
    }
	.servicesBetweenCitiesResult .data-table {min-width: 300px;}
}

.actions-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 426px) {
    .actions-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
	.servicesBetweenCitiesResult .data-table {min-width: 300px;}
}

.action-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
    width: 100%;
}

@media (min-width: 426px) {
    .action-btn {
        width: auto;
    }
}

.action-btn.btn-primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.action-btn.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.action-btn.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* تب‌ها */
.tabs {
    display: flex;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1rem;
}

.tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    .tabs {
        padding: 0 0.3rem;
    }
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 425px) {
    .tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

.tab:hover {
    color: var(--primary-color);
    background: var(--background-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--background-color);
}

.tab-icon {
    font-size: 1rem;
}

@media (max-width: 425px) {
    .tab-icon {
        font-size: 0.9rem;
    }
}

.tab-badge {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

@media (max-width: 425px) {
    .tab-badge {
        font-size: 0.65rem;
        min-width: 18px;
        padding: 0.15rem 0.3rem;
    }
}

/* محتوای اصلی */
.main-content {
    flex: 1;
    padding: 1rem;
    background: var(--background-color);
}

@media (min-width: 769px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (min-width: 1921px) {
    .main-content {
        padding: 2rem;
    }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 769px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.section-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

@media (max-width: 425px) {
    .section-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 1921px) {
    .section-title {
        font-size: 1.4rem;
    }
}

.section-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 426px) {
    .section-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        width: auto;
    }
}

/* دکمه‌ها */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 426px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-icon {
    font-size: 1rem;
}

/* جداول */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--surface-color);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    min-width: 600px;
}

@media (min-width: 769px) {
    .data-table {
        font-size: 0.875rem;
        min-width: 650px;
    }
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--primary-dark);
    position: sticky;
    top: 0;
    white-space: nowrap;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-size: 0.8rem;
}

@media (min-width: 769px) {
    .data-table th {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
}

.data-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-size: 0.8rem;
}

@media (min-width: 769px) {
    .data-table td {
        padding: 0.875rem 0.75rem;
        font-size: 0.875rem;
    }
}

.data-table tr:nth-child(even) {
    background: #fafafa;
}

.data-table tr:hover {
    background: #f0f9ff;
}

/* جداول انگلیسی (چپ به راست) */
.english-table {
    direction: ltr;
    text-align: left;
}

.english-table th,
.english-table td {
    text-align: left;
    font-family: 'IRANSansWeb', 'Courier New', monospace;
}

/* استایل جدید برای جدول نتایج سرویس‌های بین دو شهر */
.services-between-cities-table {
    width: 100% !important;
    min-width: auto !important;
    background: white !important;
    color: #333 !important;
    font-size: 0.8rem !important;
    border: 1px solid #ddd !important;
}

.services-between-cities-table th {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.6rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    border: 1px solid var(--primary-dark) !important;
    text-align: center;
}

.services-between-cities-table td {
    padding: 0.6rem 0.5rem !important;
    text-align: center;
    border: 1px solid #ddd !important;
    color: #333 !important;
    font-size: 0.75rem !important;
}

.services-between-cities-table tr:nth-child(even) {
    background: #f8f9fa !important;
}

.services-between-cities-table tr:hover {
    background: #e9ecef !important;
}

/* استایل برای container جدول سرویس‌ها */
.services-table-container {
    overflow-x: hidden !important;
    max-width: 100% !important;
    margin: 1rem 0 !important;
}

/* ستون‌های راست‌چین */
.text-right {
    text-align: right !important;
    direction: rtl;
}

/* استایل‌های جدید برای عنوان‌های قابل کلیک */
.clickable-title {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 2rem 0.75rem 0.5rem !important;
}

@media (min-width: 769px) {
    .clickable-title {
        padding: 0.875rem 2.5rem 0.875rem 0.75rem !important;
    }
}

.clickable-title:hover {
    background: rgba(20, 107, 58, 0.1) !important;
    color: var(--primary-color);
    font-weight: 600;
}

.clickable-title:hover .copy-icon {
    opacity: 1;
    transform: scale(1.1);
}

.copy-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .copy-icon {
        left: 0.75rem;
        font-size: 0.9rem;
        padding: 0.25rem;
    }
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: var(--success-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    box-shadow: var(--shadow);
    font-size: 0.8rem;
}

@media (min-width: 426px) {
    .toast {
        min-width: 250px;
        padding: 1rem;
        bottom: 30px;
        font-size: 0.9rem;
    }
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background-color: var(--error-color);
}

.toast.success {
    background-color: var(--success-color);
}

/* جستجوی شهرها */
.search-box {
    display: flex;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
}

@media (min-width: 426px) {
    .search-box {
        width: auto;
    }
}

.search-input {
    background: var(--surface-color);
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    width: 100%;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-size: 0.85rem;
}

@media (min-width: 426px) {
    .search-input {
        width: 300px;
    }
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    outline: none;
    background: var(--background-color);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.city-search .search-input {
    width: 100%;
}

@media (min-width: 426px) {
    .city-search .search-input {
        width: 350px;
    }
}

/* استایل‌های جدید برای بخش سوالات متداول */
.faq-container {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

@media (min-width: 769px) {
    .faq-question {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
}

.faq-question::before {
    content: '❓';
    font-size: 1.1rem;
}

.faq-answer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 769px) {
    .faq-answer {
        padding: 1.5rem;
    }
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-list {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.faq-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.faq-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--secondary-color);
    transition: var(--transition);
}

.faq-link:hover {
    color: var(--secondary-dark);
    border-bottom: 1px solid var(--secondary-dark);
}

.code-block {
    background: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    direction: ltr;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
}

@media (min-width: 769px) {
    .code-block {
        padding: 1.5rem;
        font-size: 0.9rem;
        margin: 1rem;
    }
}

.code-block code {
    color: #333;
    font-family: 'Courier New', monospace;
}

/* استایل‌های جدید برای بخش نمونه درخواست‌ها */
.sample-requests-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1025px) {
    .sample-requests-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
    }
}

.sample-request-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.sample-request-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sample-request-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 426px) {
    .sample-request-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem;
    }
}

.sample-request-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

@media (min-width: 769px) {
    .sample-request-title {
        font-size: 1.1rem;
    }
}

.sample-request-title::before {
    content: '📋';
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.copy-sample-json {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 426px) {
    .copy-sample-json {
        width: auto;
    }
}

.copy-sample-json:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.sample-request-content {
    padding: 1.25rem;
}

@media (min-width: 769px) {
    .sample-request-content {
        padding: 1.5rem;
    }
}

/* استایل‌های جدید برای فرم سرویس‌های بین دو شهر */
.services-between-cities-form {
    margin-top: 1rem;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-input, .form-select {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 107, 58, 0.3);
    background: white;
}

.form-divider {
    text-align: center;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    position: relative;
}

.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.form-divider::before {
    right: 0;
}

.form-divider::after {
    left: 0;
}

.services-result {
    min-height: 100px;
}

.placeholder-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 2rem;
}

.info-message {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3B82F6;
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    color: #93c5fd;
}

.success-message {
    background: rgba(20, 107, 58, 0.1);
    border: 1px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #86efac;
}

@media (min-width: 769px) {
    .success-message {
        margin: 1rem 1rem;
    }
}

/* استایل‌های جدید برای بخش ثبت نظر */
.feedback-container {
    width: 100%;
    margin: 0 auto;
}

.feedback-form-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.feedback-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.feedback-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.feedback-info p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
}

.feedback-form {
    padding: 1.5rem;
}

@media (min-width: 769px) {
    .feedback-form {
        padding: 2rem;
    }
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.required {
    color: var(--error-color);
}

.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
    font-size: 0.85rem;
    transition: var(--transition);
    background: var(--surface-color);
    color: var(--text-primary);
    width: 100%;
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 107, 58, 0.1);
    background: white;
}

.char-counter {
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 426px) {
    .form-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.feedback-success {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feedback-success h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--success-color);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

.feedback-success p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

/* فوتر */
.footer {
    background: var(--dark-color);
    color: white;
    margin-top: auto;
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-medium);
    font-size: 0.8rem;
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

@media (max-width: 425px) {
    .footer-bottom {
        padding: 1rem;
        font-size: 0.75rem;
    }
}

/* استایل برای وضعیت بارگذاری */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: 'در حال بارگذاری...';
    display: block;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-family: 'IRANSansWeb', 'Tahoma', 'Arial', sans-serif;
}

/* بهبود نمایش وضعیت بارگذاری */
.loading-status {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.loading-status .spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* استایل برای خطاها */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--error-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #fca5a5;
}

/* حالت چاپ */
@media print {
    .modal {
        display: none !important;
    }
    
    .container {
        display: block !important;
    }
    
    body {
        background: white;
        padding: 0;
        font-size: 12px;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .tabs,
    .footer,
    .section-actions,
    .search-box,
    .header-messages,
    .toast,
    .copy-icon,
    .copy-sample-json,
    .header-actions {
        display: none;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .table-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .header {
        background: white !important;
        color: black !important;
        box-shadow: none;
        border-bottom: 2px solid var(--primary-color);
    }
    
    .logo-icon {
        color: var(--primary-color) !important;
    }
    
    .faq-item {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #ccc;
    }
    
    .clickable-title {
        cursor: default !important;
        padding: 0.875rem 0.75rem !important;
    }
    
    .sample-request-item {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .sample-request-header {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #ccc;
    }
    
    .feedback-form-container,
    .feedback-success {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .feedback-info {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #ccc;
    }
}

/* بهبودهای خاص برای نمایش بهتر در دستگاه‌های مختلف */

/* برای تبلت‌ها در حالت عمودی */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .header-content {
        flex-direction: column;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* برای تبلت‌ها در حالت افقی */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .header-content {
        flex-direction: row;
    }
}

/* برای لپ‌تاپ‌های کوچک */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 100%;
    }
}

/* برای مانیتورهای بسیار عریض */
@media (min-width: 1921px) {
    .sample-requests-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1800px;
        margin: 0 auto;
    }
    
    .faq-container {
        max-width: 1600px;
    }
    
    .feedback-container {
        max-width: 1200px;
    }
}

/* بهبود قابلیت لمس در دستگاه‌های لمسی */
@media (hover: none) and (pointer: coarse) {
    .action-btn:hover,
    .btn:hover,
    .tab:hover,
    .modal-close:hover,
    .copy-sample-json:hover,
    .modal-list a:hover,
    .faq-link:hover {
        transform: none;
    }
    
    .clickable-title:hover {
        background: transparent !important;
    }
    
    .clickable-title:active {
        background: rgba(20, 107, 58, 0.1) !important;
    }
}