/* POL PROFIT Core Design System (CSS Custom Properties) */
:root {
    --bg-dark: #0b0813;
    --bg-card: rgba(18, 14, 30, 0.7);
    --bg-card-solid: #120e1e;
    --border-glass: rgba(168, 85, 247, 0.25);
    
    /* Cyberpunk Branding Palette */
    --clr-purple: #a855f7;
    --clr-cyan: #06b6d4;
    --clr-indigo: #6366f1;
    --clr-magenta: #d946ef;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent 600px), 
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.15), transparent 600px),
                linear-gradient(rgba(11, 8, 19, 0.88), rgba(11, 8, 19, 0.94)),
                url('images/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Translucent Background Glow Effect (animated) */
.glass-glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glass-glow-bg::before, .glass-glow-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.2;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glass-glow-bg::before {
    background: var(--clr-purple);
    top: -100px;
    left: -100px;
}

.glass-glow-bg::after {
    background: var(--clr-cyan);
    bottom: -100px;
    right: -100px;
    animation-delay: -7.5s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 90px) scale(1.3); }
}

/* Layout Framework */
.panel-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(11, 8, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.logo-container img {
    height: 40px;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: none; /* Desktop hidden */
}

.panel-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Sidebar Styling */
.panel-sidebar {
    width: 260px;
    background: rgba(18, 14, 30, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    transition: var(--transition-smooth);
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    z-index: 90;
}

.sidebar-menu {
    list-style: none;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition-smooth);
}

.sidebar-menu li a i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
}

.sidebar-menu li.active a, .sidebar-menu li a:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    border-left-color: var(--clr-purple);
}

/* Content Area */
.panel-content {
    flex-grow: 1;
    padding: 30px;
    margin-left: 260px; /* Offset fixed sidebar */
    transition: var(--transition-smooth);
}

/* Glassmorphic Components */
.glass-card {
    background: rgba(18, 14, 30, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.15);
}

.solid-card {
    background: var(--bg-card-solid);
    border: 1px solid #221a35;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
    display: none;
}

/* Responsive Rules (Mobile 1st overrides) */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: block; /* Visible on mobile */
    }
    
    .panel-sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        height: calc(100vh - 60px);
        width: 260px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }
    
    .panel-sidebar.active {
        left: 0;
    }
    
    .panel-content {
        padding: 15px; /* Minimal padding on mobile */
        padding-bottom: 95px; /* Leave space for bottom nav */
        margin-left: 0;
    }

    /* Floating Premium Bottom Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 15px;
        left: 15px;
        right: 15px;
        height: 65px;
        background: rgba(18, 14, 30, 0.65);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        transition: var(--transition-smooth);
        padding: 8px 10px;
        border-radius: 12px;
        flex-grow: 1;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 4px;
        transition: var(--transition-smooth);
    }
    
    .mobile-nav-item.active {
        color: var(--clr-purple);
        background: rgba(168, 85, 247, 0.1);
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    }
    
    .mobile-nav-item.active i {
        transform: translateY(-2px);
        color: var(--clr-purple);
        filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.8));
    }
}

/* Premium Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.stat-card.cyan-glow {
    border-left: 4px solid var(--clr-cyan);
}
.stat-card.purple-glow {
    border-left: 4px solid var(--clr-purple);
}
.stat-card.magenta-glow {
    border-left: 4px solid var(--clr-magenta);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.12);
}

.cyan-glow .stat-icon-wrapper {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}
.purple-glow .stat-icon-wrapper {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}
.magenta-glow .stat-icon-wrapper {
    border-color: rgba(217, 70, 239, 0.3);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.1);
}

.cyan-glow .stat-icon-wrapper i { color: var(--clr-cyan); }
.purple-glow .stat-icon-wrapper i { color: var(--clr-purple); }
.magenta-glow .stat-icon-wrapper i { color: var(--clr-magenta); }

/* Global Form Controls & Styling Utilities */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(18, 14, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    display: block;
}
.form-input:focus {
    border-color: var(--clr-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    background: rgba(18, 14, 30, 0.85);
}
.form-input:disabled, .form-input[readonly] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--clr-cyan) !important; /* Cyan highlight for clear readability! */
    font-weight: 700;
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--clr-purple), var(--clr-indigo));
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}
.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}


