/* Apply Your Bar & Lounge Color Palette - Navy Blue & Gold */
:root {
    /* Navy Blue & Gold - Sophisticated Bar & Lounge Theme */
    --primary: #c4a052;          /* Rich Gold for call-to-actions */
    --primary-dark: #b48c3a;     /* Darker Gold */
    --primary-light: #e4c580;    /* Light Gold */
    --primary-50: #faf3e0;       /* Soft Gold Tint */
    
    --secondary: #8a6e45;        /* Antique Bronze for accents */
    --secondary-dark: #7a5e35;   /* Darker Bronze */
    --secondary-light: #d4b483;  /* Light Bronze */
    
    --accent: #0a1928;           /* Deep Navy for highlights */
    --accent-dark: #1a3e5c;      /* Medium Navy */
    --accent-light: #2a4f6e;     /* Light Navy */
    
    --neutral-dark: #0f1a24;     /* Dark Navy for text/backgrounds */
    --neutral-medium: #6b7a8c;   /* Muted Blue-Gray */
    --neutral-light: #d4cfc4;    /* Warm Gray for borders */
    --neutral-50: #f8f7f4;       /* Warm White for backgrounds */
    
    --success: #2e7d5e;          /* Deep Green */
    --warning: #e6b422;          /* Warm Gold */
    --error: #b4433c;           /* Muted Red */
    --info: #4a7a9c;           /* Steel Blue */
    
    --surface: #ffffff;
    --shadow: 0 2px 8px rgba(10, 25, 40, 0.15);
    --shadow-lg: 0 8px 30px rgba(10, 25, 40, 0.2);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Navigation Container */
.side-nav-menu-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    padding: 20px 0;
    background: linear-gradient(180deg, #0a1928, #0f1f2f);
    z-index: 1000;
    box-shadow: 3px 0 15px rgba(10, 25, 40, 0.25);
    overflow-y: auto;
    border-right: 1px solid var(--primary);
    display: flex;
    flex-direction: column;
}

/* Navigation Header with Company Info */
.nav-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(196, 160, 82, 0.3);
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(10, 25, 40, 0.6), rgba(138, 110, 69, 0.1));
}

.company-logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4px;
    box-shadow: 0 4px 15px rgba(196, 160, 82, 0.3);
    transition: var(--transition);
}

.company-logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 160, 82, 0.4);
}

.company-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: white;
}

.company-info {
    margin-top: 0.5rem;
}

.nav-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
    max-height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: default;
}

.nav-subtitle {
    color: var(--neutral-medium);
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-subtitle i {
    color: var(--primary-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

#locationText {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.company-contacts {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(196, 160, 82, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--neutral-medium);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--primary);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.contact-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

/* Navigation Container */
.side-nav {
    flex: 1;
    width: 100%;
    color: white;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav ul li {
    margin: 6px 16px;
}

.side-nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

/* Hover Effects */
.side-nav ul li a:hover {
    background: rgba(196, 160, 82, 0.15);
    color: white;
    border-left-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(10, 25, 40, 0.1);
}

/* Active State */
.side-nav ul li a.active {
    background: linear-gradient(90deg, rgba(196, 160, 82, 0.2), rgba(196, 160, 82, 0.05));
    color: white;
    border-left-color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
}

/* Icon Styling */
.side-nav ul li a i.fas {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--neutral-medium);
    transition: var(--transition);
}

.side-nav ul li a:hover i.fas,
.side-nav ul li a.active i.fas {
    color: var(--primary-light);
}

/* Dropdown Toggle */
.toggle-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.nav-text {
    flex: 1;
}

.dropdown-icon {
    font-size: 0.8rem;
    color: var(--neutral-medium);
    transition: var(--transition);
    margin-left: auto;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Submenu Styling */
.dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 40px;
    margin: 5px 0;
    background: rgba(10, 25, 40, 0.4);
    border-left: 2px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-left: none;
    border-radius: 0;
    transform: none;
}

.dropdown-menu li a:hover {
    background: rgba(196, 160, 82, 0.1);
    color: white;
    transform: translateX(3px);
}

/* Badges */
.side-nav .badge {
    background: var(--primary);
    color: #0a1928;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

.side-nav .badge.new {
    background: var(--secondary);
    color: white;
}

.side-nav .badge.pro {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0a1928;
}

/* User Profile */
.user-profile {
    padding: 1.25rem;
    border-top: 1px solid rgba(196, 160, 82, 0.3);
    margin-top: auto;
    background: rgba(10, 25, 40, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: rgba(196, 160, 82, 0.1);
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a1928;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h4 {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.user-info p {
    margin: 0.125rem 0 0;
    color: var(--neutral-medium);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

/* Scrollbar Styling */
.side-nav-menu-section::-webkit-scrollbar {
    width: 4px;
}

.side-nav-menu-section::-webkit-scrollbar-track {
    background: rgba(10, 25, 40, 0.4);
}

.side-nav-menu-section::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.side-nav-menu-section::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .side-nav-menu-section {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .nav-header {
        padding: 1.25rem;
    }
    
    .company-logo-container {
        width: 60px;
        height: 60px;
    }
    
    .side-nav ul li {
        margin: 5px 12px;
    }
    
    .dropdown-menu {
        padding-left: 30px;
    }
    
    .company-contacts {
        padding: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .side-nav-menu-section {
        padding: 12px;
    }
    
    .company-logo-container {
        width: 50px;
        height: 50px;
    }
    
    .nav-title {
        font-size: 1.1rem;
    }
    
    .nav-subtitle {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
    
    .side-nav ul li a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .user-profile {
        padding: 1rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Main container for both columns */
main {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* First Column */
.firt-col {
    flex-shrink: 0;
    width: 280px;
    height: 100%;
    background: #0a1928;
    overflow: hidden;
    position: relative;
}

/* With resize handle */
.firt-col {
    position: relative;
    resize: horizontal;
    overflow: hidden;
    min-width: 250px;
    max-width: 500px;
}

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 10;
}

.resize-handle:hover,
.resize-handle:active {
    background: var(--primary);
}

/* Container inside first-col */
.forsmall {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* All Left Menu - scrollable bottom section */
.side-nav-menu-section {
    flex: 1;
    overflow-y: auto;
    height: auto;
    padding-top: 0;
    margin-top: 0;
}

/* Hide duplicate header */
.side-nav-menu-section .nav-header {
    display: none;
}

/* Second Column */
.second-col {
    flex: 1;
    height: 100%;
    overflow: auto;
    background: #f8f7f4;
}

/* Fix for the side-nav-menu-section */
.side-nav-menu-section {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #0a1928, #0f1f2f);
}

/* Scrollbar styling for left menu */
.side-nav-menu-section::-webkit-scrollbar {
    width: 6px;
}

.side-nav-menu-section::-webkit-scrollbar-track {
    background: rgba(10, 25, 40, 0.4);
}

.side-nav-menu-section::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

/* Ensure the second column stays aligned */
.second-col {
    display: flex;
    flex-direction: column;
}

/* Responsive Design - HIDE on small screens */
@media screen and (max-width: 1024px) {
    /* Hide the entire left menu container on tablets and smaller */
    .side-nav-menu-section {
        display: none !important;
    }
    
    /* Adjust the first column to not show left menu */
    .firt-col {
        display: none !important;
    }
    
    /* Make the second column take full width when left menu is hidden */
    .second-col {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    /* Adjust main container */
    main {
        display: block !important;
    }
}

/* Additional Bar & Lounge Theme Elements */
.side-nav ul li a i.fas.fa-cocktail,
.side-nav ul li a i.fas.fa-glass-cheers,
.side-nav ul li a i.fas.fa-wine-glass-alt {
    color: var(--primary);
}

.side-nav ul li a:hover i.fas.fa-cocktail,
.side-nav ul li a:hover i.fas.fa-glass-cheers,
.side-nav ul li a:hover i.fas.fa-wine-glass-alt {
    color: var(--primary-light);
}

/* Gold accent for special items */
.special-offer {
    background: linear-gradient(90deg, rgba(196, 160, 82, 0.1), transparent);
    border-left: 3px solid var(--primary) !important;
}

/* Premium badge */
.premium-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary-light));
    color: #0a1928;
    font-weight: 700;
}