/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --helm-deep-bg: #0b0f19; /* قاعدة كحلية فضائية عميقة */
    --helm-card-glass: rgba(15, 23, 42, 0.45); /* زجاج بلوري نقي */
    --helm-border-glow: rgba(255, 255, 255, 0.08);
    --helm-text-light: #f8fafc;
    --helm-text-dim: #94a3b8;
    
    /* تدرجات نيون إبداعية لإحياء المنصات */
    --neon-blue: #00d2ff;
    --neon-purple: #00f2fe;
    --neon-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --neon-orange: #ff4e50;
    --neon-green: #f9d423;
    
    --font-main: 'Tajawal', sans-serif;
    --radius-creative: 24px; /* حواف دائرية عريضة جداً تحاكي البطاقات البنكية الفخمة */
}

body {
    background-color: var(--helm-deep-bg);
    /* تدرج شبكي مضيء خلفي إبداعي (Mesh Gradient) يمنح النظام عمقاً سينمائياً */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 114, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(123, 31, 162, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(0, 242, 254, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--helm-text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* القائمة الجانبية الإبداعية العائمة (Floating Cyber Sidebar) */
.helm-sidebar {
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 100vh;
    border-left: 1px solid var(--helm-border-glow);
    padding-top: 30px;
    z-index: 100;
}

.helm-sidebar .nav-link {
    color: var(--helm-text-dim);
    padding: 14px 22px;
    border-radius: var(--radius-creative);
    margin: 8px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html[dir="rtl"] .helm-sidebar .nav-link {
    text-align: right;
    justify-content: flex-start;
}

.helm-sidebar .nav-link i {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.helm-sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(-4px);
}

html[dir="ltr"] .helm-sidebar .nav-link:hover {
    transform: translateX(4px);
}

.helm-sidebar .nav-link.active {
    background: var(--neon-gradient);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(0, 114, 255, 0.6);
}

.helm-sidebar .nav-link.active i {
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* تصميم بطاقات النيون الزجاجية الثورية (Ultra-Glassmorphic Neon Cards) */
.helm-card {
    background: var(--helm-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--helm-border-glow);
    border-radius: var(--radius-creative);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* حركة التوهج الإبداعي الخارجي عند تمرير الماوس */
.helm-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 198, 255, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 114, 255, 0.25);
}

/* خطوط الإنجاز المتوهجة ثلاثية الأبعاد (3D Neon Progress) */
.helm-progress {
    height: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.helm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.8);
    border-radius: 20px;
}

/* بكسلات الأولويات المضيئة */
.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.priority-high { background-color: #ff4e50; box-shadow: 0 0 10px #ff4e50; }
.priority-medium { background-color: #f9d423; box-shadow: 0 0 10px #f9d423; }
.priority-low { background-color: #00f2fe; box-shadow: 0 0 10px #00f2fe; }

/* حقول الإدخال الإبداعية اللامعة */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    border-radius: var(--radius-creative);
    padding: 14px 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #00c6ff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.25);
}

/* أزرار الـ Neo-Glow الفاخرة */
.btn-creative-primary {
    background: var(--neon-gradient);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-creative);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
    transition: all 0.3s;
}
.btn-creative-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 114, 255, 0.6);
    transform: translateY(-2px);
}

/* تخصيص تجاوب الهواتف الذكية: تحويل القائمة الجانبية إلى كبسولة طائرة سفلى (Floating Premium Mobile Dock) */
@media (max-width: 767.98px) {
    .helm-sidebar {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        min-height: auto;
        height: 72px;
        padding-top: 0;
        display: block !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        background: rgba(11, 15, 25, 0.8);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    }
    .helm-sidebar .nav {
        flex-direction: row !important;
        justify-content: space-around;
        height: 100%;
        align-items: center;
    }
    .helm-sidebar .nav-link {
        flex-direction: column !important;
        font-size: 0.65rem;
        padding: 8px;
        margin: 0;
        gap: 2px;
        border: none !important;
    }
    .helm-sidebar .sidebar-heading, 
    .helm-sidebar .sidebar-footer { 
        display: none !important; 
    }
    main.helm-main-content { 
        padding: 24px 16px 110px 16px !important;
    }
}