﻿

@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: 14px;
    /*line-height: 1.6;*/
    color: #555;
    height: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: 400;
    background-color: #d9f0fa;
}
h2 {
   color:#0066ba;
}
.btn {
    font-size: 14px !important;
    font-weight: 400;
}
.btn-custom-view {
    background-color: #0066ba !important;
}
.badge {
    font-size: 14px !important;
    font-weight: 400;
}
    .badge.bg-primary {
        background-color: var(--bs-primary) !important;
    }
.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;
    }

    /*==================== old main menu line cover box ==========================*/
        /* 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: #ffb600;*/ /* yello line */
    /*}*/
    /*==================== New main menu line only cover word ==========================*/

    .navbar-custom .nav-item.dropdown {
        position: relative;
    }

        .navbar-custom .nav-item.dropdown::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            width: 0;
            background: #ffb600;
            transition: width 0.25s;
        }

        .navbar-custom .nav-item.dropdown:hover::after {
            width: 100%;
        }

    /*==============================================*/
    .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;
}
.title_question {
    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: 14px;
    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: #0066ba;
    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: #f6f5f5; /* nền xanh đậm */
    color: #808080;
    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: #555;
      /*  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: #555; /* màu chữ mặc định */
}
.htmlAzure {
    color: #0066ba !important;
}
a.login-page {
    text-decoration: underline;
    color: #6c757d !important;
}
a {
    text-decoration: underline;   
}
    /*underline yellow */
    .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);
        }
.survey-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1024px;
    margin: auto;
}

    .survey-pagination .page-item {
        margin: 4px;
    }

    .survey-pagination .page-link {
        width: 44px;
        height: 44px;
        border-radius: 50% !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

   
    .survey-pagination .page-item.answered .page-link {
        background-color: #ffc107;
        border-color: #ffc107;
        color: #000;
    }

    /* current page */
    .survey-pagination .page-item.active .page-link {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }

/* disable */
.survey-page-link.disabled,
.survey-page-link.disabled-link {
    pointer-events: none;
    opacity: 0.6;
}

/* Enable */
.btn-submit {
    background-color: #0d6efd; /* blue */
    border-color: #0d6efd;
    color: #fff;
}

    /* Disabled */
    .btn-submit:disabled,
    .btn-submit[disabled] {
        background-color: #555; /* black */
        border-color: #555;
        color: #fff;
        opacity: 1; /* bỏ opacity mặc định của bootstrap */
        cursor: not-allowed;
    }

.survey_item {
    font-size: 14px;
    font-weight: bold;
    color: #212529;
}

.survey_title {
    font-size: 14px;
   
    color: #555;
}

.district-checkbox {
    width: 15px !important;
    height: 15px !important;
    border: 2px solid #000 !important;
    cursor: pointer;
}