*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}
:root {
    --color1: #ffffff;
    --color2: #333333;
    --color-hover: #ed1c24;
    --bg-color: #f5f5f5;
    --menu-bg: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease-in-out;
    --icon-size: 1.25rem;
    --icon-color: #666666;
    --popup-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --popup-bg: #ffffff;
    --popup-hover: rgba(237, 28, 36, 0.05);
    --popup-border: rgba(0, 0, 0, 0.05);
}

.menu {
    width: 15%;
    height: 100vh;
    position: fixed;
    background: var(--menu-bg);
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5rem;
    color: var(--color-hover);
}

.logo img {
    width: 30px;
    height: 30px;
}



.item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color2);
    text-decoration: none;
    position: relative;
}

.item i {
    font-size: var(--icon-size);
    color: var(--icon-color);
    transition: var(--transition);
}
.item span {
    margin-left: 1rem;
}
.item .bx-plus {
    margin-left: auto;
    opacity: 0;
    transform: scale(0.8);
    background: rgba(193, 53, 53, 0.1);
    height: 100%;
    width: 40px;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.item:hover .bx-plus {
    opacity: 1;
    transform: scale(1);
    background: var(--color-hover);
    color: var(--color1);
}

.item:hover {
    background: rgba(193, 53, 53, 0.236);
}

.item:hover i {
    color: var(--color-hover);
}

.item.active {
    background: rgba(193, 53, 53, 0.05);
    border-left: 4px solid var(--color-hover);
}

.item.active i {
    color: var(--color-hover);
}

.item.active .bx-plus {
    opacity: 1;
    transform: scale(1);
    background: var(--color-hover);
    color: var(--color1);
}

.filter-popup {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    width: 280px;
    position: fixed;
    left: 15%;
    top: 63px;
    height: calc(100vh - 80px);
    padding: 10px;
    padding-bottom: 80px;
    display: none;
    transition: all 0.3s ease;
}

.filter-popup h3 {
    font-size: 1.25em;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 70px;
}

.locations-list > li {
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.locations-list > li:hover {
    background: #f8f9fa;
    border-radius: 6px;
}

.location-name {
    font-size: 0.9em;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.location-name:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.location-name.toggle::after {
    content: '▾';
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.location-name.toggle.collapsed::after {
    transform: rotate(-90deg);
}

.sub-locations {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 6px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-locations li {
    font-size: 0.85em;
    color: #555;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sub-locations li:hover {
    background: rgba(0, 123, 255, 0.05);
    color: #007bff;
}

.sub-locations .count {
    font-size: 0.8em;
    color: #999;
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
}

.bottom-popup-filter {
    position: fixed;
    bottom: 0;
    left: 15%;
    width: 270px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 25%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.add-location-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-hover);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.add-location-btn:hover {
    background: #d1191f;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.add-location-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.add-location-btn i {
    font-size: 1.2em;
}

.location-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.location-title i {
    cursor: pointer;
    font-size: 1.5em;
}