﻿ 
/* Thesis check modal themed like ThesisRegistration_check */
#thesisCheckModal .modal-content.light-theme {
    background: linear-gradient(135deg, #0A2647 0%, #144272 100%);
    color: #F6F5F5;
    border: none;
    border-radius: 20px;
}
/* Header themed like ThesisRegistration_check header */
#thesisCheckModal .modal-header.light-theme {
    background: linear-gradient(135deg, #4facfe 97%, #3b82f6 100%);
    color: #ffffff;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 28px 24px; /* increase header height */
    min-height: 110px;
    display: flex;
    align-items: center;
}

    #thesisCheckModal .modal-header.light-theme::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,160C384,139,480,117,576,138.7C672,160,768,224,864,234.7C960,245,1056,203,1152,181.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
        background-size: cover;
        background-position: center;
        pointer-events: none;
    }

#thesisCheckModal .modal-title {
    color: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    font-weight: 700;
}

#thesisCheckModal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

#thesisCheckModal .modal-footer.light-theme {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    border-top: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

    #thesisCheckModal .modal-footer.light-theme::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.08' d='M0,224L48,213.3C96,203,192,181,288,160C384,139,480,117,576,138.7C672,160,768,224,864,234.7C960,245,1056,203,1152,181.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
        background-size: cover;
        background-position: center;
        pointer-events: none;
    }

#thesisCheckModal .form-label.light-theme {
    color: #64CCC5;
}

#thesisCheckModal .form-select.light-theme,
#thesisCheckModal .form-control.light-theme {
    background: #f5f7f9;
    color: #64CCC5;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

#thesisCheckModal .tracking-input {
    position: relative;
}

    #thesisCheckModal .tracking-input i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #64CCC5;
        pointer-events: none;
        z-index: 2;
    }

#thesisCheckModal #modalTrack.form-control.light-theme {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    padding-left: 80px; /* much more space for left icon and placeholder */
    text-align: right; /* RTL text alignment */
    direction: rtl; /* RTL direction */
}

    #thesisCheckModal #modalTrack.form-control.light-theme:focus {
        background: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
        border-color: #64CCC5 !important;
        box-shadow: 0 0 0 0.25rem rgba(100, 204, 197, 0.25) !important;
    }

    #thesisCheckModal #modalTrack.form-control.light-theme::placeholder {
        color: rgba(255,255,255,0.7);
    }

#thesisCheckModal .form-select.light-theme:focus,
#thesisCheckModal .form-control.light-theme:focus {
    background: #f5f7f9;
    color: #4b5563 !important; /* prevent navy/blue text */
    border-color: #64CCC5;
    box-shadow: 0 0 0 0.25rem rgba(100, 204, 197, 0.25);
}

#thesisCheckModal .form-control.light-theme::placeholder {
    color: #6b7280;
}

#thesisCheckModal .form-control.light-theme {
    caret-color: #4b5563;
}

#thesisCheckModal .select2-container--bootstrap-5 .select2-selection {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f7f9;
    border: 1px solid #d1d5db;
    color: #64CCC5;
}

    #thesisCheckModal .select2-container--bootstrap-5 .select2-selection:focus {
        border-color: #64CCC5;
        box-shadow: 0 0 0 3px rgba(100,204,197,0.2);
        color: #64CCC5;
    }

#thesisCheckModal .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #64CCC5 !important;
    color: #fff !important;
}
/* Prevent global input-group focus styles from turning icons blue inside modal */
#thesisCheckModal .input-group:focus-within .input-group-text.light-theme {
    background: rgba(100, 204, 197, 0.12);
    border-color: #64CCC5;
    color: #4b5563 !important;
}

* {
    font-family: Vazirmatn, sans-serif;
}
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #1abc9c;
    --teal-light: #76ead7;
    --teal-dark: #16a085;
    --light-color: #f5f7f8;
    --text-color: #2c3e50;
    --dark-slate: #1a2530;
    --medium-slate: #546e7a;
}
body {
    /*  background: linear-gradient(135deg, #1e3c72, #2a5298); */
    background: linear-gradient(#1e3a8a, #4facfe, #16a085);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.header {
    background: rgba(0, 30, 80, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,160C384,139,480,117,576,138.7C672,160,768,224,864,234.7C960,245,1056,203,1152,181.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
    animation: pulse 2s infinite alternate;
}

.institute-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.3), 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 20px rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.navbar {
    background: rgba(255, 255, 255, 0.1);
     border-radius: 50px;
    padding: 8px 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 15px;
    border-radius: 30px;
}

    .nav-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.2);
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.3);
        color: white;
    }

.login-btn {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 150, 255, 0.4);
}

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 150, 255, 0.6);
    }

.main-content {
    padding: 50px 0;
    flex: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .feature-card:hover {
        transform: translateY(-15px) scale(1.03);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(0, 150, 255, 0.4);
    animation: float 3s infinite ease-in-out;
}

.feature-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-feature {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 150, 255, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-feature:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 150, 255, 0.6);
    }

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

    .btn-feature::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -60%;
        width: 20px;
        height: 200%;
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(30deg);
        transition: all 0.6s;
    }

    .btn-feature:hover::after {
        left: 120%;
    }

/* Modal Styles - Light Theme */
.modal-content.light-theme {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    color: #495057;
}

.modal-header.light-theme {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 249, 250, 0.9);
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
    border: 3px solid white;
}

    .login-icon i {
        font-size: 2rem;
        color: white;
    }

.form-control.light-theme {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    color: #495057;
    border-radius: 10px;
    padding: 12px 15px;
}

    .form-control.light-theme:focus {
        background: rgba(5, 150, 105, 0.08) !important; /* سبز کمرنگ */
        border-color: #4facfe !important;
        box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.25) !important;
        color: #495057 !important;
    }

.input-group:focus-within .form-control.light-theme {
    background: rgba(5, 150, 105, 0.08) !important; /* سبز کمرنگ */
    border-color: #4facfe !important;
}

.input-group-text.light-theme {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.input-group:focus-within .input-group-text.light-theme,
.input-group:focus-within .password-toggle,
.password-toggle:hover {
    background: rgba(79, 172, 254, 0.12) !important;
    border-color: #4facfe !important;
    color: #4facfe !important;
}
/* هماهنگی مرزها برای جلوگیری از پرش بصری هنگام hover/focus */
.input-group .input-group-text.light-theme {
    border-right: 1px solid #ced4da;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.input-group .form-control.light-theme {
    border-left: 0;
    border-right: 0;
}

.input-group .password-toggle {
    border-left: 1px solid #ced4da;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.form-label.light-theme {
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-modal {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 150, 255, 0.4);
    }

.password-toggle {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 15px;
    color: #6c757d;
    line-height: 1;
    white-space: nowrap;
}

    .password-toggle:focus {
        box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.25);
    }

.input-group .password-toggle.active {
    background: rgba(79, 172, 254, 0.12) !important;
    color: #4facfe !important;
    border-color: #4facfe !important;
}

.news-section {
    margin-top: 50px;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.news-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.news-more {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

    .news-more:hover {
        text-decoration: underline;
    }

/* Professional Footer */
.footer {
    background: linear-gradient(to right, #2c3e10, #4a6191);
     color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

    .footer h5 {
        font-weight: 700;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 2px;
            background: #4facfe;
            transition: width 0.3s ease;
        }

        .footer h5:hover::after {
            width: 80px;
        }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        display: block;
    }

        .footer-links a:hover {
            color: #4facfe;
            padding-right: 8px;
        }

.footer-social {
    margin-top: 20px;
}

    .footer-social a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        color: white;
        margin-left: 10px;
        transition: all 0.3s ease;
    }

        .footer-social a:hover {
            background: #4facfe;
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
        }

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
     padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter {
    display: flex;
    margin-top: 20px;
}

    .footer-newsletter input {
        flex: 1;
        border: none;
        padding: 12px 15px;
        border-radius: 5px 0 0 5px;
        background: rgba(255, 255, 255, 0.9);
    }

    .footer-newsletter button {
        background: #4facfe;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 0 5px 5px 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .footer-newsletter button:hover {
            background: #00f2fe;
        }

/* Animations */
@keyframes pulse {
    from {
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.6);
    }

    to {
        box-shadow: 0 0 25px rgba(0, 150, 255, 0.9), 0 0 40px rgba(0, 150, 255, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: rgba(0, 30, 80, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .institute-name {
        font-size: 1.3rem;
    }

    .main-content {
        padding: 30px 0;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .navbar {
        padding: 6px 15px;
    }

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

    .login-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .footer .row > div {
        margin-bottom: 30px;
    }
}

 
