/*
 * Bzzix Theme - CSS Priority Override
 * 
 * هذا الملف يضمن أن أنماط القالب لها الأولوية على Bootstrap
 * يتم تطبيق !important للعناصر الحرجة
 * 
 * @package Bzzix
 * @since 1.0.0
 */

/* ==========================================
   تأكيد الألوان والخلفيات الأساسية
   ========================================== */

:root {
    --primary-dark: #0a192f !important;
    --primary-blue: #112240 !important;
    --accent-blue: #64ffda !important;
    --text-light: #e6f1ff !important;
    --gradient-1: linear-gradient(135deg, #0a192f 0%, #112240 50%, #1a3a5f 100%) !important;
    --gradient-2: linear-gradient(135deg, #112240 0%, #1a3a5f 50%, #233d6e 100%) !important;
}

/* ==========================================
   تأكيد الخلفيات الأساسية
   ========================================== */

html, body {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
}

/* ==========================================
   تأكيد أنماط الأزرار
   ========================================== */

.btn-custom-primary:hover,
.btn-custom-primary:focus,
.btn-custom-primary:active {
    background: linear-gradient(135deg, #1a3a5f 0%, #233d6e 100%) !important;
    color: white !important;
    border-color: var(--accent-blue) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.3) !important;
}

.btn-custom-secondary:hover,
.btn-custom-secondary:focus,
.btn-custom-secondary:active {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px) !important;
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

/* ==========================================
   تأكيد أنماط الروابط
   ========================================== */

a {
    color: var(--accent-blue) !important;
    text-decoration: none !important;
}

a:hover {
    color: #4dabf7 !important;
    text-decoration: none !important;
}

/* ==========================================
   تأكيد أنماط النصوص
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light) !important;
}

.hero-title {
    background: linear-gradient(to right, #64ffda, #4dabf7) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 800 !important;
}

.hero-subtitle {
    color: rgba(230, 241, 255, 0.8) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.hero-description {
    color: rgba(230, 241, 255, 0.7) !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

.why-choose-title {
    background: linear-gradient(to right, #64ffda, #4dabf7) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-size: 2.8rem !important;
    font-weight: 700 !important;
}

.why-choose-subtitle {
    color: rgba(230, 241, 255, 0.75) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

.section-title {
    color: var(--text-light) !important;
}

.section-title::after {
    background: linear-gradient(to right, #64ffda, #4dabf7) !important;
}

/* ==========================================
   تأكيد أنماط البطاقات
   ========================================== */

.feature-card {
    background: rgba(26, 58, 95, 0.5) !important;
    border: 1px solid rgba(100, 255, 218, 0.1) !important;
}

.feature-card:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(100, 255, 218, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.feature-icon {
    background: linear-gradient(to right, #64ffda, #4dabf7) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.feature-title {
    color: var(--accent-blue) !important;
}

/* ==========================================
   تأكيد أنماط قائمة المستخدم (Dropdown)
   ========================================== */

.user-dropdown {
    background: var(--primary-blue) !important;
    border: 1px solid rgba(100, 255, 218, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
}

.user-dropdown .dropdown-item {
    color: var(--text-light) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(100, 255, 218, 0.15) !important;
    color: var(--accent-blue) !important;
    border-radius: 4px !important;
}

.user-dropdown .dropdown-divider {
    border-color: rgba(100, 255, 218, 0.2) !important;
    margin: 0.5rem 0 !important;
}

/* ==========================================
   تأكيد أنماط النموذج والمدخلات
   ========================================== */

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-light) !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-blue) !important;
    color: var(--text-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(100, 255, 218, 0.25) !important;
}

.form-label {
    color: var(--text-light) !important;
}

/* ==========================================
   تأكيد أنماط الجداول
   ========================================== */

table {
    color: var(--text-light) !important;
}

thead {
    background: rgba(26, 58, 95, 0.5) !important;
    color: var(--accent-blue) !important;
}

tbody tr:hover {
    background: rgba(26, 58, 95, 0.3) !important;
}

/* ==========================================
   تأكيد أنماط القائمة
   ========================================== */

.navbar {
    background: var(--gradient-1) !important;
}

.nav-link {
    color: var(--text-light) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue) !important;
}

/* ==========================================
   تأكيد أنماط التنبيهات والرسائل
   ========================================== */

.alert {
    background: rgba(26, 58, 95, 0.3) !important;
    border: 1px solid rgba(100, 255, 218, 0.2) !important;
    color: var(--text-light) !important;
}

.alert-info {
    background: rgba(100, 255, 218, 0.1) !important;
    border-color: var(--accent-blue) !important;
    color: var(--text-light) !important;
}

/* ==========================================
   تأكيد الأنيميشن
   ========================================== */

.animate-on-scroll {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s ease, transform 0.8s ease !important;
}

.animate-on-scroll.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.pulse-animation {
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.floating-element {
    animation: floating 6s ease-in-out infinite !important;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   تأكيد أنماط الأيقونات
   ========================================== */

.bi {
    color: inherit !important;
}

/* ==========================================
   تأكيد أنماط الصور
   ========================================== */

img {
    max-width: 100% !important;
    height: auto !important;
}

/* ==========================================
   تأكيد أنماط التمرير والتراكب
   ========================================== */

::-webkit-scrollbar {
    width: 10px !important;
}

::-webkit-scrollbar-track {
    background: rgba(26, 58, 95, 0.5) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue) !important;
    border-radius: 5px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #4dabf7 !important;
}

/* ==========================================
   تأكيد أنماط الكود
   ========================================== */

code, pre {
    background: rgba(26, 58, 95, 0.5) !important;
    color: var(--accent-blue) !important;
    border: 1px solid rgba(100, 255, 218, 0.1) !important;
}

/* ==========================================
   تأكيد أنماط Modal
   ========================================== */

.modal-content {
    background: var(--gradient-2) !important;
    border: 1px solid rgba(100, 255, 218, 0.3) !important;
    color: var(--text-light) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(100, 255, 218, 0.2) !important;
}

.modal-footer {
    border-top: 1px solid rgba(100, 255, 218, 0.2) !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* ==========================================
   تأكيد أنماط Dropdown
   ========================================== */

.dropdown-menu {
    background: var(--primary-dark) !important;
    border: 1px solid rgba(100, 255, 218, 0.1) !important;
}

.dropdown-item {
    color: var(--text-light) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(26, 58, 95, 0.5) !important;
    color: var(--accent-blue) !important;
}

/* ==========================================
   تأكيد الخاصية Z-index
   ========================================== */

.navbar-custom {
    z-index: 1000 !important;
}

.modal-backdrop {
    z-index: 999 !important;
}

.modal {
    z-index: 1050 !important;
}

/* ==========================================
   تأكيد أنماط التجاوب
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .btn-custom-primary,
    .btn-custom-secondary {
        width: 100% !important;
    }
}
