/**
 * العنقاء - Game Studio Professional Theme
 * قالب احترافي خاص باستوديو تطوير الألعاب
 */

/* ============================================
   Arabic Fonts - خطوط عربية احترافية
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

* {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 400;
    margin: 0;
    padding-top: calc(var(--brand-header-height, 90px) + var(--topnav-height, 78px));
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 700;
}

.brand-text {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 900;
}

/* ============================================
   Game Studio Colors - ألوان استوديو ألعاب
   ============================================ */
:root {
    /* Gaming Dark Theme */
    --gs-dark: #0a0e27;
    --gs-dark-secondary: #1a1f3a;
    --gs-dark-tertiary: #252b4a;
    
    /* Neon Accents */
    --gs-neon-blue: #00d9ff;
    --gs-neon-purple: #b026ff;
    --gs-neon-pink: #ff006e;
    --gs-neon-green: #39ff14;
    --gs-neon-orange: #ff6b35;
    
    /* Primary Gaming Colors */
    --gs-primary: #6366f1;
    --gs-primary-dark: #4f46e5;
    --gs-secondary: #8b5cf6;
    --gs-accent: #ec4899;
    
    /* Gradients */
    --gs-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gs-gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #252b4a 100%);
    --gs-gradient-neon: linear-gradient(135deg, #00d9ff 0%, #b026ff 50%, #ff006e 100%);
    --gs-gradient-gaming: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #ec4899 60%, #f59e0b 100%);
    
    /* Background */
    --gs-bg-dark: #0f172a;
    --gs-bg-card: #1e293b;
    --gs-bg-hover: #334155;
    
    /* Text */
    --gs-text-primary: #f1f5f9;
    --gs-text-secondary: #cbd5e1;
    --gs-text-muted: #94a3b8;
}

/* ============================================
   Login Page - Gaming Style
   ============================================ */
.login-page {
    background: var(--gs-gradient-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: backgroundShift 10s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(99, 102, 241, 0.03) 2px, rgba(99, 102, 241, 0.03) 4px);
    pointer-events: none;
}

.login-page .card {
    border: none;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    background: rgba(30, 41, 59, 0.9);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.login-page .card-body h2 {
    background: var(--gs-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 2.5rem;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    letter-spacing: 1px;
}

.login-page .form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--gs-text-primary);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.login-page .form-control:focus {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--gs-primary);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.3);
    color: var(--gs-text-primary);
}

.login-page .form-label {
    color: var(--gs-text-secondary);
    font-weight: 600;
}

.login-page .btn-primary {
    background: var(--gs-gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
    background: var(--gs-gradient-primary);
}

/* ============================================
   Navigation - Gaming Navbar
   ============================================ */
.anqaas-navbar {
    background: var(--gs-gradient-dark) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.anqaas-brand {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gs-text-primary) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.anqaas-brand:hover {
    transform: scale(1.05);
    color: var(--gs-neon-blue) !important;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.anqaas-brand i {
    font-size: 2rem;
    background: var(--gs-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: flame 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

@keyframes flame {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5)); }
    50% { transform: scale(1.15) rotate(-5deg); filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8)); }
}

.anqaas-logo {
    height: 40px;
    width: auto;
    margin-left: 10px;
    /* فلاتر لتحسين وضوح الشعار على الخلفية الداكنة */
    filter: 
        brightness(1.5) 
        contrast(1.2) 
        saturate(1.3)
        drop-shadow(0 0 10px rgba(99, 102, 241, 0.6))
        drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    transition: all 0.3s;
}

.anqaas-brand:hover .anqaas-logo {
    transform: scale(1.1);
    filter: 
        brightness(1.8) 
        contrast(1.3) 
        saturate(1.5)
        drop-shadow(0 0 15px rgba(99, 102, 241, 0.9))
        drop-shadow(0 0 30px rgba(139, 92, 246, 0.6))
        drop-shadow(0 0 40px rgba(236, 72, 153, 0.4));
}

.brand-text {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gs-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    padding: 10px 20px;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0 5px;
    color: var(--gs-text-secondary) !important;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gs-gradient-primary);
    opacity: 0.1;
    transition: left 0.3s;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(99, 102, 241, 0.15);
    color: var(--gs-neon-blue) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.navbar-nav .nav-link.active {
    background: var(--gs-gradient-primary);
    color: white !important;
    font-weight: 700;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active::before {
    display: none;
}

.navbar-nav .nav-link i {
    margin-left: 8px;
    font-size: 1.2rem;
}

/* ============================================
   Main Content - Dark Gaming Theme
   ============================================ */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    padding-top: calc(90px + 78px); /* brand-header-height + topnav-height */
    min-height: 100vh;
    background: 
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        var(--gs-bg-dark);
    background-attachment: fixed;
    color: var(--gs-text-primary);
    flex: 1;
}

main {
    flex: 1;
}

.container-fluid.py-4 {
    padding: 40px 20px !important;
}

.container {
    max-width: 1400px;
}

/* ============================================
   Cards - Gaming Style
   ============================================ */
.card {
    border: none;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    margin-bottom: 25px;
    border-radius: 15px;
    transition: all 0.3s;
    overflow: hidden;
    background: var(--gs-bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gs-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.card-header {
    background: var(--gs-gradient-dark);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    font-weight: 700;
    border-radius: 15px 15px 0 0 !important;
    padding: 18px 25px;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-header h5,
.card-header h6,
.card-header .mb-0 {
    color: #ffffff !important;
    font-weight: 700;
}

.card-header.bg-primary {
    background: var(--gs-gradient-primary) !important;
    color: white !important;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-body {
    padding: 25px;
    background: var(--gs-bg-card);
    color: #f1f5f9 !important;
}

.card-body *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.badge):not(.btn) {
    color: #f1f5f9 !important;
}

.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-body p,
.card-body span:not(.badge),
.card-body div:not(.badge) {
    color: #e2e8f0 !important;
    font-weight: 500;
}

/* ============================================
   Tables - Gaming Style
   ============================================ */
.table {
    margin-bottom: 0;
    color: var(--gs-text-primary);
}

.table thead th {
    background: var(--gs-gradient-dark);
    font-weight: 700;
    border-bottom: 3px solid var(--gs-primary);
    color: #ffffff !important;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-top: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.table tbody td {
    border-color: rgba(99, 102, 241, 0.1);
    padding: 15px;
    color: #f1f5f9 !important;
    font-weight: 500;
    background: rgba(30, 41, 59, 0.5);
}

.table tbody tr {
    background: rgba(30, 41, 59, 0.3);
}

.table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.5);
}

.table-hover tbody tr {
    transition: all 0.2s;
    background: transparent;
}

.table-hover tbody tr:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.table-hover tbody tr:hover td {
    color: #ffffff !important;
    font-weight: 600;
}

/* ============================================
   Forms - Gaming Style
   ============================================ */
.form-label {
    font-weight: 700;
    margin-bottom: 10px;
    color: #f1f5f9 !important;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--gs-text-primary);
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gs-primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 
        0 0 0 0.25rem rgba(99, 102, 241, 0.25),
        0 0 20px rgba(99, 102, 241, 0.3);
    color: var(--gs-text-primary);
}

.form-control::placeholder {
    color: var(--gs-text-muted);
}

/* ============================================
   Buttons - Gaming Style
   ============================================ */
.btn {
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gs-gradient-primary);
    color: white;
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--gs-gradient-primary);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 30px rgba(99, 102, 241, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 20px rgba(107, 114, 128, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(107, 114, 128, 0.6);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ============================================
   Badges - Neon Style
   ============================================ */
.badge {
    padding: 8px 16px;
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bg-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1c1917 !important;
}

.bg-info {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    color: white !important;
}

.bg-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    color: white !important;
}

.bg-danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    color: white !important;
}

.bg-primary {
    background: var(--gs-gradient-primary) !important;
    color: white !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
    color: white !important;
}

.bg-dark {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    color: white !important;
}

/* ============================================
   Alerts - Gaming Style
   ============================================ */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    font-weight: 600;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #34d399;
    border-left-color: #10b981;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #f87171;
    border-left-color: #ef4444;
    backdrop-filter: blur(10px);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #fbbf24;
    border-left-color: #f59e0b;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: #60a5fa;
    border-left-color: #3b82f6;
    backdrop-filter: blur(10px);
}

/* ============================================
   Modal - Gaming Style
   ============================================ */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(99, 102, 241, 0.3);
    overflow: hidden;
    background: var(--gs-bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.modal-header {
    background: var(--gs-gradient-dark);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-header h5,
.modal-header .modal-title {
    color: #ffffff !important;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
    background: var(--gs-bg-card);
    color: #f1f5f9 !important;
}

.modal-body *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.badge):not(.btn):not(label) {
    color: #f1f5f9 !important;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body label {
    color: #f1f5f9 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-body small,
.modal-body .form-text {
    color: #cbd5e1 !important;
    font-weight: 500;
}

.modal-footer {
    border-top: 2px solid rgba(99, 102, 241, 0.2);
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    background: var(--gs-gradient-dark);
}

.modal-backdrop {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(5px);
}

/* ============================================
   Statistics Cards - Neon Effects
   ============================================ */
.card.border-warning,
.card.border-info,
.card.border-primary,
.card.border-success {
    transition: all 0.3s;
    border-width: 3px !important;
    position: relative;
    overflow: hidden;
}

.card.border-warning {
    border-color: #f59e0b !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.card.border-info {
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.card.border-primary {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.card.border-success {
    border-color: #10b981 !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.card.border-warning:hover,
.card.border-info:hover,
.card.border-primary:hover,
.card.border-success:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.4),
        0 0 30px currentColor;
}

.card.border-warning .card-title {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.card.border-info .card-title {
    color: #60a5fa !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.card.border-primary .card-title {
    color: #818cf8 !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.card.border-success .card-title {
    color: #34d399 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.card.border-warning h2,
.card.border-info h2,
.card.border-primary h2,
.card.border-success h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px currentColor, 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
}

/* ============================================
   List Groups
   ============================================ */
.list-group-item {
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 15px 20px;
    transition: all 0.3s;
    background: var(--gs-bg-card);
    color: #f1f5f9 !important;
    font-weight: 500;
}

.list-group-item span:not(.badge) {
    color: #f1f5f9 !important;
}

.list-group-item:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.list-group-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ============================================
   Download Cards
   ============================================ */
.card-body.text-center {
    padding: 50px 30px;
    transition: all 0.3s;
}

.card-body.text-center:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.card-body.text-center i {
    opacity: 0.9;
    transition: all 0.3s;
    font-size: 4rem;
    filter: drop-shadow(0 0 20px currentColor);
}

.card-body.text-center:hover i {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 30px currentColor);
}

/* ============================================
   Task Cards
   ============================================ */
.card.border-start {
    transition: all 0.3s;
    border-left-width: 5px !important;
}

.card.border-start:hover {
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateX(-8px);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 25px;
}

.breadcrumb-item a {
    color: var(--gs-neon-blue);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: var(--gs-primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gs-text-muted);
    content: "›";
}

/* ============================================
   Text Colors - Enhanced Visibility
   ============================================ */
.text-muted {
    color: #94a3b8 !important;
    font-weight: 500;
    opacity: 0.9;
}

.text-muted strong {
    color: #cbd5e1 !important;
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    background: var(--gs-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.5));
}

h2, h3, h4, h5, h6 {
    color: #f1f5f9 !important;
}

p {
    color: #e2e8f0 !important;
    font-weight: 400;
    line-height: 1.7;
}

strong {
    color: #ffffff !important;
    font-weight: 700;
}

.card-body {
    color: #e2e8f0 !important;
}

.card-body p:not(.text-muted),
.card-body span:not(.badge):not(.text-muted),
.card-body div:not(.badge):not(.text-muted) {
    color: #e2e8f0 !important;
    font-weight: 500;
}

.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */
.anqaas-footer {
    background: var(--gs-gradient-dark);
    color: var(--gs-text-primary);
    margin-top: auto;
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(99, 102, 241, 0.3);
    padding: 30px 0;
}

.anqaas-footer p {
    color: #cbd5e1 !important;
    margin: 0;
    font-weight: 500;
}

.anqaas-footer i {
    color: var(--gs-primary);
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .container-fluid.py-4 {
        padding: 25px 15px !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        margin: 5px 0;
    }

    .anqaas-brand {
        font-size: 1.4rem;
    }

    .card {
        margin-bottom: 20px;
    }
}

/* ============================================
   RTL Support
   ============================================ */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .dropdown-menu {
    text-align: right;
    background: var(--gs-bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body[dir="rtl"] .dropdown-item {
    color: #f1f5f9 !important;
    transition: all 0.2s;
    font-weight: 500;
}

body[dir="rtl"] .dropdown-item-text {
    color: #94a3b8 !important;
    font-weight: 500;
}

body[dir="rtl"] .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #00d9ff !important;
    font-weight: 600;
}

body[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

body[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

body[dir="rtl"] .navbar-nav .nav-link i {
    margin-right: 8px;
    margin-left: 0;
}

/* ============================================
   Professional Spacing
   ============================================ */
.mb-4 {
    margin-bottom: 2rem !important;
}

.g-4 > * {
    padding: 20px;
}

/* ============================================
   Icons
   ============================================ */
.bi {
    vertical-align: middle;
}

/* ============================================
   Custom Scrollbar - Gaming Style
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gs-dark);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--gs-gradient-primary);
    border-radius: 6px;
    border: 2px solid var(--gs-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gs-gradient-neon);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ============================================
   Login Logo Animation
   ============================================ */
.login-logo {
    max-height: 100px;
    width: auto;
    /* Invert colors for dark backgrounds - adjust or remove if not needed */
    filter: 
        invert(1)
        drop-shadow(0 0 20px rgba(99, 102, 241, 0.7))
        drop-shadow(0 0 30px rgba(139, 92, 246, 0.5))
        drop-shadow(0 0 40px rgba(236, 72, 153, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: 
            invert(1)
            drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
    }
    50% { 
        transform: translateY(-15px) scale(1.05); 
        filter: 
            invert(1)
            drop-shadow(0 0 30px rgba(99, 102, 241, 0.8));
    }
}

/* ============================================
   Gaming Glow Effects
   ============================================ */
.gaming-glow {
    box-shadow: 
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 60px currentColor;
}

/* ============================================
   Link Styles
   ============================================ */
a {
    color: var(--gs-neon-blue);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--gs-primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

a.text-decoration-none:hover {
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ============================================
   Tabs Styling - تنسيق التبويبات
   ============================================ */
.anqaas-tabs {
    border-bottom: 2px solid var(--gs-dark-tertiary) !important;
}

.anqaas-tabs .nav-link {
    color: var(--gs-text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.anqaas-tabs .nav-link:hover {
    color: var(--gs-text-primary);
    background: var(--gs-dark-secondary);
    border-bottom-color: var(--gs-primary);
}

.anqaas-tabs .nav-link.active {
    color: var(--gs-text-primary);
    background: var(--gs-dark-secondary);
    border-bottom-color: var(--gs-neon-blue);
    font-weight: 600;
}

.anqaas-tabs .nav-link i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.tab-content {
    margin-top: 0;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Permission Checkboxes Styling
   ============================================ */
.permission-checkbox,
.form-check-input[type="checkbox"] {
    margin-top: 4px !important;
    cursor: pointer;
    accent-color: var(--gs-neon-blue);
}

.form-check-label {
    user-select: none;
}

.form-check:has(input[type="checkbox"]:checked) {
    border-color: var(--gs-neon-blue) !important;
    background: rgba(0, 217, 255, 0.1) !important;
}

.form-check:has(input[type="checkbox"]:checked) .form-check-label strong {
    color: var(--gs-neon-blue);
}

/* ============================================
   Gantt Chart Styling - تنسيق الجدول الزمني
   ============================================ */

/* Gantt Container */
#gantt-container {
    background: var(--gs-dark-secondary);
    border-radius: 8px;
    padding: 20px;
    direction: ltr; /* Gantt charts work better LTR */
}

/* Gantt Chart Dark Theme Override */
.gantt-container {
    background: var(--gs-dark-secondary) !important;
    color: var(--gs-text-primary) !important;
}

.gantt-container .grid-background {
    fill: var(--gs-dark-secondary) !important;
}

.gantt-container .grid-row {
    fill: var(--gs-dark-secondary) !important;
}

.gantt-container .grid-row:nth-child(even) {
    fill: var(--gs-dark-tertiary) !important;
}

.gantt-container .row-line {
    stroke: var(--gs-dark-tertiary) !important;
}

.gantt-container .tick {
    stroke: var(--gs-text-muted) !important;
}

.gantt-container .today-highlight {
    fill: rgba(99, 102, 241, 0.2) !important;
}

/* Gantt Bars - Priority Colors */
.gantt-container .bar-wrapper .bar {
    border-radius: 3px !important;
}

.gantt-container .bar-wrapper .bar.priority-low {
    fill: #22c55e !important; /* green */
}

.gantt-container .bar-wrapper .bar.priority-medium {
    fill: #3b82f6 !important; /* blue */
}

.gantt-container .bar-wrapper .bar.priority-high {
    fill: #f59e0b !important; /* orange */
}

.gantt-container .bar-wrapper .bar.priority-critical {
    fill: #ef4444 !important; /* red */
}

/* Progress Bar Colors */
.gantt-container .bar-wrapper .bar-progress {
    border-radius: 3px !important;
}

/* Gantt Labels */
.gantt-container .bar-label {
    fill: var(--gs-text-primary) !important;
    font-weight: 600;
}

.gantt-container .lower-text,
.gantt-container .upper-text {
    fill: var(--gs-text-primary) !important;
}

/* Gantt Header */
.gantt-container .grid-header {
    fill: var(--gs-dark-tertiary) !important;
}

.gantt-container .header-text {
    fill: var(--gs-text-primary) !important;
    font-weight: 600;
}

/* Gantt Popup */
.gantt-popup {
    background: var(--gs-bg-card) !important;
    border: 1px solid var(--gs-dark-tertiary) !important;
    color: var(--gs-text-primary) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Gantt Arrow */
.gantt-container .arrow {
    stroke: var(--gs-text-muted) !important;
    fill: var(--gs-text-muted) !important;
}

/* Gantt View Mode Buttons */
#viewDayBtn.active,
#viewWeekBtn.active,
#viewMonthBtn.active {
    background: linear-gradient(135deg, var(--gs-primary) 0%, var(--gs-secondary) 100%) !important;
    border-color: var(--gs-primary) !important;
    color: white !important;
}

#viewDayBtn:hover,
#viewWeekBtn:hover,
#viewMonthBtn:hover {
    background: var(--gs-dark-tertiary) !important;
    border-color: var(--gs-primary) !important;
}

/* Responsive Gantt */
@media (max-width: 768px) {
    #gantt-container {
        padding: 10px;
        overflow-x: auto;
    }
    
    .gantt-container {
        min-width: 800px;
    }
}

/* ============================================
   Kanban Board Styling - تنسيق السجل البصري
   ============================================ */

/* Kanban Columns */
.kanban-column {
    transition: all 0.3s ease;
}

.kanban-column:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.kanban-column-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 15px;
}

.kanban-column-body {
    min-height: 500px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 10px !important;
}

/* Kanban Cards */
.kanban-card {
    transition: all 0.2s ease;
    border-left: 3px solid var(--gs-primary) !important;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-left-color: var(--gs-neon-blue) !important;
}

.kanban-card a {
    color: var(--gs-text-primary) !important;
    transition: color 0.2s ease;
}

.kanban-card a:hover {
    color: var(--gs-neon-blue) !important;
}

/* SortableJS Drag States */
.kanban-ghost {
    opacity: 0.4;
    background: var(--gs-dark-tertiary) !important;
    border: 2px dashed var(--gs-primary) !important;
}

.kanban-chosen {
    cursor: grabbing !important;
    transform: rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.kanban-drag {
    opacity: 0.8;
}

/* Kanban Card Content */
.kanban-card .card-body {
    padding: 12px !important;
}

.kanban-card h6 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.kanban-card small {
    font-size: 0.85rem;
}

/* Empty Column Message */
.kanban-column-body:empty::before {
    content: "لا توجد مهام";
    display: block;
    text-align: center;
    color: var(--gs-text-muted);
    padding: 20px;
    font-style: italic;
}

/* Kanban Notification */
.kanban-notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Kanban */
@media (max-width: 992px) {
    .kanban-column {
        margin-bottom: 20px;
    }
    
    .kanban-column-body {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .kanban-column-body {
        max-height: 300px;
    }
}

/* Subtasks Styling */
.subtasks-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gs-dark-tertiary) var(--gs-dark-secondary);
}

.subtasks-list::-webkit-scrollbar {
    width: 4px;
}

.subtasks-list::-webkit-scrollbar-track {
    background: var(--gs-dark-secondary);
}

.subtasks-list::-webkit-scrollbar-thumb {
    background: var(--gs-dark-tertiary);
    border-radius: 2px;
}

.subtasks-list::-webkit-scrollbar-thumb:hover {
    background: var(--gs-primary);
}

.subtask-item {
    transition: all 0.2s ease;
    padding: 4px 0;
}

.subtask-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    padding-right: 4px;
    padding-left: 4px;
}

.subtask-toggle {
    cursor: pointer;
    accent-color: var(--gs-primary);
}

.subtask-title {
    user-select: none;
    word-break: break-word;
}

/* Progress Bar Styling in Kanban Cards */
.kanban-card .progress {
    border-radius: 3px;
    overflow: hidden;
}

.kanban-card .progress-bar {
    transition: width 0.3s ease;
}
