/* Slider Tabs Container */
.slider-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    direction: rtl;
}

/* Individual Tab Button */
.slider-tab {
    background: #f5f5f5;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 12px 32px;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.slider-tab.active {
    background: #1976d2;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

/* Slider Content */
.slider-content {
    display: none;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 32px 24px;
    max-width: 400px;
    margin: 0 auto;
    direction: rtl;
}

.slider-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.login-form,
#idf_form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* IDF Image */
#idf_form img {
    margin: 16px 0;
    transition: box-shadow 0.2s;
}

#idf_form img:hover {
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
}

/* Responsive */
@media (max-width: 500px) {
    .slider-content {
        padding: 18px 8px;
        max-width: 98vw;
    }

    .slider-tab {
        padding: 10px 12px;
        font-size: 1rem;
    }
}

.nav-tabs .nav-link.active:after {
    background-color: #f2f7ff !important;
    box-shadow: none !important;
}

#loginTab {
    position: relative;
}

#tab-underline {
    border-radius: 2px;
}

html * {
    font-size: 16px;
}

/* Login page header - lighter blue with shine */
.exit-pass-header {
    background: linear-gradient(140deg, #0f2647 0%, #223e9c 40%, #3b5fc7 80%, #223e9c 100%);
    padding: 24px 22px 36px;
    border-radius: 24px 24px 0 0;
}
.exit-pass-header::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(59, 95, 199, 0.15));
}
.exit-pass-title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    text-shadow: 0 2px 12px rgba(34, 62, 156, 0.5);
}
.exit-pass-card {
    animation: cardAppear .6s ease both;
    overflow: hidden;
    border-radius: 24px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Login page refinements (moved from inline style in login.php) */
.exit-pass-body {
    padding: 22px 24px 24px;
}

.exit-pass-body br {
    display: none;
}

.exit-pass-header .lang-selector {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    opacity: .75;
    transition: opacity .2s;
}

.exit-pass-header .lang-selector:hover {
    opacity: 1;
}

.nav-tabs {
    border: none;
    margin-bottom: 6px !important;
    flex-wrap: nowrap;
}

.nav-tabs .nav-link {
    border: none;
    color: #7b8fa6;
    font-weight: 500;
    padding: 6px 18px;
}

.nav-tabs .nav-link.active {
    color: var(--ink, #0b1624);
    font-weight: 700;
}

.nav-tabs .nav-link.active::after {
    box-shadow: none !important;
}

#tab-underline {
    background: linear-gradient(90deg, #18a76c, #1b8fd4) !important;
    height: 3px !important;
    border-radius: 3px;
}

.tab-pane.mt-4 {
    margin-top: 10px !important;
}

.exit-pass-body h2 {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a3a5c;
}

.gradiant_button.blue_torquoise_gradiant button {
    border-radius: 12px !important;
    font-weight: 700;
    padding: 12px 20px;
}

.exit-pass-body .btn-primary,
.exit-pass-body .btn-success {
    border-radius: 10px;
    font-weight: 600;
}

.exit-pass-body .form-control {
    border-radius: 8px;
}

#otp-form {
    margin-top: 6px;
}

#otp-form .otp-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 10px;
}

#otp-form .otp_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    direction: ltr;
    margin: 6px auto 0;
}

#otp-form .otp_div input[type="number"] {
    width: 52px;
    height: 58px;
    margin: 0;
    padding: 0;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #d2dbe8;
    border-radius: 12px;
    background: #ffffff;
    color: #103d73;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    appearance: textfield;
    -webkit-appearance: textfield;
}

#otp-form .otp_div input[type="number"]:focus {
    border-color: #1b8fd4;
    box-shadow: 0 0 0 4px rgba(27, 143, 212, 0.16);
    transform: translateY(-1px);
    outline: none;
}

#otp-form .otp_div input::-webkit-outer-spin-button,
#otp-form .otp_div input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#otp-form .btn-success {
    margin-top: 14px;
    font-size: 1rem;
    padding: 11px 16px;
}

.login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.login-links a {
    font-size: .96rem;
    color: var(--accent, #18a76c);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links a.fw-bold {
    font-size: .99rem;
}

.exit-pass-body hr {
    margin: 10px 0;
    opacity: .4;
}

.exit-pass-card {
    animation: cardAppear .5s ease both;
}

.edu-tooltip-btn {
    padding: .6em 1.5em !important;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 800px) {
    .spinner_text {
        font-size: 30px !important;
    }
}

@media (max-width: 520px) {
    #otp-form .otp_div {
        gap: 6px;
    }

    #otp-form .otp_div input[type="number"] {
        width: 44px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 10px;
    }
}

/* Small phones (iPhone SE, Galaxy S series, etc.) */
@media (max-width: 400px) {
    html * {
        font-size: 14px;
    }

    .nav-tabs .nav-link {
        padding: 6px 10px;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .exit-pass-header {
        padding: 10px 12px 16px;
    }

    .exit-pass-title {
        font-size: 1.05rem;
    }

    .exit-pass-subtitle {
        font-size: 0.82rem;
    }

    .exit-pass-brand img {
        max-width: 100px;
    }

    .exit-pass-body {
        padding: 10px 10px 10px;
    }

    .exit-pass-body h2 {
        font-size: 1rem;
    }

    .edu-tooltip-btn {
        padding: .5em 1em !important;
        font-size: 0.88rem !important;
    }

    .edu-tooltip-btn img {
        height: 20px !important;
    }

    .edu-tooltip-btn .buttonText {
        font-size: 0.85rem;
    }

    .gradiant_button.blue_torquoise_gradiant button {
        padding: 10px 14px;
        font-size: 0.92rem !important;
    }

    .login-links a {
        font-size: 0.85rem;
    }

    #otp-form .otp_div {
        gap: 4px;
    }

    #otp-form .otp_div input[type="number"] {
        width: 38px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
}