﻿/* --------------------
   Qdrat Official Colors
--------------------- */
:root {
    --qdrat-accent: #339999;
    --qdrat-bg-light: #e0f5f5; /* خلفية فاتحة مشتقة */
}


.sidebar .nav-link {
    color: #ccc;
}

    .sidebar .nav-link.active {
        background-color: #4CA6A8;
        color: white;
        border-radius: 6px;
    }

.sidebar .nav-title {
    color: #aaa;
    font-size: 14px;
}



/*فونت الجزر */
@font-face {
    font-family: 'ZA-Roots';
    src: url('/fonts/ZA-roots.woff2') format('woff2'),
         url('/fonts/ZA-roots.woff') format('woff'),
         url('/fonts/ZA-roots.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZA-roots';
    src: url('/fonts/ZA-roots.woff2') format('woff2'),
         url('/fonts/ZA-roots.woff') format('woff'),
         url('/fonts/ZA-roots.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.root-style {
    font-family: 'ZA-Roots', 'ZA-roots', Arial, sans-serif;
    font-size: 24px;
    direction: rtl;
    display: inline-block;
}






/* اللون الرئيسي للنص */
.text-qdrat {
    color: var(--qdrat-accent) !important;
}
.text-qdrat-o {
    color: #da784d !important;
}

/* اللون الرئيسي للخلفية */
.bg-qdrat {
    background-color: var(--qdrat-accent) !important;
    color: #fff !important;
}

.bg-qdrat-o {
    background-color: #da784d !important;
    color: #fff !important;
}

/* اللون الرئيسي للحدود */
.border-qdrat {
    border-color: var(--qdrat-accent) !important;
}
.border-qdrat-o {
    border-color: #da784d !important;
}
/* زر بلون قدرات */
.btn-qdrat {
    background-color: var(--qdrat-accent);
    color: #fff;
    border: none;
    transition: 0.3s;
}
.btn-qdrat-o {
    background-color: #da784d;
    color: #fff;
    border: none;
    transition: 0.3s;
}
    .btn-qdrat:hover {
        background-color: #2d8888;
        color: #fff;
    }

/* تدرج بسيط للخلفيات */
.bg-qdrat-light {
    background-color: rgba(51, 153, 153, 0.1) !important;
}

/* خطوط عريضة لعناوين */
.qdrat-heading {
    color: var(--qdrat-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.bg-qdrat-soft {
    background-color: var(--qdrat-bg-light) !important;
}

.table td, .table th {
    vertical-align: middle !important;
}

.btn-outline-info {
    border-radius: 50% !important;
    padding: 5px 8px !important;
}

.badge {
    font-size: 14px;
    padding: 5px 10px;
}

.table-secondary {
    opacity: 0.8;
}

.modal-body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}



.sidebar .nav-link {
    font-size: 0.875rem; /* أصغر شوية من العادي (14px تقريبًا) */
}



body {
    font-family: 'Cairo', sans-serif;
    background-color: #f7f7f7;
}

/* الشريط الجانبي */
.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    transition: width 0.3s;
    z-index: 1000;
}

    .sidebar.collapsed {
        width: 70px;
    }


    .sidebar .nav-link {
        color: white;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0.75rem 1rem;
        transition: background 0.2s;
    }

        .sidebar .nav-link i {
            font-size: 1.2rem;
            width: 30px;
            text-align: center;
        }

        .sidebar .nav-link:hover {
            background-color: #4CA6A8;
        }

    .sidebar.collapsed .nav-link span {
        display: none;
    }

    .sidebar.collapsed .nav-link:hover span {
        display: inline-block;
        position: absolute;
        right: 80px;
        background-color: #333;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        white-space: nowrap;
    }
/* محتوى الصفحة */
/* ✅ تأكيد تمدد المحتوى */
.content {
    margin-right: 250px;
    margin-left: 0;
    transition: all 0.3s ease-in-out;
}

    .content.collapsed {
        margin-right: 70px;
    }

/* ✅ ضبط عرض الجداول أو أي كرت داخلي */
.container-fluid,
.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}


.topbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.dropdown-menu {
    left: auto;
    right: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc; /* stroke خفيف */
    transition: border-color 0.3s;
}

    .user-avatar:hover {
        border-color: #4CA6A8;
    }

.hover-icon {
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

    .hover-icon:hover {
        color: #4CA6A8;
        transform: scale(1.2);
    }

.badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    border: 2px solid white;
}


.card-soft {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

    .card-soft h6 {
        color: #6b7280;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4CA6A8;
}

.section-title {
    font-weight: 700;
    margin: 30px 0 15px;
    color: #374151;
}

.progress {
    height: 6px;
    background-color: #e5e7eb;
}

.badge-soft {
    background-color: rgba(76,166,168,.1);
    color: #4CA6A8;
    font-weight: 600;
    font-size: 0.75rem;
}

.link-card {
    transition: 0.15s ease;
}

    .link-card:hover {
        background-color: #f9fafb;
        text-decoration: none;
    }



.card-soft {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

    .card-soft:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4CA6A8; /* لون المشروع */
}

.section-title {
    margin: 35px 0 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #4CA6A8;
}

.link-card:hover {
    background-color: #f8fdfd;
}
