.top-menu {
    background-color: var(--secondary-color);
    width: 100%;
    border-radius: 2px;
    padding: 0;
    margin: 0;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.top-menu-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.top-menu-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-menu-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 16px;
    gap: 16px;
}
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.menu-back {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    margin-left: 4px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle.collapsed i {
    transform: rotate(90deg);
}

.menu-toggle:hover {
    color: var(--highlight-color);
}

.menu-back:hover {
    color: var(--highlight-color);
}

.menu-toggle:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}.logo {

    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.logo i {
    color: var(--highlight-color);
    font-size: 24px;
}

.logo-text {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo:hover .logo-text {
    color: var(--highlight-color);
    transition: color 0.2s ease;
}

.player-money {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    background-color: var(--secondary-color-dark);
    border-radius: 20px;
}

.player-money i {
    color: var(--highlight-color);
    font-size: 16px;
}

.money-amount {
    font-size: 14px;
}

.notification-btn,
.user-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-btn:hover,
.user-btn:hover {
    color: var(--highlight-color);
    background-color: var(--color);
}

.notification-btn:focus,
.user-btn:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}.search-container {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color-dark);
    border-radius: 18px;
    max-width: 350px;
    width: 100%;
    height: 38px;
    transition: border-color 0.2s ease;
    position: relative;
}

.search-container:focus-within {
    border-color: var(--highlight-color);
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 0 12px;
    padding-right: 40px;
    font-size: 14px;
    outline: none;
    height: 36px;
    line-height: 36px;
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    background: none;
    border: none;
    color: #aaa;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 14px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.search-btn:hover {
    color: var(--highlight-color);
}

/* Main content positioning to accommodate left menu */
.main-content-container {
    margin-left: 80px; /* Default margin for icon area width */
    margin-top: 60px; /* Top margin for fixed top menu */
    padding-left: 6px;
    padding-right: 8px;
    transition: margin-left 0.3s ease; /* Smooth transition for responsive changes */
    box-sizing: border-box;
}

/* Expand main content when left menu is collapsed */
.left-menu.collapsed ~ .main-content-container {
    margin-left: 0;
}

/* Allow Bootstrap margin classes to work on main content */
.main-content {
    width: 100%;
    box-sizing: border-box;
}

/* Adjust main content margin on XL screens when caption area is visible */
@media (min-width: 1200px) {
    .main-content-container {
        margin-left: 300px; /* 80px icon area + 220px caption area */
    }
    
    /* Expand main content on XL screens when left menu is collapsed */
    .left-menu.collapsed ~ .main-content-container {
        margin-left: 0;
    }
}