/* Mobile-First CSS cho Header HotLikeShop */

/* Reset và Base Styles */
* {
    box-sizing: border-box;
}

/* Header Container - Mobile First */
#page-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-topbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.layout-width {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
}

/* Logo Section - Mobile */
.navbar-brand-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #333;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(5deg);
}

/* Mobile Menu Toggle */
.vertical-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}



.hamburger-icon span {
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-icon span:nth-child(1) {
    width: 20px;
}

.hamburger-icon span:nth-child(2) {
    width: 16px;
}

.hamburger-icon span:nth-child(3) {
    width: 12px;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    width: 20px;
}

/* Right Actions */
.d-flex.align-items-center {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Header Buttons - Mobile */
.header-item {
    display: flex;
    align-items: center;
}

.btn-topbar {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
}

.btn-topbar:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.btn-topbar:active {
    transform: translateY(0);
}

/* Fullscreen & Theme buttons - Hidden on small mobile */
.d-none.d-sm-flex {
    display: none;
}

/* Notification Dropdown */
.dropdown.topbar-head-dropdown {
    position: relative;
}

.topbar-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Dropdown Menu - Mobile Optimized */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 90vw;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
}

.dropdown-head h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.badge-soft-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Tab Navigation */
.nav-tabs.dropdown-tabs {
    border: none;
    border-radius: 8px;
    padding: 0.25rem;
    margin-top: 0.5rem;
}

.nav-tabs.dropdown-tabs .nav-link {
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.nav-tabs.dropdown-tabs .nav-link.active {
  
    color: white;
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
 
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}




.notification-item .avatar-xs {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.notification-item .avatar-title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
}


.notification-item p {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

.notification-item .fs-11 {
    font-size: 0.7rem;
    color: #999;
}

/* User Profile Dropdown */
.topbar-user {
    position: relative;
}

.topbar-user .btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}



.header-profile-user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.user-name-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    display: none;
}

.user-name-sub-text {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 700;
    display: none;
}

/* User Dropdown Menu */
.topbar-user .dropdown-menu {
    min-width: 250px;
}

.dropdown-header {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}



.dropdown-item i {
    font-size: 1.1rem;
    color: #667eea;
    width: 20px;
}

/* Tablet Styles */
@media (min-width: 576px) {
    .layout-width {
        padding: 0 1rem;
    }
    
    .navbar-header {
        height: 65px;
    }
    
    .d-none.d-sm-flex {
        display: flex;
    }
    
    .d-flex.align-items-center {
        gap: 0.5rem;
    }
    
    .dropdown-menu {
        min-width: 350px;
    }
    
    .user-name-text {
        display: block;
    }
    
    .btn-topbar {
        padding: 0.75rem;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .layout-width {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
    
    .navbar-header {
        height: 70px;
    }
    
    .vertical-menu-btn {
        display: none;
    }
    
    .d-flex.align-items-center {
        gap: 1rem;
    }
    
    .user-name-text,
    .user-name-sub-text {
        display: block;
    }
    
    .dropdown-menu {
        min-width: 400px;
    }
    
    .btn-topbar {
        font-size: 1.2rem;
    }
    
    .header-profile-user {
        width: 40px;
        height: 40px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .layout-width {
        max-width: 1400px;
    }
    
    .navbar-header {
        height: 75px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #page-topbar {
        background: rgba(30, 30, 30, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .logo {
        color: #fff;
    }
    
    .btn-topbar {
        color: #ccc;
    }
    

    
    .hamburger-icon span {
        background: #fff;
    }
    
    .dropdown-menu {
        background: #2a2a2a;
        color: #fff;
    }
    
    .notification-item {
        border-bottom-color: #404040;
    }
    
    .notification-item h6 {
        color: #fff;
    }
    
    .dropdown-item {
        color: #fff;
    }
    
    .dropdown-item:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #fff;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn-topbar:focus,
.dropdown-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading States */
.loading .dropdown-menu {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Scrolling for Dropdown Content */
.simplebar-content {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.simplebar-scrollbar::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* Animation for notification badge */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.topbar-badge {
    animation: slideInDown 0.3s ease-out;
}

/* Hover effects for better UX */
.notification-item:hover .avatar-title {
    transform: scale(1.05);
}

.logo:hover .logo-sm img,
.logo:hover .logo-lg img {
    transform: scale(1.1);
}

/* Active states */
.btn-topbar.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Responsive text sizing */
@media (max-width: 480px) {
    .user-name-text {
        font-size: 0.8rem;
    }
    
    .user-name-sub-text {
        font-size: 0.7rem;
    }
    
    .dropdown-menu {
        min-width: 280px;
        max-width: 85vw;
    }
    
    .notification-item h6 {
        font-size: 0.85rem;
    }
    
    .notification-item p {
        font-size: 0.75rem;
    }
}