﻿/* ===== إعدادات أساسية ===== */
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

/* ===== تأثيرات التركيز ===== */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ===== شريط التنقل ===== */
/* ===== Navbar Wrapper ===== */

/* =========================
   GLOBAL NAVBAR
========================= */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a7b9b 35%, #57c785 70%, #eddd53 100%);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 999;
}

    /* =========================
   CONTAINER ALIGNMENT
========================= */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

/* =========================
   BRAND SECTION
========================= */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    .navbar-brand:hover {
        color: #ffd166 !important;
        transform: translateY(-1px);
    }

/* =========================
   LOGO
========================= */
.logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .logo-img:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 18px rgba(255,255,255,0.35);
    }

/* =========================
   TOGGLER BUTTON
========================= */
.navbar-toggler {
    border: none;
    padding: 8px 10px;
    outline: none;
    box-shadow: none !important;
    margin-left: 10px;
}

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

/* =========================
   MENU AREA
========================= */
.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   LINKS
========================= */
.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 14px !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: #ffd166 !important;
        background: rgba(255,255,255,0.12);
    }

    /* active item */
    .nav-link.active {
        background: rgba(255,255,255,0.15);
    }

/* =========================
   DROPDOWN MENU
========================= */
.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 10px 0;
    min-width: 240px;
    margin-top: 10px;
}

.dropdown-item {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    transition: all 0.25s ease;
}

    .dropdown-item:hover {
        background: #f8f9fa;
        color: #2a7b9b;
        padding-right: 24px;
    }

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }

        .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
        }

    .navbar-brand {
        font-size: 15px;
        max-width: 75%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-img {
        width: 42px;
        height: 42px;
    }

    .navbar-toggler {
        margin: 0;
        flex-shrink: 0;
    }

    /* THIS FIXES THE MOBILE MENU */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
        padding: 15px;
        margin-top: 8px;
    }

    .navbar-nav {
        align-items: flex-start;
        gap: 4px;
    }

    .nav-link {
        color: #333 !important;
        width: 100%;
        padding: 12px !important;
        border-radius: 8px;
    }

        .nav-link:hover {
            background: #f5f5f5;
            color: #2a7b9b !important;
        }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #f9f9f9;
        width: 100%;
        margin-top: 5px;
    }

    .dropdown-item {
        padding: 10px 14px;
    }
}

/* =========================
   EXTRA SMALL DEVICES
========================= */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 13px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }
}





/* ===== المحتوى ===== */
main {
    width: 100%;
    overflow-x: hidden;
    padding: 10px 0;
}

/* ===== الفوتر ===== */
footer {
    padding: 15px 10px;
    font-size: 14px;
}
