﻿/* ==================== GLOBAL RESET ==================== */


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height:100%;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    position: relative;
    background-color: #00264d;
    color: white;
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom-right-radius: 100px;
    z-index: 1;
    overflow: hidden;
}

    .top-bar .left,
    .top-bar .center,
    .top-bar .right {
        display: flex;
        align-items: center;
    }

    .top-bar .center {
        flex: 2;
        justify-content: center;
    }

    .top-bar .right {
        flex: 1;
        justify-content: flex-end;
        gap: 40px;
    }

    .top-bar > * {
        position: relative;
        z-index: 1;
    }

.header-curve {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 100px;
    z-index: 0;
}

.logo-container {
    max-height: 100px;
    display: flex;
    align-items: center;
}

    .logo-container img {
        max-height: 100px;
        object-fit: contain;
        transition: transform 0.8s ease-in-out;
        transform-style: preserve-3d;
    }

        .logo-container img:hover {
            transform: rotateY(180deg);
        }

/* ==================== NAVIGATION ==================== */
.custom-navbar {
    background-color: #00264d !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .custom-navbar .navbar-brand,
    .custom-navbar .navbar-nav .nav-link,
    .custom-navbar .text-white {
        color: white !important;
    }

    .custom-navbar .nav-link {
        padding: 10px 15px;
        font-weight: 700;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

        .custom-navbar .nav-link.active,
        .custom-navbar .nav-link:hover {
            background-color: #004080;
        }

/* ==================== LOGIN SECTION ==================== */
.container {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    perspective: 1000px; /* Enable 3D space */
   
}


.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-left {
    flex: 1;
    padding: 5px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

    .login-left:hover {
        transform: rotateY(-5deg);
    }

    .login-left h2 {
        color: #00264d;
        margin-bottom: 10px;
    }

    .login-left p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        color: #555;
    }

.form-group {
    margin-bottom: 5px;
    position: relative;
}

    .form-group i {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: #777;
    }

    .form-group input {
        width: 100%;
        padding: 5px 5px 5px 30px;
        border: 1px solid #ccc;
        border-radius: 5px;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus {
            border-color: #00264d;
            outline: none;
        }

    .form-group a {
        display: block;
        text-align: right;
        font-size: 0.9em;
        color: #00264d;
        text-decoration: none;
    }

.login-button,
.office-login {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    transform: perspective(600px) translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-button {
    background-color: #00264d;
    color: white;
}

    .login-button:hover {
        background-color: #004080;
    }

    .login-button:hover,
    .office-login:hover {
        transform: perspective(600px) translateZ(10px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    }

.office-login {
    background-color: white;
    border: 1px solid #ccc;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/*.login-right {
                    flex: 1;
                    background: url('../img/EnglishPT.jpg') no-repeat center center;
                    background-size: cover;
                }*/


.login-right {
    flex: 1;
    background: url('../img/EnglishPT.jpg') no-repeat center center;
    background-size: cover;
    transition: background-image 1s ease-in-out;
}

/* ==================== VERTICAL BUTTON MENU ==================== */
.vertical-button-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotateY(20deg);
    transform-style: preserve-3d;
    perspective: 800px;
    gap: 15px;
    z-index: 3;
    animation: floatMenu 5s ease-in-out infinite;
}

.v-btn {
    background: linear-gradient(145deg, #0a0f2c, #1e2a78);
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px 0 0 50px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 183, 255, 0.3), 0 0 8px rgba(0, 183, 255, 0.6);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    .v-btn:hover {
        transform: scale(1.1) rotateY(-10deg) translateX(-8px);
        background: linear-gradient(145deg, #1e2a78, #3247ff);
        box-shadow: 0 6px 30px rgba(0, 183, 255, 0.4), 0 0 10px rgba(0, 183, 255, 0.8), inset 0 0 12px rgba(0, 183, 255, 0.4);
    }

    .v-btn.logout {
        background: linear-gradient(145deg, #5b0000, #8e1d1d);
    }

        .v-btn.logout:hover {
            background: linear-gradient(145deg, #8e1d1d, #ff4c4c);
            box-shadow: 0 6px 20px rgba(255, 50, 50, 0.4), 0 0 12px rgba(255, 50, 50, 0.6);
        }

@@keyframes floatMenu {
    0%, 100% {
        transform: translateY(-50%) rotateY(20deg) translateZ(0);
    }

    50% {
        transform: translateY(-52%) rotateY(25deg) translateZ(15px);
    }
}

.floating-menu {
    animation: floatMenu 3s ease-in-out infinite;
}

.floating-menu {
    animation: floatMenu 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* ==================== BRANCH MENU ==================== */
.login-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 1300px;
    height: 50vh; /* Responsive height based on viewport height */
    max-height: 350px;
}


.branch-menu {
    background-color: #00264d;
    color: white;
    padding: 30px 20px;
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 350px;
    min-height: 300px;
}

    .branch-menu h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

    .branch-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .branch-menu li {
        margin-bottom: 12px;
    }

    .branch-menu a {
        color: white;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .branch-menu a:hover {
            color: #aad8ff;
            padding-left: 5px;
            transform: translateY(-3px);
            color: #aad8ff;
        }

.placement-panel .collapse {
     max-height: 200px; /* max visible height */
    overflow-y: auto;
    transition: height 0.3s ease;
}

.placement-panel .card {
    box-shadow: none;
    border: none;
    font-size: 0.95rem;
}
/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 10px;
    background-color: #00264d;
    color: white;
    font-size: 0.9em;
    border-top-left-radius: 100px;
}

    .footer a {
        color: #aad8ff;
        margin: 0 10px;
        text-decoration: none;
    }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transform-style: preserve-3d;
    }

        .top-bar .left,
        .top-bar .center,
        .top-bar .right {
            flex: 1 0 100%;
            justify-content: center;
            margin: 20px 0;
        }

    .login-wrapper {
        flex-direction: column;
    }

    .login-right {
        height: 200px;
    }

    .vertical-menu-wrapper {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .vertical-menu {
        background-color: #333;
        border-radius: 10px;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease-in-out, opacity 0.4s, transform 0.4s;
        pointer-events: none;
    }

        .vertical-menu.show {
            max-height: 500px;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .vertical-menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .vertical-menu .nav-link {
            display: block;
            padding: 10px 20px;
            color: white;
            text-decoration: none;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

            .vertical-menu .nav-link:hover {
                background-color: #444;
            }

    .menu-toggle-btn {
        background-color: #007bff;
        color: white;
        padding: 10px 15px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        margin-bottom: 10px;
    }

        .menu-toggle-btn i {
            margin-right: 6px;
        }

    .branch-menu ul li a {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .flag-icon {
        width: 24px;
        height: 18px;
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
}

.result-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1em;
}

.result-title {
    color: #00264d;
    margin-bottom: 20px;
    border-bottom: 2px solid #004080;
    padding-bottom: 10px;
}

.result-details p {
    margin: 8px 0;
    line-height: 1.5;
}

.status-pass {
    color: green;
    font-weight: bold;
}

.status-fail {
    color: red;
    font-weight: bold;
}
