/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    color: #2c3e50;
    line-height: 1.6;
    direction: rtl;
    font-size: 13px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #374151;
    height: 4px;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.btn-primary {
    background: #fff; /* پس‌زمینه سفید */
    color: #d32f2f; /* متن قرمز */
    border: 2px solid #d32f2f; /* بوردر قرمز */
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* افکت هاور */
.btn-primary:hover {
    background: rgba(211, 47, 47, 0.1); /* قرمز خیلی کم‌رنگ */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse;
}

.track-booking-btn {
    background: rgb(9, 178, 136);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-booking-btn:hover {
    background: rgb(7, 150, 115);
    transform: translateY(-2px);
}

.phone-btn {
    background: #fff;
    color: rgb(9, 178, 136);
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    background: #f9fafb;
    border-color: rgb(9, 178, 136);
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: #e5e7eb;
}

.language-selector i {
    color: #374151;
    font-size: 16px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: rgb(9, 178, 136);
    background: rgba(9, 178, 136, 0.1);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: calc(100vh - 90px);
}

/* Sidebar Styles */
.sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: relative;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header .logo {
    font-size: 20px;
    font-weight: 700;
}

.sidebar-header .logo-text {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.avatar {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #9ca3af;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.1px;
}

.phone {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    font-family: 'Courier New', monospace;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: rgba(9, 178, 136, 0.1);
    color: rgb(9, 178, 136);
    transform: translateX(-2px);
}

.nav-item.active {
    background: rgb(9, 178, 136);
    color: white;
    box-shadow: 0 4px 15px rgba(9, 178, 136, 0.3);
}

.nav-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.logout {
    color: #ef4444;
    margin-top: 15px;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    padding-top: 20px;
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Main Content Styles */
.main-content {

    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* تیتر سمت راست، دکمه سمت چپ */
    margin-bottom: 20px;
}

.add-review-btn {
    background: rgba(9, 178, 136, 0.1);
    color: rgb(9, 178, 136);
   /* box-shadow: 0 4px 15px rgba(9, 178, 136, 0.3);*/
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.add-review-btn:hover {
    background: rgb(9, 178, 136);
    color: white;
    box-shadow: 0 4px 15px rgba(9, 178, 136, 0.3);
    transform: translateX(-2px);
}

📌 نتیجه
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-title i {
    color: rgb(9, 178, 136);
    font-size: 20px;
}

/* Travel Types */
.travel-types {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.travel-type-btn {
    background: #f8f9fa;
    border: 2px solid transparent;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.travel-type-btn:hover {
    background: #e9ecef;
    color: rgb(9, 178, 136);
}

.travel-type-btn.active {
    background: rgb(9, 178, 136);
    color: white;
    border-color: rgb(9, 178, 136);
}

.travel-type-btn i {
    font-size: 14px;
}

/* Trip Status Tabs */
.trip-status-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.status-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.status-tab:hover {
    color: rgb(9, 178, 136);
}

.status-tab.active {
    color: rgb(9, 178, 136);
}

.status-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgb(9, 178, 136);
    border-radius: 2px 2px 0 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 15px;
}

.empty-illustration {
    margin-bottom: 30px;
}

.empty-image {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.empty-image:hover {
    transform: scale(1.02);
}

.empty-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.empty-message p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.start-trip-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.start-trip-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
        padding: 15px;
    }

    .sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .header-left {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        flex-direction: row;
    }

    .header-center {
        order: -1;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
    }

    .header-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    .track-booking-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .phone-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .travel-types {
        justify-content: center;
    }

    .travel-type-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .empty-image {
        max-width: 250px;
    }
}

.user-info-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* کارت‌ها */
.card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* تیتر هر بخش */
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
    border-right: 3px solid rgb(9, 178, 136);
    padding-right: 10px;
}

/* لیبل‌ها و ورودی‌ها */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #9ca3af; /* پررنگ‌تر شد */
    border-radius: 8px;
    font-size: 13px;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgb(9, 178, 136);
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 178, 136, 0.15);
}

/* ردیف دو ستونه */
.form-row {
    display: flex;
    gap: 20px;
}

.birthdate {
    display: flex;
    gap: 10px;
}

.hint {
    font-size: 12px;
    color: #6b7280;
}

/* دکمه‌ها */
.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    background: rgb(9, 178, 136);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: rgb(7, 150, 115);
    transform: translateY(-2px);
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    /*background: white;*/
    border-radius: 12px;
    /*border: 1px solid #e5e7eb;*/
/*    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);*/
}

.trip-table {
    width: 100%;
    font-size: 13px;
    text-align: right;
    border-collapse: separate;
    border-spacing: 0 8px; /* فاصله بین ردیف‌ها */
}

.trip-table th {
    background: #f9fafb;
    padding: 12px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.trip-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: top;
}

.trip-table td,
.trip-table th {
    padding: 24px 28px;
    white-space: nowrap; /* جلوگیری از شکست متن */
}

/* وضعیت */
.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #34d399;
}

.status.rejected {
    background: #ecfdf5;
    color: #ef3232;
    border: 1px solid #9e1717;
}

.status.pending {
    background: #ecfdf5;
    color: rgba(216, 191, 75, 0.79);
    border: 1px solid #815c14;
}

/* دکمه عملیات */
.action-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.action-btn:hover {
    color: #374151;
}

.action-cell {
    position: relative;
}

/* منوی کشویی */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.dropdown-item {
    padding: 10px 14px;
    text-align: right;
    font-size: 13px;
    background: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item.cancel {
    color: #dc2626;
}

.action-cell {
    position: relative;
}

.action-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.action-btn:hover {
    color: #374151;
}

/* مدال کوچک کنار دکمه */
.action-modal {
    position: absolute;
    top: 100%; /* درست زیر دکمه */
    right: 0; /* هم‌تراز با دکمه سه نقطه */
    transform: translateY(8px); /* کمی فاصله برای زیبایی */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    min-width: 150px;
    z-index: 200; /* بالاتر از جدول */
    padding: 8px;
}

.modal-btn {
    padding: 8px 12px;
    text-align: right;
    font-size: 13px;
    background: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.modal-btn:hover {
    background: #f9fafb;
}

.modal-btn.cancel {
    color: #dc2626;
}

/* مدال منو دقیقا روی جدول */
.action-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 0; /* همون جای اصلی */
    transform: translateX(+80%); /* منو رو 20٪ بیار سمت راست‌تر */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    min-width: 140px;
    padding: 6px 0;
    z-index: 200;
}

.trip-select-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.trip-select-table th,
.trip-select-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
}

.trip-select-table th {
    background: #f9fafb;
    font-weight: 600;
}

.trip-select-table tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.trip-select-table tr:hover {
    background: #f3f4f6;
}

.trip-select-table tr.active {
    background: #eff6ff;
    border: 2px solid #2563eb;
}

/* بخش نوشتن نظر */
.review-section {
    display: none;
    flex-direction: column;
    margin-top: 20px;
}

.review-section label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.review-section textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 180px;
}

.modal-table-container {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.trip-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.trip-table tbody tr:hover {
    background: #f9fafb;
}

.trip-table tbody tr.selected {
    background: #e0f2fe; /* رنگ انتخابی */
}

/* اسکرول اختصاصی */
.modal-table-container::-webkit-scrollbar {
    width: 6px;
}

.modal-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}


/* آیتم‌ها */
.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: right;
    color: #111827;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-item:hover {
    background: #e2e8f0;
}

.action-item i {
    font-size: 14px;
    color: #374151;
}

/* پوشش پس‌زمینه مدال */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* خود مدال */
.modal {
    display: none; /* مخفی پیش‌فرض */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    width: 60%;
    max-width: 900px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

/* هدر مدال */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 18px;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    margin-left: 8px;
}

/* بدنه مدال */
.modal-body {
    padding: 16px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

/* دکمه‌ها */
.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.panel {
    background: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.panel h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus, textarea:focus {
    color: rgb(9, 178, 136);
    box-shadow: 0 0 8px rgb(9, 178, 136);;
    outline: none;
}

textarea {
    resize: vertical;
}

.network-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.network {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 calc(50% - 15px);
    box-sizing: border-box;
    background: #fafafa;
}

.network img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.network.selected {
    color: #000;
    background: rgba(9, 178, 136, 0.25);
}

.checkbox-group {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.checkbox-group input {
    margin-left: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

input[type="file"] {
    display: block;
    margin-top: 10px;
}

.warnings {
    font-size: 0.85em;
    color: #e74c3c;
    margin-top: 6px;
}

.network.disabled {
    opacity: 0.5; /* کم‌رنگ می‌شود */
    cursor: not-allowed; /* نشانگر غیرقابل کلیک */
    pointer-events: none; /* غیر قابل کلیک */
}

.send-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #059669;;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.send-btn:hover {
    background-color: #059669;;
    transform: translateY(-2px);
}

.send-btn:active {
    transform: translateY(1px);
}


@media (max-width: 480px) {
    .travel-types {
        flex-direction: column;
    }

    .travel-type-btn {
        width: 100%;
    }

    .action-item:hover
    .trip-status-tabs {
        flex-direction: column;
        border-bottom: none;
        border-right: 2px solid #eee;
    }

    .status-tab.active::after {
        bottom: 0;
        left: -2px;
        right: auto;
        width: 3px;
        height: 100%;
        border-radius: 2px 0 0 2px;
    }
}
/* =========================
   Submenu (Sidebar)
========================= */

.nav-item-with-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* دکمه بازکننده زیرمنو */
.nav-item-toggle {
    cursor: pointer;
}

/* لیست زیرمنو */
.submenu {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    display: none;
}

/* ظاهر زیرمنو مثل بقیه nav-item ها */
.submenu-item {
    padding: 10px 16px;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: rgba(9, 178, 136, 0.1);
    color: rgb(9, 178, 136);
}

.submenu-item.active {
    background: rgb(9, 178, 136);
    color: white;
    box-shadow: 0 4px 15px rgba(9, 178, 136, 0.3);
}

/* آیکن زیرمنو */
.submenu-item i {
    font-size: 7px;
    width: 16px;
    text-align: center;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.submenu-item:hover i {
    transform: scale(1.2);
}

/* فلش باز و بسته */
.submenu-arrow {
    margin-right: auto;
    transition: transform 0.3s ease;
}


/* زیرمنو وقتی open شد نمایش داده شود */
.nav-item-with-submenu .submenu {
    display: none; /* پیش‌فرض */
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-right: 10px; /* فاصله از سمت راست */
}

/* باز شدن زیرمنو */
.nav-item-with-submenu.open .submenu {
    display: flex; /* نمایش وقتی open شد */
}


/* چرخش فلش */
.nav-item-with-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

/* اگر یکی از زیرمنوها active بود */
.nav-item-with-submenu.active > .nav-item-toggle {
    background: rgba(9, 178, 136, 0.12);
    color: rgb(9, 178, 136);
}

/* =========================
   Mobile: sidebar becomes an off-canvas drawer (see sidebar.php)
========================= */
.mobile-topbar,
.sidebar-overlay,
.sidebar-close {
    display: none;
}

@media (max-width: 768px) {
    .main-container {
        display: block;
        padding: 0 12px 12px;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 1000;
        margin: 0 -12px 12px;
        padding: 10px 15px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .sidebar-toggle {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 10px;
        background: rgba(9, 178, 136, 0.1);
        color: rgb(9, 178, 136);
        font-size: 18px;
        cursor: pointer;
    }

    .mobile-topbar-title {
        font-weight: 600;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 82vw);
        height: 100%;
        overflow-y: auto;
        border-radius: 0;
        z-index: 1101;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: none;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-close {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #6b7280;
        font-size: 18px;
        cursor: pointer;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main-content {
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
    }

    /* wide tables scroll sideways instead of stretching the page */
    .main-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}
