/**
 * Agent System Pro
 * Filename: sidebar.css
 * Version: 1.0
 * Folder: /plugins/agentsystempro/assets/css/
 * Description: Sidebar navigation styles
 * Developer: Jim Tjernstroem
 * Copyright: Vianke Ltd Jim Tjernstroem 2025
 */

/* Sidebar */
.asp-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: #2c3e50;
    overflow-y: auto;
    transition: transform 0.3s;
    z-index: 999;
}

/* Navigation */
.asp-nav {
    padding: 20px 0;
}

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

.asp-nav-item {
    margin-bottom: 2px;
}

.asp-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.asp-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 25px;
}

.asp-nav-item.active .asp-nav-link {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left: 3px solid #3498db;
}

.asp-nav-icon {
    width: 30px;
    display: flex;
    align-items: center;
}

.asp-nav-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.asp-nav-text {
    flex: 1;
}

/* Sidebar Footer */
.asp-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
}

.asp-sidebar-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.asp-sidebar-user-avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.asp-sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.asp-sidebar-user-info {
    flex: 1;
}

.asp-sidebar-user-name {
    display: block;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.asp-sidebar-user-role {
    display: block;
    color: #95a5a6;
    font-size: 12px;
}

.asp-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(231, 76, 60, 0.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.asp-sidebar-logout:hover {
    background: rgba(231, 76, 60, 1);
    color: #ffffff;
}

.asp-sidebar-logout .dashicons {
    margin-right: 8px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Mobile Overlay */
@media (max-width: 768px) {
    .asp-sidebar {
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .asp-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .asp-sidebar.active ~ .asp-sidebar-overlay {
        display: block;
    }
}

/* Scrollbar Styling */
.asp-sidebar::-webkit-scrollbar {
    width: 6px;
}

.asp-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.asp-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.asp-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dark Theme Adjustments */
.asp-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
}

/* Icon Animations */
.asp-nav-link:hover .asp-nav-icon {
    transform: translateX(3px);
    transition: transform 0.3s;
}

/* Badge Support */
.asp-nav-badge {
    margin-left: auto;
    background: #e74c3c;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
