@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');

body {
    font-family: 'Vazir', sans-serif;
    background-color: #121212;
    color: #E0E0E0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

#contact-box {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

#contact-box a {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: center;
    line-height: 50px; 
}

#contact-box a img {
    width: 32px;
    height: 32px;
}

#contact-box a:hover {
    background-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}


#contact-box a:hover img {
    filter: brightness(1) invert(0);
}


#warning-box {
    max-width: 350px;
    width: 100%;
    background-color: #f8b600;
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-top: 20px;
    position: relative;
}

#warning-box p, #warning-box h2 {
    color: #1f1f1f;
}

#warning-box::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff0000;
    animation: blink 2s infinite;
    position: absolute;
    top: 10px;
    right: 10px;
}

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


#trip-container {
    max-width: 350px;
    width: 100%;
    background-color: #1F1F1F;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-top: 1%;
}

h2 {
    color: #BB86FC;
    margin-bottom: 20px;
    font-size: 24px;
}

select, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-family: 'vazir', sans-serif;
    background-color: #2C2C2C;
    color: #E0E0E0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
}

label {
    font-size: 16px;
    color: #BB86FC;
    margin-left: 10px;
    cursor: pointer;
}

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

.checkbox-container .checkmark {
    width: 24px;
    height: 24px;
    background-color: #2C2C2C;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #BB86FC;
}

.checkbox-container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #121212;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

#calculate {
    background-color: #BB86FC;
    font-family: 'vazir', sans-serif;
    color: #121212;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#calculate:disabled {
    background-color: #5C5C5C;
    font-family: 'vazir', sans-serif;
    cursor: not-allowed;
}

#claculate:hover:not(:disabled) {
    background-color: #9C4DFF;
    font-family: 'vazir', sans-serif;
}

#schedule {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    padding: 5px;
    margin-top: 15px;
    background-color: #1A1A1A;
    display: none;
}

#schedule.show {
    display: block;
}

#schedule::-webkit-scrollbar {
    width: 8px;
}

#schedule::-webkit-scrollbar-track {
    background: #2C2C2C;
    border-radius: 4px;
}

#schedule::-webkit-scrollbar-thumb {
    background: #BB86FC;
    border-radius: 4px;
}

#schedule::-webkit-scrollbar-thumb:hover {
    background: #9C4DFF;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #121212;
    transition: background-color 0.3s ease;
}

.arrival-time {
    text-align: left;
}

.departure-time {
    text-align: right;
}

.missed {
    background-color: #c70e30;
}

.ongoing {
    background-color: #ffb300;
}

.future {
    background-color: #08a920;
}

.current-time {
    background-color: #ffeb3b !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
    animation: pulse 2s infinite;
}

.near-time {
    background-color: #ffeb3b !important;
    color: #000 !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
    }
}

@media (max-width: 600px) {
    #trip-container {
        padding: 20px;
    }

    h2 {
        font-size: 22px;
    }

    select, button {
        font-size: 14px;
        font-family: 'vazir', sans-serif;
        padding: 10px;
    }
}

.switch-tabs {
    display: flex;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.switch-slider {
    position: absolute;
    top: 0;
    bottom: 15px;
    width: 50%;
    background: #db0000; 
    transition: right 0.25s ease;
    border-radius: 10px;
    z-index: 1;
}

.switch-btn {
    flex: 1;
    z-index: 2;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #bbb;
    padding: 0.7rem 0;
    cursor: pointer;
    transition: color 0.25s ease;
}

.switch-btn.active {
    color: #ffffff;
}


.no-service {
    background-color: #db0000;
    color: #ffffff;
    text-align: center;
    font-weight: normal;
    border-radius: 6px;
}


.footer {
    width: inherit;
    text-align: center;
}

.footer a {
    color: #BB86FC;
}