/* Left Sidebar Menu Styles */

/* Main Container */
.side-menu-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: #000000;
    color: #ffffff;
    z-index: 1000;
    transition: width 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Collapsed State */
.side-menu-left.side-menu-left-collapsed {
    width: 70px;
}

/* Toggle Button */
.side-menu-left-toggle {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
}

.side-menu-left-toggle:hover {
    background-color: #f8f9fa;
    transform: scale(1.1);
}

.side-menu-left-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Arrow direction for toggle button */
.side-menu-left-collapsed .side-menu-left-toggle i {
    transform: rotate(180deg);
}

.side-menu-left .side-menu-left-toggle i {
    transform: rotate(0deg);
}

/* Content Container */
.side-menu-left-content {
    padding-top: 80px;
    padding-bottom: 20px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333333 #000000;
}

.side-menu-left-content::-webkit-scrollbar {
    width: 6px;
}

.side-menu-left-content::-webkit-scrollbar-track {
    background: #000000;
}

.side-menu-left-content::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

.side-menu-left-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Menu Items */
.side-menu-left-item {
    margin: 0;
    border-bottom: 1px solid #222222;
}

.side-menu-left-item:last-child {
    border-bottom: none;
}

.side-menu-left-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-menu-left-link:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    transform: translateX(5px);
}

.side-menu-left-link:active {
    background-color: #333333;
}

/* Icon Container */
.side-menu-left-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.side-menu-left-link:hover .side-menu-left-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.side-menu-left-icon i {
    font-size: 18px;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Text Container */
.side-menu-left-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 1;
}

/* Dropdown Arrow */
.side-menu-left-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.side-menu-left-arrow i {
    font-size: 12px;
    color: #ffffff;
}

/* Dropdown Styles */
.side-menu-left-dropdown.side-menu-left-expanded .side-menu-left-arrow {
    transform: rotate(180deg);
}

.side-menu-left-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #111111;
}

.side-menu-left-dropdown.side-menu-left-expanded .side-menu-left-submenu {
    max-height: 500px;
}

/* Submenu Items */
.side-menu-left-subitem {
    border-bottom: 1px solid #222222;
}

.side-menu-left-subitem:last-child {
    border-bottom: none;
}

.side-menu-left-sublink {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 55px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-menu-left-sublink:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    transform: translateX(5px);
}

.side-menu-left-sublink:active {
    background-color: #333333;
}

/* Submenu Icon */
.side-menu-left-subicon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.side-menu-left-sublink:hover .side-menu-left-subicon {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.side-menu-left-subicon i {
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Submenu Text */
.side-menu-left-subtext {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 1;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Collapsed State Styles */
.side-menu-left-collapsed .side-menu-left-text,
.side-menu-left-collapsed .side-menu-left-arrow {
    opacity: 0;
    width: 0;
    margin-left: 0;
}

.side-menu-left-collapsed .side-menu-left-icon {
    margin-right: 0;
    margin-left: 15px;
}

.side-menu-left-collapsed .side-menu-left-link {
    justify-content: center;
    padding: 15px 10px;
}

.side-menu-left-collapsed .side-menu-left-link:hover {
    transform: translateX(0);
}

.side-menu-left-collapsed .side-menu-left-submenu {
    display: none;
}

/* Active State */
.side-menu-left-link.active,
.side-menu-left-sublink.active {
    background-color: #1a1a1a;
    border-left: 4px solid #007bff;
}

.side-menu-left-link.active .side-menu-left-icon,
.side-menu-left-sublink.active .side-menu-left-subicon {
    background-color: rgba(0, 123, 255, 0.2);
}

/* Main Content Push Layout */
body {
    margin-left: 200px;
    transition: margin-left 0.3s ease;
}

body.side-menu-left-collapsed {
    margin-left: 70px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-menu-left {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .side-menu-left.side-menu-left-open {
        transform: translateX(0);
    }
    
    .side-menu-left.side-menu-left-collapsed {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .side-menu-left-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        right: auto;
        z-index: 1002;
    }
    
    .side-menu-left-content {
        padding-top: 100px;
    }
    
    /* Reset body margin on mobile */
    body {
        margin-left: 0;
    }
    
    body.side-menu-left-collapsed {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .side-menu-left {
        width: 100%;
    }
    
    .side-menu-left-content {
        padding: 80px 15px 20px 15px;
    }
    
    .side-menu-left-link {
        padding: 12px 15px;
    }
    
    .side-menu-left-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .side-menu-left-icon i {
        font-size: 16px;
    }
    
    .side-menu-left-text {
        font-size: 13px;
    }
}

/* Animation for menu items */
.side-menu-left-item {
    animation: slideInLeft 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.side-menu-left-item:nth-child(1) { animation-delay: 0.1s; }
.side-menu-left-item:nth-child(2) { animation-delay: 0.15s; }
.side-menu-left-item:nth-child(3) { animation-delay: 0.2s; }
.side-menu-left-item:nth-child(4) { animation-delay: 0.25s; }
.side-menu-left-item:nth-child(5) { animation-delay: 0.3s; }
.side-menu-left-item:nth-child(6) { animation-delay: 0.35s; }
.side-menu-left-item:nth-child(7) { animation-delay: 0.4s; }
.side-menu-left-item:nth-child(8) { animation-delay: 0.45s; }
.side-menu-left-item:nth-child(9) { animation-delay: 0.5s; }
.side-menu-left-item:nth-child(10) { animation-delay: 0.55s; }
.side-menu-left-item:nth-child(11) { animation-delay: 0.6s; }
.side-menu-left-item:nth-child(12) { animation-delay: 0.65s; }
.side-menu-left-item:nth-child(13) { animation-delay: 0.7s; }
.side-menu-left-item:nth-child(14) { animation-delay: 0.75s; }
.side-menu-left-item:nth-child(15) { animation-delay: 0.8s; }
.side-menu-left-item:nth-child(16) { animation-delay: 0.85s; }
.side-menu-left-item:nth-child(17) { animation-delay: 0.9s; }
.side-menu-left-item:nth-child(18) { animation-delay: 0.95s; }
.side-menu-left-item:nth-child(19) { animation-delay: 1s; }
.side-menu-left-item:nth-child(20) { animation-delay: 1.05s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tooltip for collapsed state */
.side-menu-left-collapsed .side-menu-left-item {
    position: relative;
}

.side-menu-left-collapsed .side-menu-left-item:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1003;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.side-menu-left-collapsed .side-menu-left-item:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #333333;
    margin-left: 5px;
    z-index: 1003;
} 