/* Reset و تنظیمات پایه - نسخه کاملاً جدید و زیبا - طراحی مدرن و ظریف - Glassmorphism Design - رنگ‌بندی پیشرفته - انیمیشن‌های نرم - آمار داشبورد بهبود یافته - کارت‌های سفر مدرن - دکمه‌های زیبا */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --primary-light: #81c784;
    --secondary-color: #4caf50;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #4caf50;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: #4caf50;
    direction: rtl;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Container اصلی */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 0;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
    
    .stat-card {
        padding: 1.75rem;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg); 
    z-index: 10000;
    border-radius: 15px;
    display: flex;
    margin: auto;
    margin-top: 20px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo:hover {
    color: #000;
    transform: translateY(-1px);
}

.logo i {
    font-size: 2rem;
    color: #000;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0px 15px 0px 0px;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.nav-menu a i {
    font-size: 1.1rem;
    color: #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

/* Breadcrumb - طراحی بهبود یافته */
/* Trip Driver Info for Passengers */
.trip-driver-info {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-driver-info i {
    color: var(--primary-color);
}

.breadcrumb {
    margin: 1.5rem 0;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-md); 
    border-radius: 20px;
  backdrop-filter: blur(20px);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid transparent;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.breadcrumb a i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb .active {
    color: var(--text-secondary);
    font-weight: 600;
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0.5rem;
}

/* فرم‌ها */
.form-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid var(--border-light);
}

.form-title {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 0rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* صفحه ورود */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* انیمیشن‌های پس‌زمینه حذف شدند */

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 390px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(175 175 175 / 27%);
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 120px;
}

.login-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.5;
}

.login-form {
    text-align: right;
}

/* اطلاعات کاربر و ادمین */
.user-info, .admin-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.user-phone, .admin-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-phone {
    margin-right: auto;
    text-align: left;
}

.admin-phone {
    margin-right: auto;
    text-align: left;
}

.user-badge, .admin-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge {
    background: var(--info-color);
    color: white;
}

.admin-badge {
    background: var(--warning-color);
    color: white;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.input-group .form-input {
    flex: 1;
}

.code-input-group {
    position: relative;
}

.code-input {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    /* بهبود پشتیبانی از auto-fill */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* بهبود نمایش در مرورگرهای مختلف */
    -webkit-text-security: none;
    -moz-text-security: none;
    text-security: none;
}

.code-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-primary);
}

.dot.filled {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

.login-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* بهبود ریسپانسیو بودن footer در موبایل */
@media (max-width: 480px) {
    .login-footer {
        font-size: 0.75rem;
        padding: 1rem 0.5rem;
        margin-top: 2rem;
    }
    
    .login-footer p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

/* قاعده کلی: تمام دکمه‌ها (به جز link) رنگ متن سفید داشته باشند */
.btn:not(.btn-link) {
    color: white !important;
}

.btn:not(.btn-link):hover {
    color: white !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--text-secondary), #334155);
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #334155, var(--text-secondary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #2563eb);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb, var(--info-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    box-shadow: none;
}

.btn-link:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-dark);
    transform: none;
    box-shadow: none;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* دکمه‌های کوچک با رنگ متن سفید */
.btn-sm.btn-primary {
    color: white !important;
}

.btn-sm.btn-primary:hover {
    color: white !important;
}

.btn-sm.btn-success {
    color: white !important;
}

.btn-sm.btn-success:hover {
    color: white !important;
}

.btn-sm.btn-info {
    color: white !important;
}

.btn-sm.btn-info:hover {
    color: white !important;
}

.btn-sm.btn-secondary {
    color: white !important;
}

.btn-sm.btn-secondary:hover {
    color: white !important;
}

.btn-sm.btn-danger {
    color: white !important;
}

.btn-sm.btn-danger:hover {
    color: white !important;
}

.btn-send-code {
    white-space: nowrap;
    min-width: 90px;
}

.btn-verify-code {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.btn-admin-login {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-admin-login:hover {
    background: linear-gradient(135deg, #d97706, var(--warning-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* داشبورد */
.dashboard {
    padding: 0rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
}

.welcome-section {
    flex: 1;
    min-width: 300px;
}

.welcome-section h1 {
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section h1 i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.9;
}

/* بهبود نمایش آیکن‌های dashboard */
.dashboard-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dashboard-title i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.9;
    flex-shrink: 0;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.dashboard-subtitle i {
    color: var(--primary-color);
    opacity: 0.8;
}

.trip-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.1);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.trip-route i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2em;
    padding: 0 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--info-color));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 0 0 24px 24px;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
   
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.chart-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.chart-container h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.section-header h2 {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.9;
}

.trip-count, .request-count, .passenger-count {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-count i, .request-count i, .passenger-count i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.trip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 40px;
}



.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.trip-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.025em;
    flex: 1;
}

.trip-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    border-radius: 10px;
}

.trip-status.public {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.trip-status.private {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 10px;
}

.trip-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(56, 142, 60, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(76, 175, 80, 0.1);
    position: relative;
    overflow: hidden;
    gap: 1rem;
}

.route-point {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    transition: var(--transition);
    padding: 0.5rem;
}

.route-point.origin {
    color: var(--success-color);
    text-align: right;
}

.route-point.destination {
    color: var(--danger-color);
    text-align: left;
}

.route-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: route-pulse 2s infinite;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
}

@keyframes route-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.trip-meta {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.trip-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.trip-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.375rem;
    align-items: center;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-bottom: 0.25rem;
    width: 100%;
}

.trip-actions .btn {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 150px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* اضافی برای اطمینان از نمایش دکمه‌ها در یک خط */
.trip-card .trip-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 0.375rem;
    overflow-x: visible !important;
    padding-bottom: 1.25rem;
    width: 100%;
    border-radius: 10px;
}

/* بهبود نمایش مسیر سفر در موبایل - شهرها در یک خط */
@media (max-width: 768px) {
    .trip-route {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
        overflow-x: auto !important;
    }
    
    .route-point {
        flex-direction: row !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.8rem !important;
        text-align: center !important;
    }
    
    .route-point.origin {
        text-align: right !important;
    }
    
    .route-point.destination {
        text-align: left !important;
    }
    
    .route-arrow {
        font-size: 1rem !important;
        flex-shrink: 0 !important;
        margin: 0 0.25rem !important;
    }
}

@media (max-width: 480px) {
    .trip-route {
        padding: 0.5rem !important;
        gap: 0.375rem !important;
    }
    
    .route-point {
        font-size: 0.75rem !important;
        text-align: center !important;
    }
    
    .route-point.origin {
        text-align: right !important;
    }
    
    .route-point.destination {
        text-align: left !important;
    }
    
    .route-arrow {
        font-size: 0.9rem !important;
        margin: 0 0.2rem !important;
    }
    
    /* بهبود دکمه‌ها در موبایل کوچک */
    .trip-actions {
        gap: 0.375rem !important;
    }
    
    .trip-actions .btn {
        flex: 1 1 100% !important;
        min-width: auto !important;
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }
}

/* Empty State بهبود یافته */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-state .text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.8;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.empty-actions .btn {
    min-width: 160px;
}

/* Responsive برای empty actions */
@media (max-width: 768px) {
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* اعلان‌ها */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    border-right: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    border-right-color: var(--success-color);
}

.notification-error {
    border-right-color: var(--danger-color);
}

.notification-info {
    border-right-color: var(--info-color);
}

.notification.warning {
    border-right-color: var(--warning-color);
}

.notification.slide-out {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* بهبودهای اضافی برای فرم */
.trip-form {
    position: relative;
}

.form-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.section-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* بهبود دکمه‌ها */
.btn-create-trip {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
}

.btn-create-trip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-create-trip:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* بهبود فرم inputs */
.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* انیمیشن ورود اعلان */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive برای اعلان‌ها */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        animation: slideInTop 0.3s ease-out;
    }
    
    @keyframes slideInTop {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* انیمیشن‌ها */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.shake {
    animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Alert ها */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(233, 233, 233, 0.1);
    color: #ffffff;
    border-color: rgb(255 255 255 / 20%);
}

.alert-warning {
    background: rgb(255 255 255 / 10%);
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .trip-cards {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .header {
        margin: 10px 10px 10px 10px;
        width: auto;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-height: calc(var(--app-height, 100vh) - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-light);
        border-top: none;
        border-radius: 20px;
        z-index: 10001;
    }
    
    .nav-menu.show {
        display: flex;
        margin: 5px 0 0;
        z-index: 10001;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-radius: var(--radius-lg);
        justify-content: flex-start;
        color: #000;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #000;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .quick-actions .btn {
        width: 100%;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .trip-cards {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trip-route {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
                .trip-actions {
        justify-content: center;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 0.5rem !important;
    }
    
    .trip-actions .btn {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 80px !important;
        max-width: none !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.5rem !important;
    }
    
    .trip-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    .header {
        margin: 10px 10px 10px 10px;
        width: auto;
    }
    .dashboard-header {
        padding: 1.5rem 1rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        min-height: 100px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    .trip-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    

    
    .login-container {
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        
        --border-color: #334155;
        --border-light: #1e293b;
    }
    
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .header,
    .login-container,
    .form-container,
    .stat-card,
    .chart-container,
    .empty-state {
        background: rgba(15, 23, 42, 0.95);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .form-input {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }
    
    .nav-menu a {
        color: #000;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #000;
        background: rgba(0, 0, 0, 0.05);
    }
    
    .stat-number,
    .trip-title {
        color: var(--text-primary);
    }
    
    .stat-label,
    .trip-date {
        color: var(--text-secondary);
    }
}

/* Loading States */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .nav-menu,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* فرم‌های پیشرفته */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* نوع سفر */
.trip-type-options {
    margin-top: 1rem;
}

.trip-type-option {
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.trip-type-option input[type="checkbox"] {
    display: none;
}

.trip-type-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--bg-primary);
}

.trip-type-option input[type="checkbox"]:checked + .trip-type-content {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trip-type-content i {
    font-size: 1.5rem;
    color: #ffffff;
}

.trip-type-content div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trip-type-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.trip-type-content small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* کارت‌های سفر پیشرفته */
.trip-description {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(6, 182, 212, 0.03));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.trip-description i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.trip-description span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.trip-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.meta-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* پروفایل */
.profile-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.profile-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.profile-section:first-child {
    text-align: center;
}

.profile-section:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.profile-header {
    text-align: center;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: visible;
    box-shadow: var(--shadow-lg);
}

.profile-content {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.verification-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-md);
    z-index: 10;
}
.fa-map-marker-alt {
    color: rgb(0, 0, 0)!important; }
.fa-bell {
        color: rgb(0, 0, 0)!important; }
       
.profile-info {
    text-align: center;
}

.profile-name {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.profile-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.profile-detail i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.profile-detail span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ناوبری */
.navigation-actions {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

/* Responsive برای فرم‌ها */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .form-actions .btn {
        width: auto;
        min-width: 120px;
    }
    
    .trip-meta {
        grid-template-columns: 1fr;
    }
    
    .profile-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .profile-header {
        padding: 2rem 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-details {
        gap: 0.75rem;
    }
    
    .profile-detail {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .trip-type-content {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .trip-description {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .meta-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Passenger Cards */
.passengers-section {
    margin: 2rem 0;
}

.passenger-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.passenger-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.passenger-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 12px 12px 0 0;
}

.passenger-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.passenger-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.passenger-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.passenger-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* آواتارهای کوچک برای صفحه مالی */
.passenger-avatar-small {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

/* ===== کاربران نزدیک ===== */
.nearby-users-section {
    margin: 2rem 0;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.nearby-users-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-bottom: 1px solid var(--border-color);
}

.nearby-users-section .section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nearby-users-section .section-header h2 i {
    font-size: 1.8rem;
    color: #ffd700;
}

.location-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-toggle .btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.location-toggle .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.location-toggle .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.location-toggle .btn-success {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.location-toggle .btn-success:hover {
    background: #45a049;
    border-color: #45a049;
}

.nearby-users-container {
    padding: 2rem;
}

.nearby-users-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.nearby-users-content {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.nearby-user-item {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 4s ease-in-out;
    z-index: 10;
}

.nearby-user-item:hover {
    transform: scale(1.1);
    z-index: 20;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.user-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

/* محافظت از دانلود عکس‌های پروفایل */
.user-profile-image,
.user-avatar img,
.passenger-profile-image,
.profile-image,
.trip-user-info img {
    user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.user-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-distance {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.distance-value {
    font-weight: 600;
    color: #4caf50;
}

.distance-unit {
    font-size: 0.7rem;
    opacity: 0.8;
}

.no-nearby-users {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.no-nearby-users i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-nearby-users p {
    font-size: 1.1rem;
    margin: 0;
}

/* نوتفیکیشن دسترسی به موقعیت مکانی (زیر کاربران نزدیک) */
.location-permission-message {
    padding: 2rem 1.5rem;
    margin: 0 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid rgba(76, 175, 80, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.permission-content {
    max-width: 420px;
    margin: 0 auto;
}

.permission-content > i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.permission-content h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #212529;
    font-weight: 600;
}

.permission-content p {
    color: #495057;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.permission-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.25s ease;
}

.permission-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.permission-content .btn i {
    font-size: 1.1rem;
}

/* انیمیشن‌های اضافی */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.nearby-user-item:hover .user-avatar {
    animation: float 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(76, 175, 80, 0.6);
    }
}

.nearby-user-item .user-avatar {
    animation: pulse 3s ease-in-out infinite;
}

/* Toast notifications - نوتفیکیشن موقعیت مکانی و ... (پایین صفحه) */
.toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    left: auto;
    max-width: 360px;
    width: max-content;
    min-width: 180px;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: none;
    z-index: 99999;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
    font-size: 0.95rem;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-info {
    background: rgba(33, 150, 243, 0.96);
    color: #fff;
}

.toast-success {
    background: rgba(76, 175, 80, 0.96);
    color: #fff;
}

.toast-error {
    background: rgba(244, 67, 54, 0.96);
    color: #fff;
}

.toast-warning {
    background: rgba(255, 193, 7, 0.96);
    color: #111;
}

/* Responsive design */
@media (max-width: 768px) {
    .nearby-users-section .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nearby-users-section .section-header h2 {
        font-size: 1.3rem;
    }
    
    .nearby-users-container {
        padding: 1rem;
    }
    
    .nearby-users-box {
        padding: 1rem;
        min-height: 150px;
    }
    
    .nearby-users-content {
        height: 250px;
    }
    
    .nearby-user-item {
        width: 60px;
        height: 60px;
    }
    
    .user-initial {
        font-size: 1.4rem;
    }
    
    .user-distance {
        bottom: -20px;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .permission-content > i {
        font-size: 2.75rem;
    }
    
    .permission-content h3 {
        font-size: 1.15rem;
    }
    
    .location-permission-message {
        margin: 0 1rem 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .toast {
        bottom: 80px;
        right: 10px;
        left: auto;
        max-width: calc(100vw - 20px);
        transform: translateX(calc(100% + 30px));
    }
    .toast.show {
        transform: translateX(0);
    }
}

.passenger-initial-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.passenger-profile-image-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* طراحی فاکتور برای لیست هزینه‌ها */
.invoice-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 1.5rem;
}

.invoice-header {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.invoice-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.invoice-items {
    padding: 0;
}

.invoice-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    gap: 1rem;
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-item:hover {
    background-color: #f8f9fa;
}

.item-number {
    width: 30px;
    height: 30px;
    background: #e8f5e8;
    color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.payer {
    color: #4caf50;
    font-weight: 500;
}

.date {
    color: #999;
}

.item-amount {
    text-align: left;
    flex-shrink: 0;
    min-width: 100px;
}

.amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.currency {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.edit-btn:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-1px);
}

.delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.delete-btn:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-1px);
}

.invoice-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-top: 2px solid #4caf50;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4caf50;
}

/* Responsive برای موبایل */
@media (max-width: 768px) {
    .invoice-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem;
    }
    
    .invoice-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .item-number {
        align-self: flex-start;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .item-details {
        order: 1;
    }
    
    .item-amount {
        order: 2;
        text-align: center;
        background: #f8f9fa;
        padding: 0.75rem;
        border-radius: 8px;
        margin: 0.5rem 0;
    }
    
    .item-actions {
        order: 3;
        justify-content: center;
        gap: 1rem;
    }
    
    .action-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .invoice-footer {
        padding: 1rem;
    }
    
    .total-section {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .invoice-container {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .invoice-item {
        padding: 0.75rem;
    }
    
    .item-title {
        font-size: 0.95rem;
    }
    
    .amount {
        font-size: 1rem;
    }
    
    .total-amount {
        font-size: 1.2rem;
    }
}



.passenger-name {
    text-align: center;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.passenger-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.passenger-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.passenger-detail i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.passenger-detail span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.passenger-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Settlement System Styles */
.owner-settlement-card,
.passengers-settlement-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.settlement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.settlement-card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.debt-amount {
    background: var(--error-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.credit-amount {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.balanced-amount {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

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

.settlement-checkbox-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.passenger-settlement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

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

.passenger-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.passenger-info .passenger-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.passenger-info .debt-amount {
    font-size: 0.85rem;
}

.owner-settlement .settlement-text {
    font-weight: 600;
    color: var(--primary-color);
}

.settlement-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.settlement-note i {
    color: var(--primary-color);
}

/* Responsive Design for Settlement */
@media (max-width: 768px) {
    .owner-settlement-card,
    .passengers-settlement-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .settlement-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .passenger-settlement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settlement-checkbox-container {
        width: 100%;
        justify-content: space-between;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-secondary);
    margin: 2% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    max-height: 95vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: rgb(0, 0, 0);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #4caf50;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #4caf50;
    transform: scale(1.1);
}

.modal-header i {
    margin-left: 0.5rem;
}

.close {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== چت حرفه‌ای ===== */
#chatModal .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-height: 100vh !important;
    background: #e5ddd5 !important;
    display: flex !important;
    flex-direction: column !important;
}

#chatModal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

/* هدر چت */
.chat-header {
    background: #075e54;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.chat-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-back-btn:hover {
    background: rgba(255,255,255,0.1);
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-avatar-initial {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.chat-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.chat-title-text {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-last-seen {
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* منطقه پیام‌ها */
#chatMessages {
    flex: 1;
    min-height: 0;
    background: #e5ddd5;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* دکمه اسکرول به پایین */
.chat-scroll-to-bottom {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #075e54;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.3s;
    font-size: 20px;
}

.chat-scroll-to-bottom:hover {
    background: #128c7e;
    transform: scale(1.1);
}

.chat-scroll-to-bottom.show {
    display: flex;
}

/* حباب پیام */
.chat-message-wrapper {
    display: flex;
    margin: 8px 0;
    padding: 0 4px;
    animation: messageSlideIn 0.3s ease-out;
}

.chat-message-wrapper.sent {
    justify-content: flex-end;
}

.chat-message-wrapper.received {
    justify-content: flex-start;
}

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

.chat-message-bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    word-wrap: break-word;
    position: relative;
}

.chat-message-bubble.sent {
    background: #dcf8c6;
    border-top-left-radius: 8px;
    border-top-right-radius: 2px;
    color: #000;
}

.chat-message-bubble.received {
    background: #ffffff;
    border-top-left-radius: 2px;
    border-top-right-radius: 8px;
    color: #000;
}

.chat-message-text {
    word-break: break-word;
    line-height: 1.4;
    font-size: 15px;
}

.chat-message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(0,0,0,0.6);
}

.chat-message-time {
    font-size: 11px;
    color: rgba(0,0,0,0.6);
}

.chat-message-status {
    font-size: 14px;
    margin-left: 2px;
}

.chat-message-status.sent {
    color: #999;
}

.chat-message-status.delivered {
    color: #999;
}

.chat-message-status.read {
    color: #4fc3f7;
}

/* Media در پیام */
.chat-media-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
}

.chat-media-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: transform 0.2s;
}

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

.chat-media-video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.chat-media-audio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
}

.chat-media-audio.sent {
    background: rgba(255,255,255,0.2);
}

.chat-media-audio.received {
    background: #f0f0f0;
}

.chat-audio-icon {
    font-size: 20px;
    color: #075e54;
}

.chat-audio-player {
    flex: 1;
}

/* منوی انتخاب media */
.chat-media-menu,
#chatMediaMenu {
    display: none !important;
    background: white;
    padding: 20px;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.chat-media-menu.show,
#chatMediaMenu.show {
    display: flex !important;
    animation: slideUp 0.3s ease-out;
}

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

.chat-media-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.2s;
    min-width: 80px;
}

.chat-media-option:hover {
    background: #f0f0f0;
}

.chat-media-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.chat-media-icon.image {
    background: #25d366;
}

.chat-media-icon.video {
    background: #128c7e;
}

.chat-media-icon.audio {
    background: #34b7f1;
}

.chat-media-icon.file {
    background: #6b7280;
}

.chat-media-icon.location {
    background: #f59e0b;
}

.chat-media-icon.contact {
    background: #8b5cf6;
}

.chat-media-icon.voice {
    background: #e91e63;
}

.chat-media-label {
    font-size: 14px;
    color: #333;
}

/* نوار ورودی پیام */
.chat-input-container {
    background: white;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.chat-media-btn {
    background: #075e54;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-media-btn:hover {
    background: #128c7e;
    transform: rotate(90deg);
}

.chat-media-btn:active {
    transform: rotate(90deg) scale(0.95);
}

#chatInput {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
}

#chatInput:focus {
    border-color: #075e54;
}

.chat-send-btn {
    background: #25d366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #20ba5a;
    transform: scale(1.05);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Progress بارگذاری */
.chat-upload-progress {
    display: none;
    padding: 8px 12px;
    background: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.chat-upload-progress.show {
    display: block;
}

.chat-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.chat-progress-fill {
    height: 100%;
    background: #25d366;
    transition: width 0.3s;
    border-radius: 2px;
}

.chat-progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

/* ویس رکوردر */
.chat-voice-recorder {
    background: #075e54;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: none;
    position: relative;
    transition: background 0.3s;
}

.chat-voice-recorder.cancel-mode {
    background: #d32f2f;
}

.chat-voice-recorder-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.chat-voice-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex-shrink: 0;
}

.chat-voice-info i {
    font-size: 24px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chat-voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 50px;
    flex: 1;
}

.wave-bar {
    width: 3px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    height: 20px;
    transition: height 0.1s;
}

.chat-voice-recorder.cancel-mode .wave-bar {
    background: rgba(255,255,255,0.5);
}

@keyframes waveAnimation {
    0%, 100% {
        height: 15px;
        opacity: 0.6;
    }
    50% {
        height: 45px;
        opacity: 1;
    }
}

.chat-voice-time {
    font-size: 16px;
    font-weight: 500;
    color: white;
    min-width: 50px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.chat-voice-cancel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
    flex-shrink: 0;
    pointer-events: none;
}

.chat-voice-recorder.cancel-mode .chat-voice-cancel {
    opacity: 1;
    transform: translateX(0);
}

.chat-voice-cancel i {
    font-size: 24px;
}

.chat-voice-cancel span {
    font-size: 12px;
    font-weight: 500;
}

.chat-voice-btn {
    background: #075e54;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
}

.chat-voice-btn:hover {
    background: #128c7e;
}

.chat-voice-btn:active {
    background: #0f4c3f;
    transform: scale(0.95);
}

.chat-voice-btn.recording {
    background: #f44336;
    animation: recordingPulse 1s ease-in-out infinite;
    position: relative;
    transform: none;
}

@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
}

/* ویس رکوردر inline */
.chat-voice-wave-container {
    display: none;
    flex: 1;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #075e54;
    border-radius: 20px;
    color: white;
}

.chat-input-container.recording-mode {
    background: white;
}

.chat-input-container.recording-mode .chat-voice-wave-container {
    display: flex;
}

.chat-input-container.recording-mode.cancel-mode .chat-voice-wave-container {
    background: #d32f2f;
}

.chat-voice-wave-container .chat-voice-time {
    font-size: 14px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.chat-voice-wave-container .chat-voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 30px;
    flex: 1;
}

.chat-voice-wave-container .wave-bar {
    width: 3px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    height: 15px;
    transition: height 0.1s;
}

.chat-input-container.recording-mode.cancel-mode .chat-voice-wave-container .wave-bar {
    background: rgba(255,255,255,0.5);
}

.chat-voice-cancel-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: white;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    flex-shrink: 0;
    pointer-events: none;
    font-size: 12px;
}

.chat-input-container.recording-mode.cancel-mode .chat-voice-cancel-inline {
    opacity: 1;
    transform: translateX(0);
}

.chat-voice-cancel-inline i {
    font-size: 18px;
}

.chat-voice-cancel-inline span {
    font-size: 10px;
    font-weight: 500;
}

/* Hint و Status */
#chatHint {
    opacity: 0.7;
    display: block;
    padding: 8px;
    text-align: center;
    background: white;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
}

/* Loading State */
.chat-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* پیام خالی */
.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-message-bubble {
        max-width: 85%;
    }
    
    .chat-scroll-to-bottom {
        bottom: 70px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}

.passenger-form {
    padding: 2rem;
}

/* Trip Selector */
.trip-selector {
    max-width: 400px;
}

.trip-selector .form-group {
    margin-bottom: 0;
}

/* Trip Info */
.trip-info {
    margin: 2rem 0;
}

.trip-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.trip-info .trip-card {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design for Passenger Cards */
@media (max-width: 768px) {
    .passenger-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .passenger-card {
        padding: 1rem;
    }
    
    .passenger-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .passenger-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .passenger-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .passenger-initial {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .passenger-name {
        font-size: 1rem;
    }
    
    .passenger-detail {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Financial Summary */
.financial-summary {
    margin: 2rem 0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 12px 12px 0 0;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.summary-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.summary-amount {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.total-amount {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: rgb(0, 0, 0);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Expense Cards - Beautiful List Style */
.expenses-section {
    margin: 2rem 0;
}

.expense-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.expense-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.expense-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #4caf50;
    border-radius: 20px 20px 0 0;
}

.expense-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expense-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.15);
    border-color: #4caf50;
}

.expense-card:hover::after {
    opacity: 1;
}

.expense-card-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
}

.expense-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.expense-title::before {
    content: '💸';
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.expense-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #4caf50;
    border-radius: 2px;
}

.expense-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expense-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #718096;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.expense-detail:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
    transform: translateX(5px);
}

.expense-detail i {
    width: 18px;
    color: #4caf50;
    font-size: 1rem;
    text-align: center;
}

.expense-amount-section {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 18px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.expense-amount-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.expense-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.expense-amount-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.expense-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 120px;
}

.expense-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
}

.expense-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.expense-actions .btn:hover::before {
    left: 100%;
}

.expense-actions .btn-primary {
    background: #4caf50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.expense-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.expense-actions .btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
}

.expense-actions .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.6);
}

/* Responsive for expense cards */
@media (max-width: 768px) {
    .expense-card-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .expense-actions {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }
    
    .expense-amount-section {
        min-width: auto;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .expense-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Expense Form */
.expense-form {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.expense-form .form-group {
    margin-bottom: 1rem;
}

.expense-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.expense-form .form-label i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
    font-size: 0.9rem;
}

.expense-form .form-input {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.expense-form .form-input[type="text"],
.expense-form .form-input[type="number"],
.expense-form select {
    height: 55px;
}

.expense-form textarea {
    min-height: 60px;
    resize: vertical;
}

.expense-form .form-help {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.expense-form .form-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.expense-form .form-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* Responsive Design for Financial Summary and Expenses */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        max-width: none;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .expense-form {
        padding: 0.75rem;
    }
    
    .expense-form .form-group {
        margin-bottom: 0.75rem;
    }
    
    .expense-form .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .expense-form .form-actions .btn {
        width: 100%;
        padding: 0.7rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .expense-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .expense-card {
        padding: 1rem;
    }
    
    .expense-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .expense-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .expense-actions .btn {
        width: 100%;
    }
    
    .expense-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .summary-amount {
        font-size: 1.1rem;
    }
    
    .expense-title {
        font-size: 1rem;
    }
    
    .expense-amount {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .expense-detail {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Financial Overview */
.financial-overview {
    margin: 2rem 0;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.overview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.overview-card.primary::before {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.overview-card.success::before {
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

.overview-card.warning::before {
    background: linear-gradient(90deg, var(--warning-color), var(--accent-color));
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.overview-icon i {
    color: #4caf50;
}

.overview-card.primary .overview-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.overview-card.success .overview-icon {
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
}

.overview-card.warning .overview-icon {
    background: linear-gradient(135deg, var(--warning-color), var(--accent-color));
}

.overview-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.overview-number {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

/* Financial Details */
.financial-details {
    margin: 2rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.detail-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-header h3 i {
    color: var(--primary-color);
}

.detail-amount {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-status.debtor {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.detail-status.creditor {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.detail-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.detail-empty i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Passenger Details in Finance */
.passenger-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.passenger-detail .passenger-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}



.passenger-settlement {
    display: flex;
    align-items: center;
}

.settlement-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.settlement-checkbox:hover {
    background: rgba(102, 126, 234, 0.1);
}

.settlement-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.settlement-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
}

.settlement-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.settlement-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.settlement-checkbox input[type="checkbox"]:checked ~ .settlement-text {
    color: #10b981;
    font-weight: 600;
}

/* Settlement Section */
.settlement-section {
    margin: 2rem 0;
}

.settlement-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.settlement-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.settlement-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.settlement-status {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.settlement-info {
    text-align: center;
    margin-bottom: 1rem;
}

.settlement-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.settlement-info i {
    color: var(--info-color);
}

.settled-count {
    color: #10b981;
    font-weight: 700;
}

.total-count {
    color: var(--text-secondary);
}

.settlement-progress {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 6px;
    transition: all 0.5s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Step by Step Form Styles */
.step-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block;
}

/* اطمینان از اینکه step 4 فقط زمانی نمایش داده شود که فعال باشد */
.form-step[data-step="4"] {
    display: none;
}

.form-step[data-step="4"].active {
    display: block;
}

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

.progress-container {
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #22c55e);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 16.66%; /* 1/6 steps */
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2;
    margin: auto;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 85%;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.step.completed .step-number {
    background: #22c55e;
    color: white;
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 1.2rem;
}

.step-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-title {
    color: #22c55e;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.step-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.step-navigation .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trip-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.trip-summary h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Trip Type Info Cards */
.trip-type-info {
    margin-top: 1.5rem;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(1);
}

.info-card.active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.info-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.info-card .card-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--border-light);
    color: var(--text-secondary);
}

.status-badge.active {
    background: var(--primary-color);
    color: white;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-card li i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .step-indicators {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.settlement-actions {
    text-align: center;
}

.btn-complete-trip {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

.btn-complete-trip:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.settlement-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.settlement-note i {
    color: var(--primary-color);
}

.passenger-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.passenger-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.passenger-phone {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.passenger-financial {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.passenger-amount {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.passenger-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.passenger-status.debtor {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.passenger-status.creditor {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Expenses List in Finance */
.expenses-list {
    margin: 2rem 0;
}

.expenses-list .expense-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive Design for Financial Pages */
@media (max-width: 768px) {
    .overview-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .passenger-detail {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .passenger-financial {
        align-items: flex-start;
        width: 100%;
    }
    
    .passenger-settlement {
        width: 100%;
        justify-content: flex-start;
    }
    
    .settlement-container {
        padding: 1.5rem;
    }
    
    .settlement-status {
        font-size: 1rem;
    }
    
    .btn-complete-trip {
        width: 100%;
        padding: 1rem;
    }
    
    .expenses-list .expense-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .overview-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .overview-icon i {
        color: #4caf50;
    }
    
    .overview-number {
        font-size: 1.1rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .passenger-detail {
        padding: 0.8rem;
    }
    
    .passenger-name {
        font-size: 0.8rem;
    }
    
    .passenger-phone {
        font-size: 0.7rem;
    }
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin: 0 2rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

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

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

.tab-content {
    display: none;
}

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

/* Contacts List */
.contacts-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-primary);
}

.contact-item:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-item .contact-avatar {
    margin-left: 1rem;
}

.contact-item .contact-info {
    flex: 1;
}

.contact-item .contact-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-item .contact-info span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.empty-contacts {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-contacts i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-contacts p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.file-info {
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-info i {
    font-size: 1rem;
}

/* Container انتخاب شهر */
.city-selection-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.city-selection-container .form-input {
    flex: 1;
}

.city-selection-container .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* دکمه‌های کوچک */
.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* دکمه ثانویه */
.btn-secondary {
    background: linear-gradient(135deg, var(--text-secondary), #334155);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #334155, var(--text-secondary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* انیمیشن spinner */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

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

/* نمایش تاریخ درخواست */
.request-date {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

/* کارت‌های درخواست */
.request-cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.request-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.request-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.user-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.user-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* وضعیت‌های درخواست */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.approved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.removed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* پیام درخواست */
.request-message {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.request-message i {
    color: var(--primary-color);
    margin-top: 0.125rem;
}

.request-message span {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* متا اطلاعات درخواست */
.request-meta {
    margin: 1rem 0;
}

.request-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* عملیات درخواست */
.request-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* بهبود نمایش دکمه‌های وضعیت */
.trip-actions .btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.trip-actions .btn.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

/* Responsive برای درخواست‌ها */
@media (max-width: 768px) {
    .request-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .request-actions {
        flex-direction: column;
    }
    
    .request-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* نوتفیکیشن badge */
.notification-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
    animation: notification-pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

@keyframes notification-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    }
}

/* بهبود نمایش badge در منو - فقط برای notification-badge */
.nav-menu li a .notification-badge {
    margin: 0;
    flex-shrink: 0;
}

/* بهبود نمایش badge روی دکمه‌ها */
.btn .notification-badge {
    margin: 0 0 0 0.5rem;
    flex-shrink: 0;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
}

/* اطمینان از اینکه سایر آیکون‌ها تحت تأثیر قرار نگیرند */
.nav-menu li a i:not(.notification-badge) {
    color: #000;
    /* بازگرداندن استایل‌های اصلی آیکون‌ها */
    animation: none;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    min-width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}

/* اطمینان از اینکه route-arrow تحت تأثیر notification badge قرار نگیرد */
.route-arrow {
    transform: none !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive برای breadcrumb و dashboard-header */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .breadcrumb ol {
        gap: 0.5rem;
    }
    
    .breadcrumb a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .welcome-section {
        min-width: auto;
        text-align: center;
    }
    
    .welcome-section h1 {
        font-size: 1.75rem;
        justify-content: center;
    }
    
    .dashboard-subtitle {
        justify-content: center;
        font-size: 1.1rem;
    }
    
    .trip-route {
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .header-actions {
        justify-content: center;
        width: 100%;
    }
    
    .header-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .trip-count, .request-count, .passenger-count {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.75rem;
    }
    
    .breadcrumb a {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .trip-count, .request-count, .passenger-count {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* انیمیشن fade-in بهبود یافته */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* انیمیشن‌های مختلف برای عناصر مختلف */
.fade-in.delay-1 {
    animation-delay: 0.1s;
}

.fade-in.delay-2 {
    animation-delay: 0.2s;
}

.fade-in.delay-3 {
    animation-delay: 0.3s;
}

.fade-in.delay-4 {
    animation-delay: 0.4s;
}

/* SMS Test Page Styles */
.sms-test-sections {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.sms-test-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.sms-test-card .section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.sms-test-card .section-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sms-test-card .section-header h2 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Template Info Styles */
.template-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.template-details h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-details h4 i {
    color: var(--primary-color);
}

.template-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.template-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.template-details li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.template-details li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.template-details li a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.bulk-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bulk-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.bulk-row .form-group {
    margin: 0;
}

.bulk-row .btn-danger {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: auto;
    height: auto;
}

.api-info {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.info-item span {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    background: var(--card-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.api-key {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.countdown {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    animation: pulse 2s infinite;
}

/* Responsive Design for SMS */
@media (max-width: 768px) {
    .sms-test-card {
        padding: 1.5rem;
    }
    
    .template-details li {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .bulk-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bulk-row .btn-danger {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sms-test-card {
        padding: 1rem;
    }
    
    .sms-test-card .section-header h2 {
        font-size: 1.25rem;
    }
    
    .template-info {
        padding: 1rem;
    }
    
    .template-details h4 {
        font-size: 1rem;
    }
    
    .bulk-inputs {
        gap: 1rem;
    }
}

/* ===== CSS های جدید برای صفحات مسافران ===== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Finance Overview */
.finance-overview {
    margin-bottom: 2rem;
}

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

.overview-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.overview-card.positive {
    border-left: 4px solid var(--success-color);
}

.overview-card.negative {
    border-left: 4px solid var(--danger-color);
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.overview-card.positive .overview-icon {
    background: var(--success-color);
}

.overview-card.negative .overview-icon {
    background: var(--danger-color);
}

.overview-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.overview-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.overview-status {
    margin-top: 0.5rem;
}

.status-positive {
    color: var(--success-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.status-negative {
    color: var(--danger-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Expenses Details */
.expenses-details {
    margin-bottom: 2rem;
}

.expense-category {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.category-title i {
    color: var(--primary-color);
}

.category-amount {
    margin-right: auto;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.expenses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.expense-info {
    flex: 1;
}

.expense-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.expense-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expense-payer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.expense-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.empty-expenses {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-expenses i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Final Summary */
.final-summary {
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.summary-title i {
    color: var(--primary-color);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.summary-item.positive {
    border-left: 4px solid var(--success-color);
}

.summary-item.negative {
    border-left: 4px solid var(--danger-color);
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-item.positive .summary-value {
    color: var(--success-color);
}

.summary-item.negative .summary-value {
    color: var(--danger-color);
}

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
}

.error-icon {
    font-size: 4rem;
    color: var(--warning-color);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.error-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Trip Driver Info */
.trip-driver {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.trip-driver i {
    color: var(--primary-color);
}

/* Responsive Design for Passenger Pages */
@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .expense-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .expense-amount {
        align-self: flex-end;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .summary-value {
        align-self: flex-end;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

/* ===== Public Trips Page Styles ===== */

/* Header Section */
.public-trips-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.public-trips-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.public-trips-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.public-trips-header .header-text {
    flex: 1;
}

.public-trips-header .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-trips-header .main-title i {
    font-size: 2rem;
    opacity: 0.9;
}

.public-trips-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.public-trips-header .stats-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.public-trips-header .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.public-trips-header .stat-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.public-trips-header .stat-item i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.public-trips-header .header-actions {
    flex-shrink: 0;
}

.public-trips-header .btn-create {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.public-trips-header .btn-create:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.search-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.advanced-search-form {
    max-width: 800px;
    margin: 55px;
    text-align: center;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: end;
    justify-items: center;
}

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

.search-button-group {
    display: flex;
    align-items: flex-end;
}

.search-button-group .btn-search {
    height: 48px;
    margin-top: 0;
}

.search-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.search-input,
.search-select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: var(--bg-primary);
}

.search-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-search {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
}

.btn-clear {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.results-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-toggle {
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-toggle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Trips Table - Compact and Clean */
.trips-table {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 1rem;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 0.8fr 0.8fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(79, 70, 229, 0.05);
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.header-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 0.8fr 0.8fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
    align-items: center;
}

.table-row:hover {
    background: rgba(79, 70, 229, 0.02);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.title-cell {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.trip-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.title-text {
    font-weight: 600;
    color: var(--text-primary);
}

.trip-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.trip-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.3;
    opacity: 0.8;
}

.route-cell {
    justify-content: center;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.route-info .origin {
    color: #10b981;
    font-weight: 500;
}

.route-info .destination {
    color: #ef4444;
    font-weight: 500;
}

.route-info i {
    color: var(--primary-color);
    font-size: 0.7rem;
    opacity: 0.7;
}

.user-cell {
    justify-content: center;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Enhanced Trip Cards in Dashboard */
.trip-card.enhanced {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trip-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.trip-card.enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.trip-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-initial {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.user-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.user-location i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.trip-card.enhanced .trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.trip-card.enhanced .trip-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: right;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trip-card.enhanced .trip-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.trip-card.enhanced .trip-date i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.trip-card.enhanced .trip-route {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.route-point {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    display: inline-block;
}

.route-point.origin {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.route-point.destination {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.route-arrow {
    margin: 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.trip-card.enhanced .trip-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trip-card.enhanced .trip-actions .btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.trip-card.enhanced .trip-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.passenger-cell {
    justify-content: center;
}

.passenger-count {
    color: var(--text-secondary);
    font-weight: 500;
}

.date-cell {
    justify-content: center;
}

.date-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.action-cell {
    justify-content: center;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.status-badge.owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.approved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.removed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-join-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-join-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* Responsive grid adjustments */
@media (min-width: 1200px) {
    .trips-grid {
        grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .trips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .trips-table {
        border-radius: var(--radius-md);
    }
    
    .table-header {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .header-cell {
        display: none;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-light);
        position: relative;
    }
    
    .table-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border-light);
    }
    
    .table-cell {
        justify-content: flex-start;
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .title-cell {
        order: 1;
        border-bottom: 1px solid rgba(79, 70, 229, 0.1);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .route-cell {
        order: 2;
        justify-content: flex-start;
    }
    
    .user-cell {
        order: 3;
        justify-content: flex-start;
    }
    
    .passenger-cell {
        order: 4;
        justify-content: flex-start;
    }
    
    .date-cell {
        order: 5;
        justify-content: flex-start;
    }
    
    .action-cell {
        order: 6;
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(79, 70, 229, 0.1);
    }
    
    .trip-title {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .trip-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .trip-desc {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .route-info {
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .btn-join-small {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.trips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trips-list .trip-card-modern {
    max-width: none;
}

/* Modern Trip Cards */
.trip-card-modern {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.trip-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.trip-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.trip-card-modern .card-header {
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
    min-height: 40px;
}

.trip-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.trip-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-card-modern .card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trip-card-modern .trip-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}

.trip-card-modern .trip-description {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.route-container {
    margin-bottom: 1rem;
}

.route-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(6, 182, 212, 0.06));
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    position: relative;
}

.route-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.4;
    z-index: 0;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.point-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.route-point.origin .point-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.route-point.destination .point-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.point-info {
    display: flex;
    flex-direction: column;
}

.point-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.point-city {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.route-arrow {
    color: var(--primary-color);
    font-size: 1.25rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.trip-card-modern .card-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.trip-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.meta-item.full-width {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.trip-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.owner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge.owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: flex-start;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.request-status {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: center;
    text-align: center;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.approved {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.removed {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Request Status Display */
.request-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
    margin-top: 0.75rem;
}

.request-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-join {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--primary-color);
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state-modern p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .trips-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .public-trips-header .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .public-trips-header .stats-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .public-trips-header {
        padding: 2rem 1.5rem;
    }
    
    .public-trips-header .main-title {
        font-size: 2rem;
    }
    
    .public-trips-header .stats-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-button-group {
        align-items: stretch;
    }
    
    .search-button-group .btn-search {
        width: 100%;
        height: auto;
        padding: 0.875rem 1rem;
    }
    
    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .route-line {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .route-line::before {
        display: none;
    }
    
    .route-arrow {
        transform: rotate(90deg);
    }
    
    .trip-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-search,
    .btn-clear {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .public-trips-header {
        padding: 1.5rem 1rem;
    }
    
    .public-trips-header .main-title {
        font-size: 1.75rem;
    }
    
    .search-container {
        padding: 1.5rem 1rem;
    }
    
    .trip-card-modern .card-header,
    .trip-card-modern .card-body,
    .trip-card-modern .card-footer {
        padding: 1rem;
    }
    
    .route-line {
        padding: 1rem;
    }
    
    .point-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .point-city {
        font-size: 1rem;
    }
}

/* ===== My Trips Page Styles ===== */

/* Hero Section */
.hero-section {
    background: #4caf50;
    border-radius: var(--radius-3xl);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    border-radius: 30px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}



.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Trips Content */
.trips-content {
    margin-bottom: 3rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.header-left h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

.filter-tab.active {
    background: var(--primary-color);
    color: white;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

/* Hide view-controls on mobile devices */
@media (max-width: 768px) {
    .view-controls {
        display: none;
    }
}

/* Search Instruction Styles */
.search-instruction {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.instruction-content {
    max-width: 600px;
    margin: 0 auto;
}

.instruction-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instruction-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.instruction-details {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.5;
}

.view-btn {
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Trips Container */
.trips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

/* Simple Trip Route Display (like dashboard and trips) */
.trip-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.trip-route .route-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.trip-route .route-arrow {
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.7;
}

/* Desktop: 3 cards per row */
@media (min-width: 1200px) {
    .trips-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .trip-route {
        padding: 1.5rem;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .route-point {
        font-size: 1.1rem;
    }
    
    .route-arrow {
        font-size: 1.6rem;
    }
}

/* Tablet: 2 cards per row */
@media (min-width: 768px) and (max-width: 1199px) {
    .trips-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .trip-route {
        padding: 1.25rem;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .route-point {
        font-size: 0.95rem;
    }
    
    .route-arrow {
        font-size: 1.35rem;
    }
}

.trips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trips-list .trip-item {
    max-width: none;
}

/* Trip Items */
.trip-item {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
}

.trip-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.trip-main {
    padding: 2rem;
}

@media (max-width: 768px) {
    .trip-main {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .trip-main {
        padding: 1rem;
    }
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.trip-type {
    display: flex;
    gap: 0.75rem;
}

.type-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-badge.owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.type-badge.passenger {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.visibility-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visibility-badge.public {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.visibility-badge.private {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.trip-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trip-info {
    margin-bottom: 2rem;
}

.trip-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.trip-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.route-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    position: relative;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.point-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.route-point.origin .point-marker {
    background: linear-gradient(135deg, #10b981, #059669);
}

.route-point.destination .point-marker {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.point-details {
    display: flex;
    flex-direction: column;
}

.point-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.point-city {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.route-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin: 0 1rem;
}

.connection-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.5;
}

.connection-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

.trip-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-item.owner-info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.2);
}

.stat-item.owner-info i {
    color: #f59e0b;
}

/* Trip Actions */
.trip-actions {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-group.primary {
    justify-content: center;
}

.action-group.warning {
    justify-content: center;
}

.action-group.management {
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.action-group.passenger {
    justify-content: center;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    margin-bottom: 45px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 45px;
}

.empty-visual {
    margin-bottom: 2rem;
    position: relative;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.empty-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.decoration-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trips-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .trip-route {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .route-point {
        font-size: 0.9rem;
    }
    
    .route-arrow {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trips-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .trip-route {
        padding: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .route-point {
        font-size: 0.85rem;
    }
    
    .route-arrow {
        font-size: 1.1rem;
    }
    
    .action-group {
        flex-direction: column;
        width: 100%;
    }
    
    .action-group .btn {
        width: 100%;
        text-align: center;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .trips-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .trip-route {
        padding: 0.5rem;
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }
    
    .route-point {
        font-size: 0.8rem;
    }
    
    .route-arrow {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        padding: 1.5rem 1rem;
    }
    
    .trip-main {
        padding: 1.5rem;
    }
    
    .trip-actions {
        padding: 1rem 1.5rem;
    }
    
    .route-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .route-connection {
        margin: 0;
        transform: rotate(90deg);
    }
    

}

/* ===== Create Trip Page Styles ===== */

/* Hero Section */
.create-trip-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: var(--radius-3xl);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border-radius: 30px;

}

.create-trip-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.create-trip-hero .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 20px 20px;
    animation: patternMove 20s linear infinite;
}

.create-trip-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.create-trip-hero .hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.create-trip-hero .hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: iconPulse 3s ease-in-out infinite;
}

.create-trip-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titleGlow 4s ease-in-out infinite;
}

.create-trip-hero .hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    opacity: 0.9;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-item i {
    color: #10b981;
    font-size: 1.1rem;
    animation: featureIcon 2s ease-in-out infinite;
}

.create-trip-hero .hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.create-trip-hero .hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.create-trip-hero .floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.create-trip-hero .floating-card.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.create-trip-hero .floating-card.card-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.create-trip-hero .floating-card.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

/* Create Trip Form */
.create-trip-form {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 3rem;
}

.form-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.trip-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: nowrap;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.section-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Route Container */
.route-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, rgb(73 229 70 / 5%), rgb(18 212 6 / 5%));
        border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
    position: relative;
    margin-top: 2rem;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.point-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.route-point.origin .point-marker {
    background: linear-gradient(135deg, #10b981, #059669);
}

.route-point.destination .point-marker {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.point-content {
    flex: 1;
}

.route-connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}



.connection-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.connection-arrow i {
    transition: transform 0.3s ease;
}

/* Trip Type Options */
.trip-type-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* اطمینان از نمایش صحیح آیکن‌های globe */
.fas.fa-globe {
    color: rgb(0, 0, 0) 
    display: inline-block image.png
    vertical-align: middle;
}

/* اطمینان از نمایش صحیح آیکن‌های sun */
.fas.fa-sun {
    color: var(--primary-color) !important;
    display: inline-block !important;
    vertical-align: middle;
    opacity: 0.9;
}

.trip-type-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.trip-type-option input[type="checkbox"] {
    display: none;
}

.trip-type-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    flex-wrap: nowrap;
}

.trip-type-option:hover .trip-type-content {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trip-type-option input[type="checkbox"]:checked + .trip-type-content {
    border-color: var(--primary-color);
    background: linear-gradient(89deg, rgb(39 201 90 / 5%), rgb(2 188 45 / 5%));
    box-shadow: var(--shadow-lg);
}

.type-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.type-info {
    flex: 1;
}

.type-info strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.type-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.type-benefits {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.benefit-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Trip Type Info Cards */
.trip-type-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card.public h4 i {
    color: var(--primary-color);
}

.info-card.private h4 i {
    color: var(--warning-color);
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.info-card li:before {
    content: '✓';
    position: absolute;
    right: 20px;
    color: var(--success-color);
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Align login form actions in a single row */
.login-form .form-actions {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
}

/* Ensure login form actions stay in row even on mobile */
@media (max-width: 768px) {
    .login-form .form-actions {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-wrap: nowrap !important;
    }
    
    .login-form .form-actions .btn {
        width: auto !important;
        min-width: 120px !important;
        flex: 0 0 auto !important;
    }
}

.btn-create-trip {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-create-trip:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .create-trip-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .create-trip-hero .hero-title {
        font-size: 3rem;
    }
    
    .route-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .route-connection {
        margin: 0;
        transform: rotate(90deg);
    }
    
    .route-connection .connection-arrow {
        transform: rotate(90deg);
    }
    
    .route-connection .connection-line {
        transform: rotate(90deg);
    }
    
    /* تغییر جهت فلش در موبایل */
    .route-connection .connection-arrow i {
        transform: rotate(90deg);
    }
    
    .trip-type-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .create-trip-hero {
        padding: 3rem 1.5rem;
        min-height: 350px;
    }
    
    .create-trip-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    

    
    .route-container {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .route-point {
        flex-direction: column !important;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .point-marker {
        margin-bottom: 0;
        order: 1;
    }
    
    .point-content {
        order: 2;
        width: 100%;
    }
    
    .route-connection {
        margin: 0;
        transform: rotate(90deg);
    }
    
    .route-connection .connection-arrow {
        transform: rotate(90deg);
    }
    
    /* تغییر جهت فلش در موبایل */
    .route-connection .connection-arrow i {
        transform: rotate(90deg);
    }
    
    .form-actions {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .create-trip-hero {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .create-trip-hero .hero-title {
        font-size: 2rem;
    }
    
    .trip-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .route-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .route-point {
        gap: 0.75rem;
    }
    
    .point-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .connection-arrow {
        font-size: 1.25rem;
    }
    
    /* تغییر جهت فلش در موبایل کوچک */
    .route-connection .connection-arrow i {
        transform: rotate(90deg);
    }
    
    .btn-create-trip {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

/* بهبودهای انتخاب نوع سفر */
.trip-type-options {
    margin: 2rem 0;
}

.trip-type-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trip-type-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.trip-type-option input[type="checkbox"] {
    display: none;
}

.trip-type-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.type-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.type-info strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.type-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.type-benefits {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.benefit-tag {
    background: #4caf5024;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    cursor: help;
}

.benefit-tag:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
}

.benefit-tag i {
    font-size: 0.8rem;
}

/* چک باکس سفارشی */
.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: var(--transition);
    margin-right: 1rem;
}

.checkbox-custom i {
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

.trip-type-option input[type="checkbox"]:checked + .trip-type-content + .checkbox-custom {
    background: #4caf50;
    border-color: var(--primary-color);
}

.trip-type-option input[type="checkbox"]:checked + .trip-type-content + .checkbox-custom i {
    opacity: 1;
}

/* کارت‌های اطلاعات */
.trip-type-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0.7;
    transform: scale(1);
}

.info-card.active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.info-card.public.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.info-card.private.active {
    border-color: var(--text-secondary);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.status-badge.active {
    background: var(--success-color);
    color: white;
}

.info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1.20rem;
    font-size: 0.9rem;
}

.info-card li i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.card-footer small {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* خلاصه نوع سفر */
.trip-type-summary {
    background: linear-gradient(135deg, rgb(87 249 91 / 15%), rgb(35 212 6 / 15%));    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.trip-type-summary.public-active {
    background: linear-gradient(135deg, rgb(87 249 91 / 15%), rgb(35 212 6 / 15%));    border-color: var(--primary-color);
}

.trip-type-summary.private-active {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15), rgba(156, 163, 175, 0.15));
    border-color: var(--text-secondary);
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.summary-content i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Tooltip برای benefit tags */
.benefit-tooltip {
    position: absolute;
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.benefit-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.trip-type-option {
    animation: slideInUp 0.6s ease-out;
}

.info-card {
    animation: scaleIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .trip-type-info {
        grid-template-columns: 1fr;
    }
    
    .trip-type-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .type-benefits {
        justify-content: flex-start;
    }
    
    .checkbox-custom {
        position: absolute;
        top: 1rem;
        left: 1rem;
    }
}

/* بهبود انیمیشن‌ها */
.trip-type-option input[type="checkbox"]:checked ~ .trip-type-content .type-icon {
    animation: pulse 0.6s ease-in-out;
}

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

/* حالت hover برای کارت‌ها */
.info-card:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* انیمیشن برای benefit tags */
.benefit-tag {
    animation: fadeInUp 0.4s ease-out;
}

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

@keyframes patternMove {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0 0;
    }
    100% {
        background-position: 100% 100%, 100% 100%, 100% 100%, 40px 40px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

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

/* ابرها حذف شدند - فقط ماشین کوچک */

/* Car Animation CSS - Exact from Car/car.css */
.car-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car {
    position: relative;
    transform: scale(0.8) translateX(-50%);
    z-index: 10;
    /* ماشین در حالت عادی وسط باشد */
    left: 50%;
    transition: all 0.3s ease;
}

.car.moving {
    /* ماشین در حال حرکت */
    transform: scale(0.8) translateX(50%);
    left: 100%;
}

/* انیمیشن‌های قدیمی حذف شدند */

.tyre {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3f3f40;
    position: absolute;
    z-index: 2;
    left: 9px;
    top: 20px;
    -moz-animation: tyre-rotate 1s infinite linear;
    -webkit-animation: tyre-rotate 1s infinite linear;
}

@keyframes tyre-rotate {
    from {transform: rotate(-360deg);}
    to {transform: rotate(0deg);}
}

.tyre:before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #bdc2bd;
    position: absolute;
    top: 5px;
    left: 5px;
}

.gap {
    background: #3f3f40;
    width: 2px;
    height: 4px;
    position: absolute;
    left: 14px;
    top: 8px;
    box-shadow: 0 9px 0 #3f3f40;
}

.gap:before {
    content: '';
    display: block;
    width: 2px;
    height: 4px;
    position: absolute;
    background: #3f3f40;
    box-shadow: 0 12px 0 #3f3f40;
    -webkit-transform: rotate(-90deg);
    -webkit-transform-origin: 0 7px;
    -moz-transform: rotate(-90deg);
    -moz-transform-origin: 0 7px;
    z-index: 3;
}

.car-base {
    position: absolute;
    display: block;
    width: 125px;
    height: 30px;
    background: #000000;
    border-radius: 10% 10% 50% 50% / 60% 100% 20% 10%;
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    border: solid;
    border-color: #000000;
}

.back-bonet {
    background: #4c4b4b;
    border-radius: 54% 25% 0 0;
    height: 22px;
    left: 11px;
    position: absolute;
    top: 8px;
    width: 40px;
}

.tyre.front {
    left: 94px;
}

.car-body {
    border-bottom: 24px solid #4caf50;
    height: 0;
    top: 10px;
    width: 120px;
    position: relative;
}

.car-body:before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 24px;
    position: absolute;
    right: -5px;
    background: #4caf50;
    border-top-right-radius: 4px;
    z-index: 1;
}

.car-body:after {
    content: '';
    display: inline-block;
    width: 121px;
    border-bottom: 1px solid #2e7d32;
    border-right: 2px solid transparent;
    height: 0;
    z-index: 2;
    position: absolute;
}

.car-gate {
    width: 32px;
    height: 20px;
    background: #4caf50;
    border-radius: 0 0 2px 8px / 0 0 2px 8px;
    box-shadow: 0 0 0 1px #2e7d32;
    position: absolute;
    left: 48px;
}

.car-gate:before {
    content: '';
    width: 8px;
    height: 2px;
    background: #4c4b4b;
    position: absolute;
    top: 2px;
    left: 4px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.car-top-back {
    background: none repeat scroll 0 0 #4C4B4B;
    border-radius: 5px 0 0 0;
    height: 20px;
    left: 4px;
    position: absolute;
    top: -20px;
    width: 58px;
}

.car-top-back:before {
    width: 30px;
    height: 15px;
    background: #736f6f;
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    border-radius: 2px;
}

.car-top-back:after {
    content: '';
    background: #4c4b4b;
    border-radius: 30%;
    height: 5px;
    left: 3px;
    position: absolute;
    top: -1px;
    width: 62px;
}

.car-top-front {
    top: -19px;
    position: absolute;
    left: 47px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-left: 1px solid #3d9e40;
    border-radius: 2px 0 0 0;
}

.car-top-front:after {
    width: 26px;
    height: 20px;
    -webkit-transform: skew(37deg);
    -moz-transform: skew(37deg);
    background: #4caf50;
    content: '';
    position: absolute;
    top: 0;
    left: 6px;
    border-radius: 4px 0 4px 4px;
}

.car-top-front:before {
    width: 12px;
    height: 5px;
    background: #4caf50;
    content: '';
    position: absolute;
    top: 14px;
    left: 28px;
    z-index: 1;
    border: solid #4caf50;
    border-width: 0 1px 1px 0;
}

.wind-sheild {
    top: 3px;
    left: 3px;
    position: absolute;
    z-index: 3;
    width: 18px;
    height: 12px;
    background: #f5e7e7;
    border-radius: 0 3px 0 0;
}

.wind-sheild:after {
    width: 12px;
    height: 12px;
    -webkit-transform: skew(25deg);
    -moz-transform: skew(25deg);
    background: #f5e7e7;
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    border-radius: 3px;
}

.boundary-tyre-cover {
    position: absolute;
    top: 14px;
    left: 10px;
    border-bottom: 20px solid #4c4b4b;
    border-right: 10px solid transparent;
    height: 0;
    width: 20px;
}

.boundary-tyre-cover:before {
    content: '';
    position: absolute;
    display: inline-block;
    background: #4c4b4b;
    height: 20px;
    width: 15px;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    border-radius: 3px;
    left: -6px;
    top: 0;
}

.boundary-tyre-cover:after {
    content: '';
    position: absolute;
    display: inline-block;
    background: #4c4b4b;
    height: 20px;
    width: 20px;
    -webkit-transform: skewX(40deg);
    -moz-transform: skewX(40deg);
    border-radius: 3px;
    right: -14px;
    top: 0;
}

.boundary-tyre-cover-inner {
    position: absolute;
    top: 4px;
    left: 4px;
    border-bottom: 16px solid black;
    border-right: 10px solid transparent;
    height: 0;
    width: 15px;
    z-index: 2;
}

.boundary-tyre-cover-inner:before {
    content: '';
    position: absolute;
    display: inline-block;
    background: black;
    height: 16px;
    width: 15px;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    border-radius: 3px 3px 0 0;
    left: -6px;
    top: 0;
}

.boundary-tyre-cover-inner:after {
    content: '';
    position: absolute;
    display: inline-block;
    background: black;
    height: 16px;
    width: 20px;
    -webkit-transform: skewX(40deg);
    -moz-transform: skewX(40deg);
    border-radius: 3px 3px 0 0;
    right: -11px;
    top: 0;
}

.boundary-tyre-cover-back-bottom {
    position: absolute;
    width: 14px;
    height: 8px;
    background: #4c4b4b;
    top: 12px;
    left: -19px;
}

.bonet-front {
    background: #4caf50;
    border-radius: 5px 258px 0 38px / 36px 50px 0 0;
    height: 4px;
    position: absolute;
    right: 0;
    top: -4px;
    width: 40px;
    z-index: 0;
}

.back-curve {
    background: none repeat scroll 0 0 #4C4B4B;
    border-radius: 960% 100% 0 0;
    height: 20px;
    left: -3px;
    position: absolute;
    top: 1px;
    transform: rotate(6deg);
    width: 5px;
}

.stepney {
    height: 6px;
    left: -4px;
    position: absolute;
    top: 6px;
    width: 8px;
    z-index: -1;
    background: #3f3f40;
}

.stepney:before {
    width: 8px;
    height: 12px;
    background: #3f3f40;
    content: '';
    position: absolute;
    top: -10px;
    left: -7px;
    border-radius: 3px 3px 0 0;
}

.stepney:after {
    width: 8px;
    height: 12px;
    background: #0d0c0d;
    content: '';
    position: absolute;
    top: 0px;
    left: -7px;
    border-radius: 0 0 3px 3px;
}

.tyre-cover-front {
    background: #4c4b4b;
    height: 4px;
    left: 97px;
    position: absolute;
    top: 13px;
    width: 22px;
    z-index: 1;
}

.tyre-cover-front:before {
    background: none repeat scroll 0 0 #4c4b4b;
    content: "";
    display: inline-block;
    height: 21px;
    left: -10px;
    position: absolute;
    top: 0;
    transform: skewX(-30deg);
    width: 10px;
    z-index: 6;
    border-radius: 4px 0 0 0;
}

.tyre-cover-front:after {
    background: none repeat scroll 0 0 #4c4b4b;
    content: "";
    display: inline-block;
    height: 6px;
    left: 14px;
    position: absolute;
    top: 0;
    transform: skewX(30deg);
    width: 17px;
    z-index: 6;
    border-radius: 0 4px 2px 0;
}

.boundary-tyre-cover-inner-front {
    position: absolute;
    top: 4px;
    left: 4px;
    border-bottom: 16px solid black;
    border-right: 10px solid transparent;
    height: 0;
    width: 15px;
    z-index: 7;
}

.boundary-tyre-cover-inner-front:before {
    background: none repeat scroll 0 0 #000000;
    border-radius: 3px 3px 0 0;
    content: "";
    display: inline-block;
    height: 17px;
    left: -10px;
    position: absolute;
    top: 0;
    transform: skewX(-30deg);
    width: 15px;
}

.boundary-tyre-cover-inner-front:after {
    content: '';
    position: absolute;
    display: inline-block;
    background: black;
    height: 16px;
    width: 20px;
    -webkit-transform: skewX(25deg);
    -moz-transform: skewX(25deg);
    border-radius: 3px 3px 0 0;
    right: -12px;
    top: 0;
}

.base-axcel {
    background: none repeat scroll 0 0 black;
    bottom: -15px;
    height: 10px;
    left: 30px;
    position: absolute;
    transform: rotate(-2deg);
    width: 70px;
    z-index: -1;
}

.base-axcel:before {
    background: none repeat scroll 0 0 black;
    border-radius: 0 0 0 10px / 0 0 0 5px;
    content: "";
    height: 10px;
    left: -35px;
    position: absolute;
    top: -2px;
    transform: rotate(6deg);
    width: 30px;
}

.base-axcel:after {
    background: none repeat scroll 0 0 black;
    border-radius: 0 0 0 10px / 0 0 0 5px;
    content: "";
    height: 10px;
    right: -33px;
    position: absolute;
    top: -1px;
    transform: rotate(-4deg);
    width: 40px;
    border-radius: 0 10px 5px 0;
}

.front-bumper {
    background: none repeat scroll 0 0 #4c4b4b;
    border-radius: 0 2px 2px 0;
    height: 8px;
    position: absolute;
    right: -15px;
    width: 11px;
    z-index: 1;
    -moz-transform: rotate(-5deg);
    -webkit-transform: rotate(-5deg);
}

.front-bumper:before {
    background: none repeat scroll 0 0 #000000;
    content: "";
    height: 10px;
    left: -7px;
    position: absolute;
    transform: rotate(-22deg);
    width: 9px;
    z-index: 1;
}

.car-shadow {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    bottom: -15px;
    box-shadow: -5px 10px 15px 3px #000000;
    left: -7px;
    position: absolute;
    width: 136px;
}

/* Responsive adjustments for car */
@media (max-width: 768px) {
    .car-container {
        height: 100px;
    }
    
    .car {
        transform: scale(0.6) translateX(-50%);
    }
    
    @-moz-keyframes myfirst {
        0% {left: 50%; transform: scale(0.6) translateX(-50%);}
        100% {left: 100%; transform: scale(0.6) translateX(-50%);}
    }
    
    @-webkit-keyframes myfirst {
        0% {left: 50%; transform: scale(0.6) translateX(-50%);}
        100% {left: 100%; transform: scale(0.6) translateX(-50%);}
    }
    
    .car.moving {
        transform: scale(0.6) translateX(-50%);
    }
}

@media (max-width: 480px) {
    .car-container {
        height: 80px;
    }
    
    .car {
        transform: scale(0.5) translateX(-50%);
    }
    
    @-moz-keyframes myfirst {
        0% {left: 50%; transform: scale(0.5) translateX(-50%);}
        100% {left: 100%; transform: scale(0.5) translateX(-50%);}
    }
    
    @-webkit-keyframes myfirst {
        0% {left: 50%; transform: scale(0.5) translateX(-50%);}
        100% {left: 100%; transform: scale(0.5) translateX(-50%);}
    }
    
    .car.moving {
        transform: scale(0.5) translateX(-50%);
    }
}
/* ابرها حذف شدند - فقط ماشین کوچک */

/* Car Animation CSS - Exact from Car/car.css */
.car-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car {
    position: relative;
    transform: scale(0.8);
    z-index: 10;
    /* ماشین در مرکز باشد */
    left: 0%;
    transform: scale(0.8) translateX(-50%);
    transition: left 2s ease-in-out;
}

.car.moving {
    -moz-animation: myfirst 2s linear forwards;
    -webkit-animation: myfirst 2s linear forwards;
    /* ماشین در حال حرکت */
    transform: scale(0.8) translateX(-50%);
}

@-moz-keyframes myfirst {
    0% {left: 50%; transform: scale(0.8) translateX(-50%);}
    100% {left: 100%; transform: scale(0.8) translateX(-50%);}
}

@-webkit-keyframes myfirst {
    0% {left: 50%; transform: scale(0.8) translateX(-50%);}
    100% {left: 100%; transform: scale(0.8) translateX(-50%);}
}

/* استایل header-actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* پیام عدم وجود ماشین */
.no-cars-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    margin-top: 2rem;
}

.no-cars-message p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* استایل انتخاب راننده */
.driver-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.or-divider {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* استایل لیست مخاطبین */
.contacts-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-item:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.no-contacts {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* استایل checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.checkbox-label i {
    color: var(--primary-color);
}

/* استایل ماشین راهنما */
.owner-car-info {
    margin-bottom: 1.5rem;
}

.car-item.owner-car {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.car-item.owner-car::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.owner-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #b8860b;
}

.car-item.owner-car .car-title {
    color: var(--primary-color);
    font-weight: 700;
}

.owner-car-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.owner-car-details p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.owner-car-note {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* استایل فرم داخل مودال */
.modal form {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

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

.modal .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.modal .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-primary);
    transition: var(--transition);
}

.modal .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.modal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    flex-direction: row-reverse;
}

.modal .form-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* بهبود responsive مودال */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 90vh;
    }
    
    .modal form {
        padding: 1rem;
    }
    
    .modal .form-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .modal .form-actions .btn {
        flex: 1;
    }
    
    .driver-selection {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .driver-selection .btn {
        width: 100%;
    }
}



























/* ابرها حذف شدند - فقط ماشین کوچک */













