/* =========================
   Global Settings
========================= */
html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Tajawal', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f8f9fa, #e9f2ff);
    padding-top: 80px; /* علشان الـ Navbar fixed */
}

/* =========================
   Navbar
========================= */
.navbar-brand {
    font-size: 20px;
    letter-spacing: 1px;
}

/* =========================
   Main Content
========================= */
.main-content {
    min-height: calc(100vh - 60px);
    padding-top: 10px;
    padding-bottom: 20px;
}

/* =========================
   Footer
========================= */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* =========================
   Home Page Styling
========================= */
.home-container {
    margin-top: 80px;
}

.home-title {
    font-weight: 700;
    color: #2c3e50;
}

.home-subtitle {
    font-size: 20px;
    color: #555;
}

/* =========================
   Hero Section
========================= */
.hero-section {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)), url('/images/tech-bg.jpg') center/cover no-repeat;
}
.hero2-section {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)), url('/images/Company.png') center/cover no-repeat;
}

.service-card {
    border-radius: 20px;
    transition: 0.3s ease;
    background: #ffffff;
}

    .service-card:hover {
        transform: translateY(-10px);
    }

.stats-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
}

.animate-slide {
    animation: slideUp 1.2s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-link {
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    transition: 0.3s;
}

    .contact-link:hover {
        opacity: 0.7;
    }

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
}

body {
    font-family: 'Tajawal', sans-serif;
    padding-top: 80px;
}

.navbar-custom {
    background: linear-gradient(90deg, #0d1b2a, #1b263b);
}

    .navbar-custom .nav-link {
        transition: 0.3s;
    }

        .navbar-custom .nav-link:hover {
            color: #0d6efd !important;
        }

.footer-custom {
    background: #0d1b2a;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

    .footer-link:hover {
        color: #0d6efd;
    }

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
}
/* ======= تنسيق الإهداء الأكاديمي ======= */
.d-edhaa-hafezon a {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform .2s ease;
}

    .d-edhaa-hafezon a:hover {
        transform: scale(1.02);
    }

.card img {
    transition: transform .3s;
}

    .card img:hover {
        transform: scale(1.1);
    }

/*DashBoard*/

.stat-card {
    width: 120px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Tajawal', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 2px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2px;
}

.stat-card i {
    font-size: 1.8rem; /* حجم الأيقونة */
    margin-bottom: 5px;
    display: inline-block; /* بدل block */
    color: inherit; /* يستخدم لون النص داخل الكارت */
    font-family: "Bootstrap Icons" !important;
}

/* إزالة خط تحت اللينكات */
.stat-card-link {
    text-decoration: none;
}

/* Responsive */
@@media (max-width: 1200px) {
    .stat-card {
        width: 100px;
    }
}

@@media (max-width: 992px) {
    .stat-card {
        width: 90px;
    }
}

@@media (max-width: 768px) {
    .stat-card {
        width: 80px;
    }
}

@@media (max-width: 576px) {
    .stat-card {
        width: 70px;
        font-size: 0.8rem;
    }
}

/* Page Loader */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffffd9;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-box {
    text-align: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}
.loader-text {
    margin-top: 15px;
    font-family: 'Tajawal',sans-serif;
    font-size: 16px;
    color: #374151;
}


.fc {
    font-family: 'Tajawal',sans-serif;
}
//--------------------------------------------------------------------
/* تنسيقات البطاقات */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* تدرجات الألوان */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* تنسيقات الفورم */
.form-floating {
    position: relative;
}

    .form-floating > .form-control {
        height: 58px;
        padding: 1rem 0.75rem;
    }

    .form-floating > label {
        padding: 1rem 0.75rem;
        color: #6c757d;
    }

.form-floating-filled > label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* تنسيقات الجداول */
.table {
    vertical-align: middle;
}

    .table th {
        font-weight: 600;
        color: #495057;
    }

/* تنسيقات الأزرار */
.btn {
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

/* تنسيقات الشيك بوكس */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: #667eea;
        border-color: #667eea;
    }

/* تنسيقات البادجات */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 30px;
}

/* أنيميشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}
//--------------------------------------------------------------------
/* تنسيق القوائم المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 10px;
    animation: slideDown 0.2s ease;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        transform: translateX(-5px);
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
    }

.dropdown-header {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.notification-badge {
    position: relative;
    top: -10px;
    right: -5px;
    font-size: 10px;
    padding: 3px 5px;
}

/* أنيميشن للقوائم */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 991.98px) {
    .dropdown-menu {
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin: 0;
    }

    .dropdown-item {
        color: white !important;
    }

        .dropdown-item:hover {
            background: rgba(255,255,255,0.2);
        }

    .dropdown-header {
        background: rgba(255,255,255,0.1);
        color: white;
    }
}
/* التأكد من ظهور القوائم المنسدلة */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
}

    .dropdown-menu.show {
        display: block;
    }

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* للشاشات الصغيرة */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

        .dropdown-menu.show {
            display: block;
        }

    .dropdown-item {
        color: white !important;
    }

        .dropdown-item:hover {
            background-color: rgba(255,255,255,0.1);
        }
}