﻿/* ------------------------------
   أساسيات التصميم العامة
------------------------------ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    height: 100%;
    margin: 0;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1; /* يجعل المحتوى يتمدد لملء المساحة */
}
/* ------------------------------
   تأثيرات التركيز
------------------------------ */

.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 #4CA6A8; /* أكوا من الشعار */
}

/* ------------------------------
   النماذج والحقول
------------------------------ */

.form-floating > .form-control::placeholder,
.form-floating > .form-control-plaintext::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext:focus::placeholder {
    text-align: start;
}



/*فونت الجزر */
@font-face {
    font-family: 'ZA-Roots';
    src: url('/fonts/ZA-roots.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.root-style {
    font-family: 'ZA-Roots', Arial, sans-serif;
    font-size: 24px;
    direction: rtl;
    display: inline-block;
}


/* ------------------------------
   تنسيق جداول DataTables
------------------------------ */

.dataTables_wrapper {
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
}

table.dataTable {
    font-size: 0.95rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

    table.dataTable thead th {
        background-color: #4CA6A8; /* لون الشعار */
        color: white;
        font-weight: bold;
        text-align: right;
    }

    table.dataTable tbody td {
        background-color: #fff;
        color: #333;
        vertical-align: middle;
        border-bottom: 1px solid #eee;
    }

.dataTables_wrapper .dt-buttons {
    margin-bottom: 1rem;
}

/* ------------------------------
   تحسين محاذاة العناصر RTL
------------------------------ */

th, td {
    text-align: right;
}

.table-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.card-header {
    direction: rtl;
}

.card .form-label, .card .form-control, .card .form-select {
    text-align: right;
    direction: rtl;
}

    .card .form-label i {
        margin-left: 5px;
    }

/* الألوان حسب الشعار */
.bg-primary {
    background-color: #4CA6A8 !important;
}

.bg-warning {
    background-color: #D6794D !important;
}

.bg-success {
    background-color: #333333 !important;
}

.bg-info {
    background-color: #888 !important;
}

.border-primary {
    border-color: #4CA6A8 !important;
}

.border-warning {
    border-color: #D6794D !important;
}

.border-success {
    border-color: #333333 !important;
}

.border-info {
    border-color: #888 !important;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.settings-fixed {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #2c2c2c;
}

.sidebar.collapsed .settings-fixed span {
    display: none;
}
.equal-height-chart {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chart-fixed-height {
    height: 350px !important;
}


.Carts-fixed-height {
    height: 120px !important;
}
.alert-welcome {
    background-color: #f5fcff;
    border-left: 6px solid #4ca6a8;
    color: #333;
    font-family: 'Cairo', sans-serif;
}


.bg-aqua {
    background-color: #4CA6A8;
    color: white;
}

.bg-darkgray {
    background-color: #343A40;
    color: white;
}

.bg-orange {
    background-color: #DD6B20;
    color: white;
}

.card-header {
    font-weight: bold;
    font-size: 1rem;
}

.card-body canvas {
    max-height: 320px;
}
.sidebar.collapsed .nav-link .link-label {
    display: none;
}
