#home_header {
    /*font-family: 'Vazir', Tahoma, sans-serif; !* فونت فارسی شیک *!*/
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    padding: 25px 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(44, 83, 100, 0.7);
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease;

    position: absolute;
    top: -29%;
    width: 96%;
    margin-right: 2%;
}

/* افکت نور ملایم متحرک */
#home_header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shine 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 12px 28px rgba(255,255,255,0.15);
}

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

#homeWidgetsNew>li{
    width: 25%;
    display: inline-block;
}
#home_services>div{
    text-align: center;
    margin-bottom: 10px;
}
#home_services>div span{
    color: #000;
    margin: 8px 0;
    display: block;
}
#home_services img{
    width: 90%;
    max-width: 60px;
    display: block;
    margin: auto;
}

main.inner_page{
    background-color: #eee;
    height: 100vh !important;
}


/* ****************************start school service*/

/* ================== School Service Styles ================== */

/* Main container for school service pages */
.school-service-container {
    padding: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Stepper/Progress Bar */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}
.step {
    text-align: center;
    z-index: 1;
}
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #757575;
}
.step.active .step-icon {
    background-color: #3498db; /* Active Step Color */
}
.step.completed .step-icon {
    background-color: #2ecc71; /* Completed Step Color */
}
.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

/* General Card Styling */
.service-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}
.service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.service-card-desc {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Map Styling */
.map-container {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.btn-service-primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}
.btn-service-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}
.btn-service-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-3px);
}

/* Method Selection Buttons */
.method-select-btn {
    display: block;
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 16px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
}
.method-select-btn:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.method-select-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #3498db;
}

/* Result Page Styling */
.summary-box, .fare-details-box {
    border: 1px solid #ecf0f1;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.summary-item span:first-child {
    color: #7f8c8d;
}
.summary-item span:last-child {
    font-weight: bold;
    text-align: right;
}
.final-fare {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}
body.service-bg-active::before {
    content: '';
    position: fixed; /* یا absolute اگر main container شما relative است */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: var(--service-bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.9);
    opacity: 0.3;
    transform: scale(1.1);
    transition: opacity 0.5s ease;
}
.page-container {
    animation: fadeIn 0.5s ease-in-out;
    padding-top: 65px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.header-title {
    position: absolute;
    left: 35%;
    transform: translateX(-50%);
    font-weight: 600;
    color: #333;
}
.step.completed .step-icon {
    background-color: #2ecc71 !important;
    animation: popIn 0.3s ease-in-out;
}

.step.completed .step-icon::before {
    content: '\eb7b'; /* کد آیکون تیک در Remix Icon */
    font-family: 'remixicon' !important;
    font-size: 1.5rem;
    color: white;
    line-height: 1;
}

.step.completed .step-icon span {
    display: none; /* پنهان کردن شماره مرحله */
}

@keyframes popIn {
    0% { transform: scale(0.8); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}
/* assets/css/style.css */

main.service-bg-active {
    position: relative; /* مهم برای جای‌گیری صحیح псевдо-элемент */
    z-index: 1;
    background-color: rgba(240, 242, 245, 0.8); /* یک رنگ پس‌زمینه ملایم برای خوانایی بهتر */
    backdrop-filter: blur(5px);
}

main.service-bg-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: var(--service-bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.95);
    opacity: 0.2;
    transform: scale(1.1);
}

/* assets/css/style.css */

/* استایل اصلی کارت‌ها با افکت شیشه‌ای */
.service-card {
    /* ۱. رنگ پس‌زمینه را به یک رنگ نیمه‌شفاف تغییر می‌دهیم */
    background-color: rgba(255, 255, 255, 0.65);

    /* ۲. این خط جادوی اصلی است که محتوای پشت باکس را محو می‌کند */
    backdrop-filter: blur(12px);

    /* ۳. یک حاشیه ظریف برای مشخص کردن لبه‌های شیشه */
    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

/* استایل باکس‌های صفحه نتایج برای هماهنگی */
.summary-box, .fare-details-box {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* استایل عنوان کارت‌ها برای خوانایی بهتر روی پس‌زمینه شیشه‌ای */
.service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #1c2b33; /* کمی تیره‌تر برای کنتراست بهتر */
}
/* ****************************end school service*/
/* ****************************star routes service*/
/* assets/css/style.css */

.route-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.route-card-info {
    flex-grow: 1;
}

.route-point {
    font-size: 0.95rem;
    color: #333;
}

.route-point span {
    font-weight: bold;
    color: #555;
    margin-left: 5px;
}

.route-card-actions {
    display: flex;
    gap: 0.5rem; /* فاصله بین دکمه‌ها */
    margin-top: 10px;
    flex-basis: 100%; /* در موبایل دکمه‌ها تمام عرض می‌شوند */
    justify-content: flex-end;
}

@media (min-width: 576px) {
    .route-card-actions {
        flex-basis: auto; /* در دسکتاپ دکمه‌ها کنار اطلاعات قرار می‌گیرند */
        margin-top: 0;
    }
}

/* استایل دکمه شناور */
.fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    z-index: 100;
}
/* assets/css/style.css */

/* هدر برای لیست ایستگاه‌ها */
.stations-header {
    display: flex;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

.stations-header .name-col {
    flex-grow: 1;
}

.stations-header .meta-col {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    width: 220px; /* عرض ثابت برای هماهنگی با کارت‌ها */
    text-align: center;
}
.stations-header .meta-col > div {
    width: 65px;
}

/* کارت هر ایستگاه */
.station-card {
    display: block;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}
.station-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* آیکون دستگیره برای جابجایی */
.drag-handle {
    cursor: grab;
    color: #adb5bd;
    display: none;
}

.station-card .station-name {
    flex-grow: 1; /* نام ایستگاه تمام فضای باقی‌مانده را می‌گیرد */
}

/* محفظه برای فیلدهای کوچک و دکمه */
.station-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* استایل فیلدهای کوچک */
.station-meta .form-control {
    width: 65px;
    text-align: center;
    font-size: 0.9rem;
}

/* استایل دکمه موقعیت */
.station-meta .location-btn {
    width: 40px;
    height: 37px;
    flex-shrink: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -3px;
}

/* فوتر چسبان برای دکمه‌های اصلی */
.sticky-footer-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #ffffff, rgba(255,255,255,0.9));
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}
.station-card .station-inputs{
    width: 80%;
}
.station-card .location-btn{
    width: 20%;
}
.station-card input{
    margin-bottom: 4px;
}
.station-card input.station-distance, .station-card input.station-order{
    display: inline-block;
    width: 49%;
}
.stations-header .meta-col {
    width: 265px; /* افزایش عرض */
}

/* محفظه برای فیلدهای کوچک و دکمه‌ها */
.station-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* استایل دکمه حذف جدید */
.delete-station-btn {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    position: relative;
    top: -3px;
}
/* ****************************end routes service*/
/* ****************************start taxi routes service*/
.taxi-route-page {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* استایل عمومی هدر صفحات */
.page-header {
    padding: 1rem;
    text-align: center;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}
.page-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

/* استایل کادر جستجو */
.search-box {
    position: sticky;
    top: 60px; /* Adjust based on your header height */
    z-index: 100;
    padding: 0.5rem 1rem 1rem 1rem;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
}
.search-box .form-control {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: none;
}

/* صفحه ۱: انتخاب مسیر */
.route-selection-card {
    display: block;
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.route-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: #2980b9;
}

/* صفحه ۲: انتخاب جهت (رفت/برگشت) */
.direction-card {
    display: block;
    background: #fff;
    padding: 2rem;
    margin-top: 1.5rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.direction-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}
.direction-card .direction-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: -10px;
    margin-left: -10px;
}
.direction-card .station-preview {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 1rem;
    line-height: 1.5;
    height: 250px; /* برای نمایش حدود ۳ خط */
    overflow: hidden;
    overflow-y: auto;
}

/* صفحه ۳ و ۴: انتخاب ایستگاه */
.station-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: #34495e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.station-list-item:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
}
.station-list-item .station-icon {
    font-size: 1.5rem;
    color: #3498db;
    margin-left: 1rem;
}

/* صفحه ۵: نمایش نتیجه */
.result-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    text-align: center;
}
.result-card .trip-summary {
    margin-bottom: 2rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 1.5rem;
}
.result-card .trip-point {
    font-size: 1rem;
    color: #7f8c8d;
}
.result-card .trip-point span {
    font-weight: bold;
    color: #2c3e50;
}
.result-card .fare-title {
    font-size: 1.2rem;
    color: #7f8c8d;
}
.result-card .final-fare {
    font-size: 3.5rem;
    font-weight: 700;
    color: #27ae60; /* رنگ سبز برای قیمت */
    margin: 0.5rem 0;
}
.result-card .distance-info {
    font-size: 1rem;
    color: #95a5a6;
}

.taxi-route-page { animation: fadeIn 0.4s ease-out; }
.page-header { padding: 1.5rem 1rem; text-align: center; }
.page-title { font-size: 1.8rem; font-weight: 700; color: #2c3e50; }
.page-subtitle { font-size: 1rem; color: #7f8c8d; margin-top: 0.25rem; }
.search-box { position: sticky; top: 55px; z-index: 100; padding: 0.5rem 1rem 1rem 1rem; background: rgba(248, 249, 250, 0.85); backdrop-filter: blur(10px); }
.search-input-wrapper { position: relative; }
.search-input-wrapper i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #adb5bd; font-size: 1.2rem; }
.search-box .form-control { border-radius: 50px; padding: 0.8rem 2.5rem 0.8rem 1.5rem; box-shadow: 0 5px 20px rgba(0,0,0,0.08); border: 1px solid #e9ecef; }
.route-selection-card { display: flex; align-items: center; background: #fff; padding: 1.25rem; margin-bottom: 1rem; border-radius: 16px; font-weight: 600; color: #34495e; text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: all 0.3s ease; }
.route-selection-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.12); color: #3498db; }
.route-selection-card .route-icon { font-size: 1.8rem; color: #3498db; margin-left: 1rem; background-color: rgba(52, 152, 219, 0.1); padding: 10px; border-radius: 50%; }
.selection-summary { background-color: #e9f5ff; color: #2980b9; padding: 0.75rem 1.5rem; border-radius: 12px; margin: 0 1rem 1rem 1rem; text-align: center; font-weight: 500; }
.station-list-item { display: flex; align-items: center; background: #fff; padding: 1rem 1.5rem; margin-bottom: 0.75rem; border-radius: 12px; text-decoration: none; color: #34495e; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.2s ease; }
.station-list-item:hover { background-color: #f8f9fa; transform: translateX(-5px); }
.station-list-item .station-icon { font-size: 1.5rem; color: #3498db; margin-left: 1rem; }
.result-card { background: #fff; padding: 2rem; border-radius: 20px; box-shadow: 0 4px 25px rgba(0,0,0,0.1); text-align: center; }
.result-card .trip-summary { margin-bottom: 2rem; border-bottom: 1px dashed #ccc; padding-bottom: 1.5rem; }
.result-card .trip-point { font-size: 1rem; color: #7f8c8d; }
.result-card .trip-point span { font-weight: bold; color: #2c3e50; }
.result-card .fare-title { font-size: 1.2rem; color: #7f8c8d; }
.result-card .final-fare { font-size: 3.5rem; font-weight: 700; color: #27ae60; margin: 0.5rem 0; }
.result-card .distance-info { font-size: 1rem; color: #95a5a6; }

/* --- استایل‌های جدید و اصلاح شده --- */

/* صفحه ۲: کارت‌های انتخاب جهت */
.direction-card .station-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* فاصله بین تگ‌های ایستگاه */
    justify-content: center;
}
.station-pill {
    background-color: #ecf0f1;
    color: #7f8c8d;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    width: 130px;
}
.direction-arrow {
    font-size: 3rem;
    color: #8d9397;
    align-self: center;
}

/* صفحه ۵: تایم‌لاین گرافیکی افقی */
.journey-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}
.journey-card h5 {
    text-align: right;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.trip-timeline-horizontal {
    display: flex;
    align-items: flex-start;
    overflow-x: auto; /* اسکرول افقی در صورت نیاز */
    padding-bottom: 1rem;
}
.timeline-item-h {
    flex: 1 0 100px; /* هر آیتم حداقل ۱۰۰ پیکسل عرض دارد */
    text-align: center;
    position: relative;
    padding-top: 25px; /* فضا برای نقطه */
}
.timeline-item-h::before { /* نقطه */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #adb5bd;
    border: 3px solid #fff;
}
.timeline-item-h::after { /* خط اتصال */
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: #dee2e6;
    z-index: -1;
}
.timeline-item-h:last-child::after {
    display: none; /* حذف خط بعد از آخرین آیتم */
}
.timeline-item-h.start::before { background-color: #27ae60; } /* سبز برای مبدا */
.timeline-item-h.end::before { background-color: #e74c3c; } /* قرمز برای مقصد */
.timeline-item-h-label {
    font-size: 0.8rem;
    color: #34495e;
}
.suggestion-card {
    background: #e9f5ff;
    border: 1px solid #bce0fd;
    color: #0c5460;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.5s;
}
.suggestion-icon {
    font-size: 1.8rem;
    color: #3498db;
}
.suggestion-text {
    flex-grow: 1;
}
/* استایل برای آیتم‌های لیست ایستگاه */
.station-list-item {
    position: relative; /* برای جای‌گیری صحیح تیک */
    transition: all 0.3s ease, background-color 0.5s ease;
    overflow: hidden;
}

/* ۱. استایل برای ایستگاه‌های پشت سر گذاشته شده */
.station-list-item.passed {
    background-color: #e8f5e9; /* سبز بسیار کمرنگ */
    color: #757575; /* متن کمی خاکستری می‌شود */
}

/* تیک سبز در گوشه سمت چپ */
.station-list-item.passed::after {
    content: '\eb7b'; /* کد آیکون تیک در فونت Remix Icon */
    font-family: 'remixicon' !important;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #4caf50; /* سبز */
    opacity: 0.8;
}

/* ۲. استایل برای ایستگاه بعدی که کاربر به آن نزدیک می‌شود */
.station-list-item.next {
    background-color: #fff3e0; /* نارنجی بسیار کمرنگ */
    border: 1px solid #ffe0b2;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

/* انیمیشن نبض برای آیکون ایستگاه بعدی */
.station-list-item.next .station-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* ****************************end taxi routes service*/


/* ================== Taxi Entire Service Styles ================== */
.vehicle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #34495e;
    transition: all 0.3s ease;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.vehicle-card img {
    max-width: 120px;
    margin-bottom: 1rem;
}
.vehicle-card-name {
    font-weight: 600;
    font-size: 1.1rem;
}

/* صفحه سفر زنده */
.trip-dashboard {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 1000;
}
.trip-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}
.stat-item .value { font-size: 1.3rem; font-weight: 700; color: #2c3e50; }
.stat-item .label { font-size: 0.8rem; color: #7f8c8d; }

/* صفحه نتایج */
.trip-receipt { /* مشابه result-card */ }
.feedback-section { margin-top: 2rem; }
.rating-stars { display: flex; justify-content: center; gap: 0.5rem; font-size: 2.5rem; color: #bdc3c7; cursor: pointer; }
.rating-stars .star:hover, .rating-stars .star.selected { color: #f39c12; }
.login-prompt { text-align: center; background: #e9f5ff; padding: 1.5rem; border-radius: 12px; }
/*start feedback*/



.selection-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.selection-card i {
    font-size: 3rem;
    color: #3498db;
    margin-left: 1.5rem;
}

.selection-card-text h5 {
    font-weight: 700;
    margin: 0;
}

.selection-card-text p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0.25rem 0 0 0;
}

.feedback-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.feedback-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #34495e;
    transition: all 0.3s ease;
    font-weight: 600;
}

.feedback-type-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: #3498db;
}

.feedback-type-btn i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #3498db;
}
/* assets/css/style.css */

.feedback-item {
    display: block;
    background-color: #fff;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.feedback-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feedback-item-subject {
    font-weight: 600;
    color: #2c3e50;
}

.feedback-item-status {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

/* رنگ‌بندی وضعیت‌های مختلف */
.status-submitted { background-color: #e0e0e0; color: #616161; }
.status-in_review { background-color: #e3f2fd; color: #1565c0; }
.status-answered { background-color: #e8f5e9; color: #2e7d32; }
.status-closed { background-color: #fbe9e7; color: #c62828; }

.feedback-item-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
}
/* assets/css/style.css */

.chat-bubble {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chat-bubble-user {
    background-color: #e9f5ff; /* رنگ پیام کاربر */
    color: #333;
    border-top-left-radius: 0;
    margin-left: auto; /* چینش به سمت راست */
}

.chat-bubble-admin {
    background-color: #fff; /* رنگ پیام مدیر */
    border: 1px solid #f0f0f0;
    border-top-right-radius: 0;
    margin-right: auto; /* چینش به سمت چپ */
}

.chat-bubble-header {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.chat-bubble-body {
    font-size: 0.95rem;
    white-space: pre-wrap; /* برای حفظ فاصله‌ها و خطوط جدید */
}

.chat-bubble-footer {
    font-size: 0.75rem;
    text-align: left;
    color: #999;
    margin-top: 0.75rem;
}
.modal-header .btn-close{
    position: absolute !important;
    left: 10px !important;
}
.taxi-route-page .page-header>.header-left.btn{
    width: 50px;
    height: 50px;
    background-color: rgba(var(--white), 1);
    -webkit-box-shadow: 2px 3px 6px rgba(192,192,192,0.19);
    box-shadow: 2px 3px 6px rgba(192,192,192,0.19);
    border-radius: 12px;
    font-size: 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: rgba(var(--title), 1);
    border: none;
    padding: 0;
}

.taxi-route-page .page-header>h1{
    position: absolute;
    top: 4%;
    right: 20%;
}
/* ================== Attachment Slots Styling ================== */

.attachment-slots {
    display: flex;
    gap: 1rem; /* فاصله بین اسلات‌ها */
    justify-content: center;
}

.attachment-slot {
    position: relative;
    width: 80px;
    height: 80px;
    border: 2px dashed #bdc3c7;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden; /* برای اینکه прогресс بار از گوشه‌ها بیرون نزند */
    transition: border-color 0.3s ease;
}

.attachment-slot:hover {
    border-color: #3498db;
}

.attachment-label {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.attachment-label i {
    font-size: 2rem;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.attachment-slot:hover .attachment-label i {
    color: #3498db;
}

.attachment-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(236, 240, 241, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    text-align: center;
}

.file-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.file-status i {
    font-size: 1.2rem;
}

.progress {
    width: 100%;
    height: 6px;
    background-color: #dfe6e9;
    border-radius: 3px;
}

.progress-bar {
    background-color: #27ae60;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 0.25rem;
}

/* ================== Ticket Attachments Styling ================== */
.attachments-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.attachment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #34495e;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 0.5rem;
    width: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.attachment-item:hover {
    background-color: #f8f9fa;
    color: #2980b9;
}

.attachment-item .attachment-thumbnail {
    width: 80px;
    height: 60px;
    background-color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
}

.attachment-item .attachment-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-item .attachment-thumbnail i {
    font-size: 2rem;
    color: #95a5a6;
}

.attachment-item .attachment-name {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* ================== Chat Interface Styling ================== */

#chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble-header {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.chat-bubble-body p {
    margin: 0;
}

.chat-bubble-footer {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: left;
    margin-top: 0.5rem;
}

/* --- User's Bubbles (Blue) --- */
.chat-bubble-user {
    background-color: #eaf2ff; /* Light blue background */
    color: #333;
    border-bottom-right-radius: 4px;
    align-self: flex-end; /* Align to the right */
    margin-left: auto;
}
.chat-bubble-user .chat-bubble-header {
    color: #0d6efd;
}

/* --- Admin's Bubbles (Grey) --- */
.chat-bubble-admin {
    background-color: #f1f3f5; /* Light grey background */
    color: #333;
    border-bottom-left-radius: 4px;
    align-self: flex-start; /* Align to the left */
    margin-right: auto;
}
.chat-bubble-admin .chat-bubble-header {
    color: #495057;
}

/* --- Internal Note Bubbles (Yellow) --- */
.chat-bubble-internal {
    background-color: #fff9e6; /* Light yellow background */
    border: 1px solid #ffe8a1;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    margin-right: auto;
}
.chat-bubble-internal .chat-bubble-header {
    color: #b38600;
}

/* --- Attachment Styling within Chat --- */
.attachments-list-chat {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.75rem;
}

.attachment-item-chat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}
.attachment-item-chat:hover {
    background-color: rgba(255, 255, 255, 1);
}
.attachment-item-chat .attachment-thumbnail {
    width: 40px;
    height: 40px;
}

/* ================== Contact Preference Box Styling ================== */
.contact-preference-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 1rem;
    border: 1px solid transparent;
}

.contact-preference-box i {
    font-size: 1.2rem;
}

/* Color Variants */
.contact-preference-box.info {
    background-color: #e6f7ff;
    border-color: #91d5ff;
    color: #00508b;
}
.contact-preference-box.primary {
    background-color: #e7f0ff;
    border-color: #a3c3ff;
    color: #0a3d99;
}
.contact-preference-box.success {
    background-color: #f6ffed;
    border-color: #b7eb8f;
    color: #237804;
}
.contact-preference-box.secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}
.contact-preference-box.warning {
    background-color: #fffbe6;
    border-color: #ffe58f;
    color: #ad8b00;
}
