﻿

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');


html, body {
    font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    height: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: 400;
    background-color: #c8e0e8; 
}


.main-container {
    background-color: #fff;
    border-radius: 12px;
    margin: 0px auto;
    width: 100%;
    max-width: 1600px;
    margin: 0px auto 0px auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 0px);
    padding: 0px;
}
/*====*/
.loginpartial-menu {
    font-size: 1.3rem;
    font-weight: 400;
    background-color: #fff !important;
}

.loginpartial-menu:hover {  
    color: #001833;
    transform: translateZ(0);
}
/*====== navbar =======*/
.navbar-custom {
    background-color: #fff;
}

    /*navbar link*/
    .navbar-custom .nav-link {
        color: #0066ba; /* default font color */
        font-size: 1.08rem;
        font-weight: 200;
        transition: background-color 0.3s, color 0.3s;
    }

    /* mouse over link */
        .navbar-custom .nav-link:hover {
            /*background-color: #0b315b;*/
            background-color: #fff;
            color: #001833;
          
        }
        /* (visited) */
        .navbar-custom .nav-link:visited {
            background-color: #004d80;

        }
        /*menu dropdown */
    .navbar-custom .dropdown-menu {
        background-color: #d9f0fa;    
        border: none;
        position: relative;
    }
        /* Top line, default transparent */
        .navbar-custom .dropdown-menu::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px; /* thick of line */
            background-color: transparent;
            transition: background-color 0.3s ease;
        }

    /* Khi nav-link hover → dropdown-menu hiện + đường vàng */
    .navbar-custom .nav-item.dropdown:hover > .dropdown-menu::before {
        background-color: #ffc107; /* yello line */
    }
    .navbar-custom .dropdown-item {
        padding: 20px 20px;
        color: #0066ba;
        font-size: 1rem;
        font-weight: 100;
        min-width: 280px;
        height: auto;
        line-height: 0.5;
    }
            .navbar-custom .dropdown-item:hover {
                /*           background-color: #0664b9;*/
                background-color: #c0e5f5;
              
                /*  color: #f9b308;*/
            }

        /* mouse over nav-item dropdown */
        .navbar-custom .dropdown:hover .dropdown-menu {
            display: block;
            margin-top: 0; /* remove space */

        }

/* submenu */
.dropdown-submenu {
    position: relative;
}

    /* Submenu to the right */
    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.3s ease;
        min-width: 180px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.3s; /* delay khi ẩn */
    }

    /* mouse over show submenu */
    .dropdown-submenu:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s; 
    }


.title_page {
    color: #0066ba !important;
    font-size: 2rem;
    line-height: 1.5;
    list-style: none;
}
h4 {
    color: #555;
    line-height: 1.5;
    list-style: none;
    font-size: 1.3rem;
    margin-bottom: 25px;
}



.file-label {
    font-weight: 600;
    color: #004d80;
}

.error-message {
    color: red;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}


.question_format {
    
    color: royalblue;
    font-size: 15px;
    margin-left: 15px;
    margin-right: 10px;
}

thead.bg-primary th {
    background-color: #0078ff;
    color: #fff !important;
}

.btn-background {
    background-color: #316095;
    color: #ffc107;
    width:80px;
}
.btn-background-nowidth {
    background-color: #316095;
    color: #ffc107;
}
    .btn-background-nowidth:hover {
        background-color: #004d80; /* xanh lá */
        color: #fff; /* (tuỳ chọn) đổi màu chữ để dễ đọc hơn */
    }




/* Khi màn hình nhỏ thì full width */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
        min-height: 100vh;
    }
}



/* Nội dung chính */
main {
    flex: 1; /* đẩy footer xuống đáy container */
}

/* Footer nằm trong container */
footer {
    background-color: #253e6b; /* nền xanh đậm */
    color: #ffffff;
    text-align: center;
    padding: 1px 0;
    border-top: 0px solid #004d80; /* line phía trên */
    border-radius: 0 0 8px 8px;
}

    footer p {
        margin: 0;
        font-size: 0.95rem;
    }

    footer a {
        position: relative;
        text-decoration: none;
        color: white;
        text-decoration: underline;
    }

    /* underline vàng */
    footer a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px; /* khoảng cách dưới chữ */
        width: 100%;
        height: 2px;
        background-color: #ffc107; /* vàng */
        opacity: 0; /* ẩn lúc đầu */
        transform: scaleX(0); /* thu nhỏ */
        transform-origin: left;
        transition: all 0.25s ease-in-out; /* từ từ */
    }

    /* Khi hover */
    footer a:hover {
      /*  color: #ffc107;*/
        text-decoration: none;
    }

        footer a:hover::after {
            opacity: 1;
            transform: scaleX(1); /* chạy từ trái sang phải */
        }
.under-line-change {
    position: relative;
    text-decoration: none;
  
    color: #333; /* màu chữ mặc định */
}
.htmlAzure {
    color: #0066ba !important;
}
a {
    text-decoration: underline;
}
    /* Hiệu ứng underline màu vàng */
    .under-line-change::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;        
        height: 2px;
        background-color: #ffc107;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: all 0.25s ease-in-out;
    }

    /* Hover */
    .under-line-change:hover {
        color: #ffc107;
        text-decoration: none;
    }

        .under-line-change:hover::after {
            opacity: 1;
            transform: scaleX(1);
        }

/*.form-floating input::placeholder {
    text-align: left !important;
}*/