﻿/* Common CSS - Shared across all pages */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header-top {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.logo img {
    height: 50px;
}

.user-greeting {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--theme-default-color);
}

.btn-primary {
    background: linear-gradient(to right, #3079cd, #2e3191);
    border: none;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

    .btn-primary:hover {
        background: linear-gradient(to right, #245a94, #241f7a);
        transform: scale(1.01);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

.btn-warning {
    background: linear-gradient(to right, #ffc37f, #cb511d);
    border: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

    .btn-warning:hover {
        color: #fff;
        background: linear-gradient(to right, #ed9d3c, #bd512e);
        transform: scale(1.01);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .btn-warning:active {
        color: #fff !important;
    }

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: #fff;
    }

/* Hero Banner */
.hero-banner {
    padding: 60px 0;
    padding-top: 150px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: none;
}

/* Footer */
.footer {
    background-color: #003d82;
    color: #fff;
    padding: 40px 0 30px;
}

.fix-top {
    margin-top: 60px;
}

.footer-info {
    display: flex;
    gap: 15px;
}

.footer-logo {
    margin-bottom: 0;
}

    .footer-logo img {
        filter: brightness(0) invert(1);
        margin-top: -5px;
    }

.footer-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 16px;
    margin-top: 0;
    padding-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
    }

        .footer-contact li i {
            color: #fff;
            font-size: 1rem;
        }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: #66b3ff;
            text-decoration: underline;
        }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: #003d82;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

    .social-link:hover {
        background-color: #66b3ff;
        color: #fff;
        transform: scale(1.1);
    }

/* Select Gift Modal */
#selectGiftModal .modal-dialog {
    max-width: 600px;
}

#selectGiftModal .modal-header {
    background-color: #003d82;
    padding: 20px;
    justify-content: space-between;
}

    #selectGiftModal .modal-header img {
        filter: brightness(0) invert(1);
    }

#selectGiftModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

#selectGiftModal .modal-body {
    padding: 40px 30px;
}

.modal-message-title {
    color: #003d82;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
}

.modal-message-content {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-message-footer {
    font-size: 1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Title Underline */
.title-underline {
    height: 2px;
    background-color: #3b5998;
    margin-bottom: 20px;
}

/* Section Title */
.section-title {
    color: var(--theme-default-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background-color: #fff;
}

.breadcrumb-title {
    color: var(--theme-default-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.breadcrumb-line {
    width: 100%;
    height: 1px;
    background-color: var(--theme-default-color);
}

/* Menu Button - Shared across pages */
.btn-menu {
    background-color: transparent;
    color: var(--theme-default-color);
    border: none;
    padding: 8px 12px;
    font-size: 1.5rem;
}

    .btn-menu:hover {
        color: #002a5c;
    }

/* Sidebar - Shared across pages */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
}

    .sidebar.active {
        left: 0;
    }

.sidebar-header {
    padding: 20px;
    background-color: #003d82;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .sidebar-header h5 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 600;
    }

.btn-close-sidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

    .btn-close-sidebar:hover {
        opacity: 0.8;
    }

.sidebar-content {
    padding: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-menu li {
        border-bottom: 1px solid #eee;
    }

        .sidebar-menu li a {
            display: block;
            padding: 15px 20px;
            color: #333;
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

            .sidebar-menu li a:hover {
                background-color: #f0f0f0;
                color: #003d82;
            }

            .sidebar-menu li a i {
                margin-right: 10px;
                width: 20px;
                text-align: center;
            }

.sidebar-user {
    background-color: #f8f9fa;
    color: var(--theme-default-color) !important;
    font-weight: 600;
}

.sidebar-logout {
    background-color: #dc3545;
    color: #fff !important;
    font-weight: 600;
}

    .sidebar-logout:hover {
        background-color: #c82333 !important;
        color: #fff !important;
    }

.logout-btn-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Nút logout */
.btn-logout {
    color: #fff;
    background-color: var(--theme-default-color);
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .btn-logout:hover {
        transform: scale(1.01);
        box-shadow: 0 4px 10px rgb(26 16 201 / 41%);
    }

    .btn-logout i {
        pointer-events: none;
    }


/* Language Submenu - Shared across pages */
.sidebar-language {
    position: relative;
}

.language-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-language.active .language-submenu {
    max-height: 200px;
}

.language-submenu li {
    border-bottom: 1px solid #e0e0e0;
}

    .language-submenu li:last-child {
        border-bottom: none;
    }

    .language-submenu li a {
        padding: 12px 20px 12px 50px;
        font-size: 0.95rem;
        color: #666;
    }

        .language-submenu li a:hover {
            background-color: #e8e8e8;
        }

.language-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.sidebar-language.active .language-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Sidebar Overlay - Shared across pages */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

    .sidebar-overlay.active {
        display: block;
    }

/* Language Selector - Shared across all pages */
.btn-language {
    background-color: transparent;
    border: none;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .btn-language::after {
        display: none;
    }

    .btn-language:hover img {
        transform: scale(1.01);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.flag-icon {
    width: 42px;
    aspect-ratio: 16 / 11;
    border-radius: 3px;
}

.language-dropdown {
    min-width: 160px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

    .language-item:hover {
        background-color: #f0f0f0;
    }

.flag-icon-small {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.language-item span {
    font-size: 0.95rem;
    color: #333;
}

/*Css BootstrapBlazor.Upload*/
.upload.is-drop {
    display: flex;
    align-items: start;
    gap: 3rem;
}

.upload-body.is-list {
    margin-top: 0px;
}

.follow-us-container .footer-title {
    text-align: start;
    font-weight: 400;
}

/*swal css custom*/
.swal2-actions {
    flex-direction: row-reverse;
    gap: 16px;
}

/*toast css customer*/
.toast {
    background-color: white;
}

@media(max-width: 991px) {
    .upload.is-drop {
        width: 100%;
        display: block;
    }

    .upload-body.is-list {
        margin-top: 1rem;
    }

    .logout-btn-wrapper {
        display: none;
    }
}

@media(min-width: 992px) {
    .follow-us-container {
        margin-top: 78px;
    }

        .follow-us-container .footer-title {
            text-align: end;
        }

    .sidebar, .sidebar-overlay {
        display: none !important;
    }
}
