﻿:root {
    --ak-primary: #2f3a45;
    --ak-primary-dark: #26313b;
    --ak-accent: #8b6f3d;
    --ak-bg: #f5f7fa;
    --ak-card: #ffffff;
    --ak-text: #1f2937;
    --ak-muted: #6b7280;
    --ak-border: #e5e7eb;
    --ak-radius: 18px;
    --ak-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    --ak-font: 'Cairo', Tahoma, Arial, sans-serif;
}

html,
body {
    direction: rtl;
    font-family: var(--ak-font) !important;
    background: var(--ak-bg) !important;
    color: var(--ak-text);
}

/* Topbar */
.topbar,
.navbar-custom,
.topbar-left {
    background: var(--ak-primary) !important;
}

.logo span {
    font-family: var(--ak-font) !important;
    font-weight: 700;
    color: #ffffff !important;
}

/* Content */
.content-page {
    background: var(--ak-bg) !important;
}

.content {
    padding: 24px 18px;
}

.container-fluid {
    max-width: 100%;
}

/* Main Card */
.card-box {
    background: var(--ak-card) !important;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius);
    box-shadow: var(--ak-shadow);
    padding: 28px !important;
}

/* Sidebar */
.side-menu {
    background: #ffffff !important;
    border-left: 1px solid var(--ak-border);
    box-shadow: -6px 0 18px rgba(15, 23, 42, .04);
}

#sidebar-menu > ul > li > a {
    color: var(--ak-text) !important;
    font-family: var(--ak-font) !important;
    font-weight: 600;
    border-radius: 12px;
    margin: 4px 12px;
}

    #sidebar-menu > ul > li > a:hover,
    #sidebar-menu > ul > li > a:focus,
    #sidebar-menu > ul > li > a:active {
        background: #f3f4f6 !important;
        color: var(--ak-primary) !important;
    }

#sidebar-menu .menu-title {
    color: var(--ak-muted) !important;
    font-weight: 700;
    padding: 20px 24px 10px;
}

#sidebar-menu ul ul li a {
    color: var(--ak-muted) !important;
    font-family: var(--ak-font) !important;
    padding: 10px 42px 10px 20px;
}

    #sidebar-menu ul ul li a:hover {
        color: var(--ak-primary) !important;
        background: #f9fafb !important;
    }

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"] {
    font-family: var(--ak-font) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.btn-primary,
.btn-info {
    background: var(--ak-primary) !important;
    border-color: var(--ak-primary) !important;
    color: #fff !important;
}

    .btn-primary:hover,
    .btn-info:hover {
        background: var(--ak-primary-dark) !important;
        border-color: var(--ak-primary-dark) !important;
    }

/* Forms */
.form-control,
select,
textarea {
    font-family: var(--ak-font) !important;
    border-radius: 12px !important;
    border: 1px solid var(--ak-border) !important;
    box-shadow: none !important;
}

    .form-control:focus,
    select:focus,
    textarea:focus {
        border-color: var(--ak-accent) !important;
        box-shadow: 0 0 0 3px rgba(139, 111, 61, .12) !important;
    }

/* Tables */
.table thead th {
    background: #f3f4f6;
    color: var(--ak-text);
    text-align: center;
    font-weight: 800;
    border-bottom: 1px solid var(--ak-border) !important;
}

.table tbody td {
    text-align: center;
    vertical-align: middle;
    border-color: var(--ak-border) !important;
}

.table tbody tr:hover {
    background: #fafafa;
}

/* Footer */
.footer {
    background: transparent !important;
    color: var(--ak-muted) !important;
    font-family: var(--ak-font) !important;
}
/* =========================
   Sidebar / Mobile Fix
========================= */

/* إذا ما فيه سايد بار */
body.no-sidebar .content-page {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

body.no-sidebar .content {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.no-sidebar .side-menu {
    display: none !important;
}

body.no-sidebar .topbar-left {
    display: none !important;
}

body.no-sidebar .navbar-custom {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

/* إذا فيه سايد بار - RTL */
body.has-sidebar:not(.enlarged) .content-page {
    margin-right: 240px !important;
}

body.has-sidebar .side-menu {
    right: 0 !important;
    left: auto !important;
}

/* الجوال */
@media (max-width: 768px) {

    body {
        overflow-x: hidden !important;
    }

    .content-page {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .content {
        padding: 16px 10px !important;
    }

    .container-fluid {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .card-box {
        padding: 18px 12px !important;
        border-radius: 14px !important;
        min-height: calc(100vh - 120px);
    }

    .topbar-left {
        display: none !important;
    }

    .navbar-custom {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .button-menu-mobile {
        display: inline-block !important;
    }

    .side-menu {
        position: fixed !important;
        top: 70px !important;
        right: -260px !important;
        left: auto !important;
        width: 260px !important;
        height: calc(100vh - 70px) !important;
        z-index: 9999 !important;
        transition: right .25s ease !important;
        overflow-y: auto !important;
    }

    body.enlarged .side-menu,
    body.sidebar-open .side-menu {
        right: 0 !important;
    }

    body.enlarged .content-page {
        margin-right: 0 !important;
    }
}

/* منع الخلفية الرمادية عند عدم وجود سايد بار */
body.no-sidebar,
body.no-sidebar #wrapper,
body.no-sidebar .content-page,
body.no-sidebar .content {
    background: var(--ak-bg) !important;
}
/* ==============================
   Abdulkader Sidebar RTL Fix
   Works with #wrapper.enlarged
============================== */

#wrapper:not(.enlarged) .content-page {
    margin-right: 240px !important;
    margin-left: 0 !important;
}

#wrapper.enlarged .content-page {
    margin-right: 70px !important;
    margin-left: 0 !important;
}

#wrapper:not(.enlarged) .navbar-custom {
    margin-right: 240px !important;
    margin-left: 0 !important;
}

#wrapper.enlarged .navbar-custom {
    margin-right: 70px !important;
    margin-left: 0 !important;
}

#wrapper:not(.enlarged) .topbar .topbar-left {
    width: 240px !important;
}

#wrapper.enlarged .topbar .topbar-left {
    width: 70px !important;
}

#wrapper .left.side-menu {
    right: 0 !important;
    left: auto !important;
}

#wrapper:not(.enlarged) .left.side-menu {
    width: 240px !important;
}

#wrapper.enlarged .left.side-menu {
    width: 70px !important;
}

    /* يمنع تمدد القائمة وقت hover */
    #wrapper.enlarged .left.side-menu #sidebar-menu ul > li:hover > a {
        width: 70px !important;
    }

    #wrapper.enlarged .left.side-menu #sidebar-menu ul > li:hover a span {
        display: none !important;
    }

    /* يخفي القوائم الفرعية وقت التصغير */
    #wrapper.enlarged .left.side-menu #sidebar-menu ul > li:hover > ul {
        display: none !important;
    }

    /* يوسّط الأيقونات */
    #wrapper.enlarged .left.side-menu #sidebar-menu > ul > li > a {
        padding: 16px 0 !important;
        text-align: center !important;
    }

        #wrapper.enlarged .left.side-menu #sidebar-menu > ul > li > a i {
            margin: 0 !important;
            font-size: 22px !important;
        }

/* Desktop only */
@media (min-width: 768px) {

    #wrapper.enlarged #sidebar-menu span,
    #wrapper.enlarged #sidebar-menu .menu-title,
    #wrapper.enlarged #sidebar-menu .menu-arrow {
        display: none !important;
    }
}

/* الكارد ياخذ المساحة كاملة */
#wrapper.enlarged .container-fluid {
    width: 100% !important;
}

#wrapper.enlarged .card-box {
    width: 100% !important;
}
@media (max-width: 767px) {

    #wrapper .content-page,
    #wrapper.enlarged .content-page {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    #wrapper .navbar-custom,
    #wrapper.enlarged .navbar-custom {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    #wrapper .topbar-left {
        display: none !important;
    }

    #wrapper .left.side-menu,
    #wrapper.enlarged .left.side-menu {
        position: fixed !important;
        top: 70px !important;
        right: -270px !important;
        left: auto !important;
        width: 260px !important;
        height: calc(100vh - 70px) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        transition: right .25s ease !important;
    }

    body.mobile-sidebar #wrapper .left.side-menu {
        right: 0 !important;
    }

    body.mobile-sidebar #wrapper #sidebar-menu span,
    body.mobile-sidebar #wrapper #sidebar-menu .menu-title,
    body.mobile-sidebar #wrapper #sidebar-menu .menu-arrow {
        display: inline-block !important;
    }

    body.mobile-sidebar #wrapper #sidebar-menu > ul > li > a {
        text-align: right !important;
        padding: 14px 22px !important;
    }

        body.mobile-sidebar #wrapper #sidebar-menu > ul > li > a i {
            margin-left: 8px !important;
            margin-right: 0 !important;
            font-size: 18px !important;
        }
}
@media (max-width: 767px) {

    .topbar-logo {
        display: none !important;
    }
}
/* =========================
   Topbar Logo
========================= */

.topbar-logo {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

    .topbar-logo img {
        height: 38px;
        width: auto;
        object-fit: contain;
    }

/* يخلي الاسم بالنص */
.logo span {
    display: block;
    text-align: center;
    width: 100%;
}

/* الجوال */
@media (max-width: 768px) {

    .topbar-logo {
        right: 12px;
    }

        .topbar-logo img {
            height: 30px;
        }
}
/* No sidebar must override everything */
body.no-sidebar #wrapper.no-sidebar .content-page,
#wrapper.no-sidebar .content-page {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

body.no-sidebar #wrapper.no-sidebar .navbar-custom,
#wrapper.no-sidebar .navbar-custom {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

body.no-sidebar #wrapper.no-sidebar .topbar-left,
body.no-sidebar #wrapper.no-sidebar .left.side-menu,
#wrapper.no-sidebar .topbar-left,
#wrapper.no-sidebar .left.side-menu {
    display: none !important;
}

body.no-sidebar #wrapper.no-sidebar .footer,
#wrapper.no-sidebar .footer {
    right: 0 !important;
    left: 0 !important;
}

body.no-sidebar #wrapper.no-sidebar .content,
#wrapper.no-sidebar .content {
    margin-top: 70px !important;
    padding: 20px !important;
}

@media (max-width: 767px) {

    body {
        overflow-x: hidden !important;
    }

    #wrapper,
    .content-page,
    .content,
    .container-fluid {
        transform: none !important;
        right: auto !important;
        left: auto !important;
    }

        #wrapper .content-page,
        #wrapper.enlarged .content-page {
            margin-right: 0 !important;
            margin-left: 0 !important;
            width: 100% !important;
        }

    .left.side-menu {
        position: fixed !important;
        top: 70px !important;
        left: auto !important;
        width: 260px !important;
        height: calc(100vh - 70px) !important;
        z-index: 99999 !important;
        background: #fff !important;
        transition: right .25s ease !important;
        box-shadow: -8px 0 24px rgba(0,0,0,.15) !important;
    }

    body.mobile-sidebar .left.side-menu {
        right: 0 !important;
    }

    .topbar-logo {
        display: none !important;
    }
}
@media (max-width: 767px) {

    body.mobile-sidebar-open {
        overflow: hidden !important;
    }

    #wrapper,
    #wrapper.enlarged,
    .content-page,
    .content,
    .container-fluid {
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }

        #wrapper .content-page,
        #wrapper.enlarged .content-page {
            margin-right: 0 !important;
            margin-left: 0 !important;
            width: 100% !important;
        }

    .left.side-menu {
        position: fixed !important;
        top: 70px !important;
        left: auto !important;
        width: 260px !important;
        height: calc(100vh - 70px) !important;
        z-index: 999999 !important;
        background: #fff !important;
        transition: right .25s ease !important;
        box-shadow: -10px 0 25px rgba(0,0,0,.18) !important;
    }

    body.mobile-sidebar-open .left.side-menu {
        right: 0 !important;
    }

    .topbar-logo {
        display: none !important;
    }
}
@media (max-width: 767px) {

    body {
        overflow-x: hidden !important;
    }

    #wrapper .content-page,
    #wrapper.enlarged .content-page {
        margin-right: 0 !important;
        width: 100% !important;
    }

    #wrapper.enlarged .left.side-menu {
        width: 260px !important;
    }

    #wrapper.enlarged .side-menu {
        right: 0 !important;
        left: auto !important;
    }

    .topbar-logo {
        display: none !important;
    }
}
@media (max-width: 767px) {

    #wrapper.enlarged .left.side-menu {
        width: 260px !important;
    }

    #wrapper.enlarged #sidebar-menu,
    #wrapper.enlarged #sidebar-menu ul,
    #wrapper.enlarged #sidebar-menu li,
    #wrapper.enlarged #sidebar-menu a {
        width: auto !important;
        text-indent: 0 !important;
        overflow: visible !important;
    }

        #wrapper.enlarged #sidebar-menu .menu-title,
        #wrapper.enlarged #sidebar-menu > ul > li > a span,
        #wrapper.enlarged #sidebar-menu .menu-arrow {
            display: inline-block !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        #wrapper.enlarged #sidebar-menu > ul > li > a {
            width: auto !important;
            text-align: right !important;
            padding: 14px 22px !important;
        }

            #wrapper.enlarged #sidebar-menu > ul > li > a i {
                margin-left: 8px !important;
                margin-right: 0 !important;
                font-size: 18px !important;
            }

    #wrapper.enlarged .left.side-menu #sidebar-menu ul > li:hover > a {
        width: auto !important;
    }

    #wrapper.enlarged .left.side-menu #sidebar-menu ul > li:hover a span {
        display: inline-block !important;
    }
}
@media (max-width: 767px) {
    .left.side-menu {
        display: none !important;
    }

    .content-page {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .navbar-custom {
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }


}
.ak-home {
    padding: 30px 20px;
    direction: rtl;
}

.ak-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0 35px;
}

.ak-hero-logo {
    max-width: 260px;
    width: 35%;
    min-width: 160px;
    height: auto;
    object-fit: contain;
}

.ak-services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.ak-service-card {
    background: #fff;
    border-radius: 22px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid #eef0f3;
    transition: .25s ease;
}

    .ak-service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0,0,0,.12);
    }

.ak-service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.ak-service-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
}

.ak-service-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
}

    .ak-service-btn:hover,
    .ak-service-btn:focus {
        color: #fff;
        text-decoration: none;
        opacity: .92;
    }

.ak-service-blue .ak-service-icon {
    background: #e8f1ff;
    color: #2563eb;
}

.ak-service-blue .ak-service-btn {
    background: #2563eb;
}

.ak-service-gold .ak-service-icon {
    background: #fff4d6;
    color: #b7791f;
}

.ak-service-gold .ak-service-btn {
    background: #b7791f;
}

.ak-service-green .ak-service-icon {
    background: #e7f7ee;
    color: #11804f;
}

.ak-service-green .ak-service-btn {
    background: #11804f;
}

@media (max-width: 768px) {
    .ak-home {
        padding: 18px;
        min-height: calc(100vh - 70px);
    }

    .ak-hero {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0 25px;
    }

    .ak-hero-logo {
        width: 180px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .ak-services-grid {
        max-width: 1100px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
        align-items: start;
    }
}