:root {
    --primary-color: #036280;
    --secondary-color: #16c8dd;
    --background: #f4f7fc;
    --success-color: #e9c46a;
    --white-color: #fffdfb;
    --black-color: #010F1C;
    --gray-color: #e2eef5;
    --navbar-height-top: 80px;
    --navbar-height-bottom: 60px;
}

html, body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
}

a {
    text-decoration: none;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}
.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg {
    background-color: var(--background);
}

.input-group-text {
    background-color: var(--secondary-color) !important;
    color: var(--white-color) !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
}

.input-group-control {
    border: none !important;
    border-radius: 0.75rem 0 0 0.75rem !important;
}

/**/
.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
}

.icon-circle-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.hover-row:hover {
    background-color: rgba(0,0,0,0.02);
    transition: 0.3s;
}
.card-accent {
    height: 6px;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

/* Page */
.app-pages {
    background: var(--primary-color);
    padding-top: var(--navbar-height-top);
}

.app-page {
    background-color: var(--background);
    border-radius: 20px 20px 0 0;
    padding-bottom: var(--navbar-height-bottom);
}

.app-page-body {
    position:relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-page-header {
    position: fixed;
    top: var(--navbar-height-top);
    width: 100%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.app-page-container {
    padding:1.2rem;
    padding-top: 70px;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #16c8dd, #036280);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    z-index: 9999;
}


/* Navbar */
.app-navbar-top {
    position: fixed;
    top: 0;
    height: var(--navbar-height-top);
    width: 100%;
    background-color: var( --primary-color);
    z-index: 9999;
}

.app-navbar-nav-top {
    height: 50%;
    display: flex;
    justify-content: space-between;
}

.app-navbar-item-top {
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
}

    .app-navbar-item-top.link:hover {
        color: var(--secondary-color);
    }


.app-navbar-bottom {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: var( --white-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}
.app-navbar-item-bottom {
    flex:1;
    height: 100%;
    color: var(--primary-color);
    text-align:center;
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s ease,color 0.3s ease;
}
    .app-navbar-item-bottom:hover {
        color: var( --white-color);
        background-color: var(--secondary-color);
    }
    .app-navbar-item-bottom i {
        font-size:1.3rem;
    }

/* Card */
.card {
    position: relative;
    background-color: #ffff;
    border-radius: 0.7rem !important;
    border-radius: 5px;
    border: none;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.03);
    /*   box-shadow: 0 8px 16px 0 rgb(10 14 29 / 1%);*/
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header, .card-footer {
    background-color: #ffff;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.2rem;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 5px 0;
}

.card-text {
    color: #343a40;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Noto Naskh Arabic',sans-serif;
    line-height: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Validation */
.validation-errors {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebd4d4;
    padding-top: 15px;
    padding-bottom: 15px;
}

.validation-message {
    color: #cf3a37;
    padding: 3px 0;
    font-size: 0.9rem;
}

/* Button */
.app-btn {
    position: relative;
    background: var(--secondary-color);
    color: var(--white-color);
    width: fit-content;
    border: none;
    border-radius: 48px;
    font-size: 18px;
    font-weight: 400;
    padding: 7px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: color 0.5s ease;
}

    .app-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 250%;
        background: var(--primary-color);
        border-radius: 50%;
        z-index: 0;
        transition: width 1.2s ease-out;
    }

    .app-btn:hover::before {
        width: 400%;
    }

    .app-btn > * {
        position: relative;
        z-index: 1;
    }

.btn-primary {
    color: var(--white-color) !important;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Control */
.form-control, .form-select {
    border-radius: 5px;
}

/**/
.cursor-pointer {
    cursor: pointer;
}

.outline-none {
    border: none;
    outline: none !important;
    box-shadow: none;
}

    .outline-none:focus {
        border: none;
        outline: none !important;
        box-shadow: none;
    }

/* Offcanvas */
.offcanvas {
    background-color: var(--white-color) !important;
    z-index:10000;
}

.offcanvas-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.offcanvas-end, .offcanvas-start {
    width: 300px !important;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-item {
    color: #495057;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .offcanvas-item:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }


/* Toast */
.toast-container {
    position: fixed;
}

    .toast-container.top {
        top: var(--navbar-height-top);
        left: 0;
    }

    .toast-container.bottom {
        bottom: 15px;
        right: 15px;
    }

.toast.success {
    background-color: #d1e7ddff !important;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 0 !important;
    margin-top: 0 !important;
    text-align: right;
    padding: 0;
}

    .dropdown-menu.notification {
        width: 450px;
    }


.dropdown-item {
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #484848;
}

    .dropdown-item.active, .dropdown-item:active {
        color: #484848 !important;
        background-color: #fff !important;
    }

    .dropdown-item:hover, .dropdown-item:focus {
        color: #1e2125 !important;
        background-color: #e9ecef !important;
    }

.dropdown-container {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-footer {
    width: 100%;
    padding: 7px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {

    .offcanvas {
        width: 100% !important;
        background-color: var(--primary-color);
    }
}


/**/
/* تحسينات عامة */
.home-container {
    font-family: 'Cairo', sans-serif; /* استخدم خط عربي عصري */
}

/* شريط الأخبار */
/* شريط الأخبار */
.news-ticker {
    overflow: hidden;
    position: relative;
    /* إضافة اتجاه النص لضمان محاذاة صحيحة للغة العربية */
    direction: rtl;
}

.ticker-animation {
    white-space: nowrap;
    animation: scroll-news 15s linear infinite;
}

/* تعديل حركة الشريط ليعمل من اليمين إلى اليسار */
@keyframes scroll-news {
    0% {
        transform: translateX(-100%); /* يبدأ من اليسار (خارج الشاشة) */
    }

    100% {
        transform: translateX(100%); /* يتحرك إلى اليمين */
    }
}


/* بطاقات الملخص */
.summary-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.summary-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 3rem;
    opacity: 0.2;
}

/* اختصارات الشبكة */
.shortcut-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .shortcut-card:hover {
        transform: translateY(-3px);
        color: var(--bs-primary);
    }

.circle-card {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* آخر التحديثات */
.list-group-item {
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

    .list-group-item:hover {
        background-color: var(--bs-light);
    }


    /*/*/
