/* Management Sidebar Styles */

.management-sidebar {
    position: fixed;
    bottom: 0;
    right: -350px;
    width: 350px;
    height: 70vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px 0 0 0;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
}

.management-sidebar.open {
    right: 0;
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
}

.sidebar-header h6 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: white;
}

.sidebar-header h6 i {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.sidebar-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    color: white;
    background: rgba(148, 163, 184, 0.2);
}

.sidebar-body {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.sidebar-section {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 0;
}

.section-title {
    margin: 0;
    padding: 16px 20px 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.05);
}

.section-title i {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

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

.sidebar-list li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.sidebar-list a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    transform: translateX(4px);
}

.sidebar-list a i {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.sidebar-list a:hover i {
    color: #3b82f6;
}

.sidebar-list .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Management Toggle Button */
.management-toggle-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.management-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.management-toggle-btn:active {
    transform: scale(0.95);
}

.management-toggle-btn i {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .management-sidebar {
        right: -100vw;
        width: 100vw;
        height: 80vh;
        border-radius: 12px 12px 0 0;
    }
    
    .management-sidebar.open {
        right: 0;
    }
    
    .management-toggle-btn {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .management-toggle-btn i {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-list a {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}