﻿/* Header */
body {
    font-family: 'Inter', sans-serif !important;
}
/* Ghi đè font cho các thành phần Bootstrap */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.btn, .form-control, .nav-link, .navbar-brand, .dropdown-item {
    font-family: 'Inter', sans-serif !important;
}
.navbar {
    padding: 0rem 2rem;
    background-color: #1576ab; /* Nền xanh đậm giống pancake.vn */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 20px;
}
.mb-3 {
    margin-bottom: 0rem !important;
}
.navbar-brand img {
    width: 40px;
    height: 40px;
}

.navbar-nav .nav-item {
    position: relative; /* Để tạo ô bao quanh khi hover */
}

.navbar-nav .nav-link {
    color: #fff; /* Chữ trắng */
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

    /* Hiệu ứng hover cho menu */
    .navbar-nav .nav-link:hover {
        background-color: #0F2A44; /* Ô mờ khi hover */
        opacity: 0.8;
        color: #fff; /* Giữ chữ trắng */
    }

/* Menu active */
.navbar-nav .nav-item.active .nav-link {
    background-color: #0F2A44 !important; /* Ô màu tối bao quanh menu active */
    color: #fff !important; /* Giữ chữ trắng */
    border-radius: 5px !important;
}

.btn-login {
    background-color: #007BFF;
    color: #fff !important; /* Đảm bảo chữ luôn trắng */
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    opacity: 1;
    text-decoration: none; /* Bỏ gạch chân nếu có */
}

    /* Bỏ hiệu ứng hover cho nút Đăng nhập */
    .btn-login:hover {
        background-color: #007BFF; /* Giữ nguyên màu nền */
        color: #fff !important; /* Giữ nguyên màu chữ */
        opacity: 1;
    }

/* Dropdown cho username */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.username-link {
    color: #fff !important; /* Đảm bảo màu trắng */
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    background-color: #0F2A44; /* Viền elip tối màu */
    opacity: 0.8; /* Độ mờ giống hiệu ứng hover */
}

    /* Hiệu ứng hover cho tên tài khoản */
    .username-link:hover {
        background-color: #0F2A44; /* Giữ nguyên màu nền */
        opacity: 0.8; /* Giữ nguyên độ mờ */
        color: #fff !important; /* Đảm bảo màu trắng khi hover */
    }

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    width: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
    top: 100%;
    right: 0;
}

/*.user-dropdown:hover .dropdown-menu {
    display: block;
}*/

.dropdown-item {
    color: #1A3C34;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007BFF;
    }
/* Footer */
.footer {
    background: linear-gradient(135deg, #E6F0FA 0%, #FFFFFF 100%); /* Gradient giống body */
    border-top: 1px solid #e5e5e5;
    padding: 0; /* Đã có padding trong .row */
    position: relative; /* Đảm bảo footer không cố định */
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

.footer-title {
    color: #1A3C34;
    font-size: 1.1rem; /* Kích thước tiêu đề */
    font-weight: 700;
    margin-bottom: 0.5rem; /* Khoảng cách dưới */
}

.footer-info {
    color: #6B7280;
    font-size: 0.9rem; /* Kích thước chữ */
}

    .footer-info li {
        line-height: 1.5; /* Khoảng cách dòng đồng đều */
        margin-bottom: 0.25rem; /* Khoảng cách giữa các dòng */
    }

    .footer-info strong {
        color: #1A3C34;
        margin-right: 0.5rem;
    }

    .footer-info a,
    .footer-links a {
        color: #007BFF; /* Đồng bộ màu liên kết với body */
        text-decoration: none;
        margin: 0 0.5rem;
    }

        .footer-info a:hover,
        .footer-links a:hover {
            color: #0056b3;
            text-decoration: underline;
        }

.footer-links {
    font-size: 0.9rem; /* Kích thước chữ */
    color: #6B7280;
    line-height: 1.5; /* Khoảng cách dòng đồng đều */
}

.footer-copyright {
    color: #6B7280;
    font-size: 0.85rem; /* Kích thước nhỏ hơn cho copyright */
    margin-bottom: 0;
    line-height: 1.5; /* Khoảng cách dòng đồng đều */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .footer .col-md-6 {
        text-align: center;
    }

    .footer-links a {
        display: inline-block;
        margin: 0.25rem 0.5rem; /* Tăng khoảng cách dọc khi xếp chồng */
    }
}
.nav-link.dropdown-toggle {
    padding: 0.5rem; /* Khoảng cách xung quanh mũi tên */
    color: #fff; /* Màu trắng cho icon */
}

    .nav-link.dropdown-toggle:hover {
        color: #fff;
        opacity: 0.8; /* Hiệu ứng mờ khi hover */
    }

/* Mobile responsive */
@media (max-width: 575.98px) {
    .navbar .container-fluid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
    }

    .btn-login {
        font-size: 0.875rem;
        padding: 0.375rem 1rem;
        border-radius: 15px;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

        .navbar-toggler:focus {
            box-shadow: none;
        }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

    .mobile-menu-overlay.show {
        transform: translateX(0);
    }

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.show .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #1576ab;
    color: white;
}

.mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-body {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .mobile-menu-item:hover {
        background: #f8f9fa;
        color: #1576ab;
    }

.mobile-menu-divider {
    margin: 0.5rem 1.5rem;
    border-color: #e5e5e5;
}

.mobile-menu-logout {
    color: #dc3545;
}

    .mobile-menu-logout:hover {
        background: #f8f9fa;
        color: #dc3545;
    }
/* Mobile User Info */
.mobile-user-info {
    flex: 1;
    margin-right: 1rem;
}

.mobile-user-link {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

    .mobile-user-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white !important;
    }

.mobile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mobile-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.mobile-username {
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #1576ab;
    color: white;
    min-height: 80px; /* Đảm bảo chiều cao đủ cho avatar */
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #333;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .mobile-menu-item i {
        width: 20px;
        text-align: center;
    }

/* Floating Menu Button */
.floating-menu-btn {
    position: fixed;
    top: 15px;
    right: 10px;
    width: 50px;
    height: 30px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998; /* Cao hơn content nhưng thấp hơn mobile menu */
    transition: all 0.3s ease;
    cursor: pointer;
}

    .floating-menu-btn:hover {
        transform: scale(1.05);
    }

    .floating-menu-btn:active {
        transform: scale(0.95);
    }

    /* Đảm bảo floating button không bị che khuất */
    .floating-menu-btn i {
        transition: transform 0.3s ease;
    }

    .floating-menu-btn:hover i {
        transform: translateX(-2px);
    }
.floating-menu-icon {
    width: 50px;
    height: 25px;
    transition: transform 0.3s ease;
}
/* Responsive adjustments for floating button */
@media (max-width: 575.98px) {
    .floating-menu-btn {
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
        top: 0px;
        right: 0px;
    }
}

/* Đảm bảo content không bị che bởi floating button */
@media (max-width: 575.98px) {
    body.authenticated-user {
        padding-top: 0;
    }
}

