@font-face {
    font-family: 'Montserrat';
    src: url('../files/fonts/Montserrat/Montserrat-VariableFont_wght.ttf')  format('truetype');
    font-display: swap;
}

* { padding: 0; margin: 0; }

html {
    height: 100%;
}

body {
    font-family: "Montserrat";
    overflow-x: hidden;
    height: 100%;
    /* background: linear-gradient(45deg, #1de099cc, #1d60e0cc); */
    background-image: linear-gradient(45deg, #1de099cc, #1d60e0cc);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

main {
    width: 100%;
    height: 100%;
}

header {
    /* padding: 30px 5%;
    height: 92px;*/
    align-content: center;

    margin: 15px 0;
    height: 92px;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    transition: all 0.5s;
    z-index: 997;
}

.header-content {
    max-width: 95%;
    margin-right: auto;
    margin-left: auto;
}

.logo {
    width: 100%;
    max-width: 275px;
    margin-top: -30px;
}

.logo:first-child {
    margin-right: 10px;
}

.logo + .logo {
    margin-left: 10px;
}

.img-logo {
    max-width: 100%;
}

#main-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

footer {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
}


.overflow-y-srcl {
    overflow-y: auto;
}

.border-st {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

select:invalid {
  color: #6c757d; 
}

.bi {
  color: #fff; 
  font-size: 1.5rem;
}

.wrap-info {
    max-width: 525px;
    transition: opacity 0.5s ease-in-out;
    /* box-shadow: 10px 10px #0f0f0f57; */
}

.wrap-info .wrap-addr-select {
    /* gap: 10px; */
    /* display: flex;
    gap: 10px; */
    gap: 10px;
    padding: 0 12px 0;
    background-color: #f9f9f9;
}

.wrap-info .container-radio {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    min-width: 100px;
    min-height: 50px;
    padding: 0px 16px;
    /* background-color: #002B5F; */

    align-content: center;
    text-align: center;

    transition: background-color 0.4s ease, transform 0.4s ease;

    margin-bottom: 0;
}

.wrap-info .container-radio:hover {
    /* background-color: #002B5F; */
    opacity: 0.7;
}

.wrap-info .container-radio:has(input:checked) {
    background-color: #002B5F;
    transform: scale(1.05);
}

.wrap-info .container-radio:has(input:checked) .warp-checkmark {
    color: #fff !important;
}

.hyosung-bg {
    background-color: #002B5F;
}

.wrap-info .card-body {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.bootstrap-select button {
    border: 1px solid #ced4da !important;
    background-color: white;
}

.submit-info {
    max-height: fit-content;
}

.submit-info .card-body {
    padding-bottom: 0 !important;
}

.card-body {
    padding: 1rem !important;
}

.form-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
}
.form-content {
  padding-bottom: 60px; /* bằng chiều cao footer */
}

#buttonGroup .dropdown-menu {
  background-color: #007bff;
  border: none;
  border-radius: 0.3rem;
  padding: 0;
  overflow: hidden;
}


#buttonGroup .dropdown-item {
  color: white;
  background-color: #007bff;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.2s ease;
}

#buttonGroup .dropdown-item:hover,
#buttonGroup .dropdown-item:focus {
  background-color: #0069d9;
  color: #fff;
}

#buttonGroup .dropdown-item:last-child {
  border-bottom: none;
}

#buttonGroup .dropup .dropdown-toggle::after {
  border-top: 0;
  border-bottom: .3em solid;
}

.error-placing {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;

    max-width: calc(100% - 40px);
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.message-text {
    vertical-align: middle;
}

.error-content {
    animation: error-run 0.6s ease-out;
    position: relative;
}

.error-item {
    cursor: pointer;
}

.error-item:hover {
    opacity: 0.9;
}

@keyframes error-run {
    0% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(0);
    }
}

.error-warning {
    background-color: #ECC8C5;
    border: #d37f78 2px solid;
    color: #B83C37;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;

    /* Responsive width */
    width: 100%;
    box-sizing: border-box;
}

.icon-size {
    font-size: 32px;
}

.error-text-size {
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word; /* tránh tràn màn hình */
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .icon-size {
        font-size: 24px;
        padding: 0;
    }

    .error-text-size {
        font-size: 14px;
    }

    .error-warning {
        padding: 10px 12px;
        gap: 8px;
    }
}

.modal {
    display: none; /* ẩn mặc định */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

/* Nội dung popup */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.employee-info {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.completion-msg {
    font-size: 1rem;
    margin-bottom: 15px;
}

.score-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

/* Nút confirm */
#confirmBtn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#confirmBtn:hover {
    background-color: #0056b3;
}

/* Responsive font */
@media (max-width: 500px) {
    .employee-info {
        font-size: 1rem;
    }
    .completion-msg {
        font-size: 0.9rem;
    }
    .score-text {
        font-size: 1.2rem;
    }
    #confirmBtn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}
