* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lucida Console', Arial, sans-serif;
    background-color: #223242;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #6BC9E2;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

#page-wrap {
    max-width: 44%;
    width: 100%;
    margin: 45px auto;
    border: 10px solid #6BC9E2;
    padding: 20px;
    color: #6BC9E2;
    border-radius: 30px;
    background: #345464;
    min-width: 300px;
    text-align: center;
}

.sidebar {
    width: 250px;
    background: #1E2B38;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 999;
    left: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu li > a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar-menu li > a:hover,
.sidebar-menu li.active > a {
    background: #345464;
    border-left: 3px solid #6BC9E2;
    color: #6BC9E2;
}

.has-submenu > a:after {
    content: "▼";
    float: right;
    font-size: 10px;
    margin-top: 5px;
    transition: transform 0.3s;
}

.has-submenu.active > a:after {
    content: "▲";
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #1A2735;
    display: none;
    position: relative;
    z-index: 1001;
    width: 100%;
}

.sidebar-menu li.active .submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.submenu li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.submenu li a {
    flex: 1;
    padding: 10px 20px 10px 30px;
    font-size: 13px;
    color: #E0E0E0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.submenu li:hover a {
    background: #6BC9E2;
    color: #1A2735;
    padding-left: 35px;
}

.compatibility {
    display: flex;
    gap: 5px;
    margin-right: 15px;
    flex-shrink: 0;
    padding-left: 10px;
}

.cfw, .ofw, .hfw {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.cfw {
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.ofw {
    color: #0095ff;
    background: rgba(0, 149, 255, 0.15);
    border: 1px solid rgba(0, 149, 255, 0.3);
}

.hfw {
    color: #9c27b0;
    background: rgba(156, 39, 176, 0.15);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.submenu li:hover .cfw,
.submenu li:hover .ofw,
.submenu li:hover .hfw {
    background: #1A2735;
    color: #6BC9E2;
}

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: #1a1a1a;
    color: white;
    border: 2px solid #6BC9E2;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #6BC9E2;
    color: white;
}

.logo-menu-trigger {
    padding: 12px 20px;
    cursor: pointer;
    max-width: 200px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.logo-menu-trigger:hover {
    transform: scale(1.05);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

.menu-section-title {
    font-weight: bold;
    padding: 8px 12px;
    color: #ffffff;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -250px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .overlay.active {
        display: block;
    }
    
    #page-wrap {
        max-width: 90%;
    }
    
    .submenu li {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }
    
    .submenu li a {
        width: 100%;
        padding-right: 20px;
        max-width: 100%;
    }
    
    .compatibility {
        margin: 5px 0 0 30px;
        padding-left: 0;
        align-self: flex-start;
    }
}