/* SME360 Slide Menu - Premium UX Extension */
:root {
    --side-bg: rgba(10, 15, 31, 0.9);
    --neon-blue: #00f2ff;
    --neon-purple: #7000ff;
}

/* Hamburger Morph Button */
.hamburger-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10001;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hamburger-toggle:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.hamburger-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.4s;
    border-radius: 2px;
}

.hamburger-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-toggle.active span:nth-child(2) { opacity: 0; }
.hamburger-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Slide Side Panel */
.side-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: var(--side-bg);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(0, 242, 255, 0.2);
    z-index: 10000;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

html[dir="rtl"] .side-slide-panel {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(0, 242, 255, 0.2);
    transform: translateX(-105%);
}

.side-slide-panel.open {
    transform: translateX(0);
}

.side-panel-header {
    padding: 40px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.side-panel-header h2 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--neon-blue);
    margin: 0;
    text-transform: uppercase;
}

.side-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Custom Scrollbar */
.side-panel-content::-webkit-scrollbar {
    width: 4px;
}
.side-panel-content::-webkit-scrollbar-track {
    background: transparent;
}
.side-panel-content::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
}

/* Widget Container Styling Inside Panel */
.panel-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 2px;
    margin: 30px 0 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* Override Moved Elements Styles */
/* Side Nav Grid */
.side-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.side-nav-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 15px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.side-nav-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.4s;
}

.side-nav-card:hover .nav-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.side-nav-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-nav-card:hover span {
    color: #fff;
}

.side-panel-content .level-stats-card,
.side-panel-content .os-glass-panel,
.side-panel-content .ai-consciousness-card {
    position: static !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: all !important;
    opacity: 1 !important;
}

.side-panel-content .os-glass-panel {
    padding: 20px !important;
}

/* Overlay */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pulse Animation for Live Data Node */
@keyframes nodePulse {
    0% { box-shadow: 0 0 5px rgba(0, 242, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 242, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 242, 255, 0.2); }
}

.side-panel-content .os-glass-panel {
    animation: nodePulse 3s infinite ease-in-out;
}

.side-panel-content > div:not(.side-nav-grid):hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--neon-blue) !important;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
