/*** Header ***/
@media screen and (orientation: portrait) {
    .height-header {
        height: 100px;
    }
}

@media screen and (orientation: landscape) {
    .height-header {
        height: 100px;
    }
}

@media (min-width: 992px) {
    .height-header {
        height: 100px;
    }
}

.left-home-header {
    border: 1px solid #a1a1a1;
    border-radius: 15px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 150px;
}

.flip-horizontal {
    transform: scaleX(-1);
}

@media (min-width: 768px) {
    .left-home-header {
        width: 200px !important;
    }
}

/***  Dialog  *******************************/
.modal-content {
    border-radius: 0;
    border: 1px solid #000;
    padding: 20px;
}

@media screen and (orientation: portrait) {
    .modal-dialog-message {
        width: 60vw !important;
        max-width: 60vw !important;
        height: 80vh !important;
        min-height: 5vh !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }
}

@media screen and (orientation: landscape) {
    .modal-dialog-message {
        width: 30vw !important;
        max-width: 30vw !important;
        height: 80vh !important;
        min-height: 5vh !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }
}

.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
    border-radius: 20px;
    padding: 5px 20px;
}

/***  Login  *******************************/
.input-store-code {
    border: 1px solid black;
    border-radius: 1.5vh;
}

.input-store-code:focus {
    border: 1px solid black;
    border-radius: 1.5vh;
}

.input-store-code::placeholder {
    text-align: center
}

.btn-login {
    border: 1px solid black;
    border-radius: 1.5vh;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-login:disabled {
    background-color: #E2E2E2 !important;
    color: black;
}

@media (min-width: 992px) and (orientation: portrait) {
    .btn-login {
        padding: 15px 0;
    }

    .input-store-code {
        padding: 15px 0;
    }
}

/***  Home  *******************************/
.gradient-border {
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.gradient-border:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.popup {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    height: calc(75vh - 100px - 1rem);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.image-container::-webkit-scrollbar {
    width: 10px;
}

.image-container::-webkit-scrollbar-track {
    border: 1px solid #7272723d;
    border-radius: 10px;
}

.image-container::-webkit-scrollbar-thumb {
    height: 10px;
    background: #727272;
    border-radius: 5px;
}

.brand-row {
    height: calc(((75vh - 100px - 2rem) / 3));
}

.brand-card {
    height: 90%;
}

.brand-card img {
    max-height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.barcode-scan {
    height: 25vh;
    box-sizing: border-box;
    padding: 2rem 0;
    width: 90%;
}

.container-item {
    margin-right: 0.5rem !important;
    margin-left: 0.25rem !important;
}

.barcode-container span {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

 .barcode-modal-dialog {
    width: 100% !important;
    height: 100% !important;
}

#barcodeModal {
    --bs-modal-margin: 0rem;
}

#barcodeModal .modal-dialog {
    --bs-modal-width: 800px;
}

.barcode-modal-content {
    width: 85vw;
    height: 85vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 10px;
    overflow: hidden;
}

/* .barcode-modal-header {
    background-color: white;
    border-bottom: none;
    height: 10%;
    padding: 0.5rem 1rem;
}

.barcode-modal-title {
    color: red !important;
}

.barcode-modal-body {
    background-color: #e0e0e0;
    padding: 2rem !important;
    display: flex;
    justify-content: center;
    align-items: center; */
/* }  */

@media (min-width: 768px){
    .barcode-container span{
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) and (orientation: landscape) {
    .barcode-modal-content {
        max-width: 600px;
        max-height: 600px;
    }
}

/***  Search  *******************************/
.height-6vh {
    height: 6vh;
}

.flip-horizontal {
    transform: scaleX(-1);
}

input:focus {
    outline: none;
    border: none;
}

.image-ink-container {
    max-height: 52vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.image-ink-container::-webkit-scrollbar {
    width: 10px;
}

.image-ink-container::-webkit-scrollbar-track {
    border: 2px solid #1f1f1f1f;
    border-radius: 10px;
}

.image-ink-container::-webkit-scrollbar-thumb {
    height: 15px;
    background: #b6b6b6;
    border-radius: 5px;
}

.font-size-content {
    font-size: 1rem;
}

.btn-search {
    width: 50%;
    height: 10vh;
    border: 1px solid #a1a1a1;
    border-radius: 30px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .font-size-content {
        font-size: 2rem;
    }
}

/*** Search Option **************************/
.hight-card {
    height: 30%;
}

.box-shadow {
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.color1 {
    background-color: #f8fbfe;
}

.color2 {
    background-color: #f6f9e7;
}

.color3 {
    background-color: #fef1e0;
}

.font-weight {
    font-weight: 500
}

.custon-size-title {
    font-size: 24px;
}

.brand-image-wrapper {
    width: 100%;
    height: 90%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-wrapper {
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 768px) {
    .custon-size-icon {
        font-size: 90px;
    }

    .custon-size-title {
        font-size: 36px;
    }

    .content-wrapper {
        min-height: 150px;
    }
}

.h-80 {
    height: 80%;
}

/***  Result  *******************************/

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 80px;
}

.main-nav .nav {
    display: flex;
    align-items: center;
}

.main-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #ff9800;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff9800;
}

.language-selector .btn {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 20px;
    color: #333;
    font-weight: 500;
    padding: 0.25rem 1rem;
}

.language-selector .dropdown-menu {
    min-width: 5rem;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.language-selector .dropdown-item {
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #333;
    padding-top: 2rem;
    width: 100%;
    font-family: var(--font-fz-poppins);
}

.footer-container {
    padding: 0 15px;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-contact-container {
    padding: 2rem 15px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--font-fz-poppins);
}

.footer-email-field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-input-field {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    width: 100%;
}

.footer-icon {
    /* width: 20px; */
    height: 20px;
}

/* Social media icons need to be white */
.footer-social-link .footer-icon {
    filter: brightness(0) invert(1);
}

/* Connect icon (tick) should keep its original color */
.footer-connect .footer-icon {
    filter: none;
}

/* Association icons (Vietnam emblem) should keep their original color */
/* .footer-assoc-item .footer-icon {
    /* filter: none;
    width: 40px;
    height: 40px; */
} */

.footer-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    font-family: var(--font-fz-poppins);
}

.footer-button {
    background-color: #0d6efd;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s;
    width: 100%;
    font-family: var(--font-fz-poppins);
}

.footer-button:hover {
    background-color: #0b5ed7;
}

.footer-line {
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

.footer-partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    justify-items: center;
}

.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 148px;
    height: 102px;
    margin: 0 auto;
}

.partner-img {
    max-width: 100%;
    /* max-height: 100%; */
    object-fit: contain;
}

.footer-main-info {
    margin-bottom: 2rem;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-company-name {
    text-align: center;
}

.footer-company-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-fz-poppins);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-address-line, 
.footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-icon-sm {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.footer-address-text,
.footer-contact-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-fz-poppins);
}

.footer-offices {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
}

.footer-office-block {
    margin-bottom: 2rem;
}

.footer-office-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-fz-poppins);
}

.footer-office-address,
.footer-office-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-icon-xs {
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.footer-office-text,
.footer-office-contact-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-fz-poppins);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px 2rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-connect {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-connect-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    font-family: var(--font-fz-poppins);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #362921;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: #f6c945;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(54, 41, 33, 0.3);
}

.footer-social-link:hover .footer-icon {
    filter: brightness(0) invert(1);
}

.footer-associations {
    text-align: center;
}

.footer-assoc-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: var(--font-fz-poppins);
}

.footer-assoc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-assoc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.footer-assoc-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-dot-inner {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.footer-assoc-text {
    font-size: 0.85rem;
    margin: 0;
    font-family: var(--font-fz-poppins);
}

.footer-copyright {
    width: 100%;
    height: 1px;
    background-color: #e9ecef;
    margin-top: 2rem;
}

/* Media Queries for Footer */
@media (min-width: 768px) {
    .footer-email-field {
        flex-direction: row;
        align-items: center;
    }
    
    .footer-input-field {
        width: 70%;
    }
    
    .footer-button {
        width: 30%;
    }
    
    .footer-text {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .footer-partners {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-contact-container {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-main-info {
        flex: 1 0 100%;
        margin-bottom: 1.5rem;
    }
    
    .footer-offices {
        flex: 0 0 48%;
        margin-right: 1%;
    }
    
    .footer-company-info {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .footer-logo {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .footer-company-name {
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-social {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    .footer-associations {
        text-align: right;
    }
    
    .footer-assoc-list {
        flex-direction: row;
        justify-content: flex-end;
        gap: 1.5rem;
    }
}

@media (min-width: 992px) {
    .footer-partners {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-main-info {
        flex: 0 0 30%;
        margin-bottom: 0;
    }
    
    .footer-offices {
        flex: 0 0 31%;
        margin-right: 1%;
    }
}

/* Styles for News Page */
.banner-container {
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
}

.rounded-4 {
    border-radius: 15px !important;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.bg-danger {
    background-color: #ff4d4d !important;
}

.nav-link.fw-medium {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link.fw-medium:hover {
    color: #0d6efd;
}

/* Pagination styles */
.pagination .page-link {
    width: 35px;
    height: 35px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border: none;
    color: #666;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

.pagination .page-link:hover {
    background-color: #f0f0f0;
    color: #0d6efd;
}

/* Contact section styles */
.contact-section {
    position: relative;
    background-color: #f8f9fa;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #eef5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-primary.rounded-pill {
    border-radius: 50px !important;
    padding: 8px 25px;
    transition: all 0.3s ease;
}

.btn-primary.rounded-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

/* Thiết lập font-family */
body, html {
    font-family: 'Open Sans', sans-serif;
}

/* Font cho các heading */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

/* Phần Office mới */
.footer-branches-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-branch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.footer-branch {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 5px;
    padding: 0 5px;
}

.footer-branch-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-fz-poppins);
}

.footer-branch-address,
.footer-branch-phone,
.footer-branch-email {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3px;
}

.footer-branch i {
    margin-right: 3px;
    margin-top: 2px;
    font-size: 10px;
    flex-shrink: 0;
}

.footer-branch span {
    display: inline-block;
    font-family: var(--font-fz-poppins);
}

/* Responsive cho phần Office mới */
@media (max-width: 991px) {
    .footer-branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-branch-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-branch {
        padding: 0 3px;
    }
    
    .footer-branch-title {
        font-size: 10px;
    }
    
    .footer-branch-address span,
    .footer-branch-phone span,
    .footer-branch-email span {
        font-size: 9px;
    }
}

/* Icons for Contact Line */
.footer-contact-line i {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    margin-right: 10px;
}

.footer-info-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-main-info {
    width: 100%;
    margin-bottom: 30px;
}

.footer-branches-container {
    width: 100%;
}

@media (min-width: 768px) {
    .footer-info-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .footer-main-info {
        width: 30%;
        padding-right: 20px;
        margin-bottom: 0;
    }
    
    .footer-branches-container {
        width: 70%;
    }
    
    .footer-branch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-main-info {
        width: 25%;
    }
    
    .footer-branches-container {
        width: 75%;
    }
    
    .footer-branch-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
