/* قاعدة عامة */
body {
    background-color: #f5f6f9; /* لون خلفية ناعم جدًا */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* خط حديث وسهل القراءة */
    color: #212529; /* لون نص داكن */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
}

/* حقل الإدخال */
#myInput {
    width: 100%;
    font-size: 16px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#myInput:focus {
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.3);
    outline: none;
}

/* جدول البحث */
#myTable_Search th {
    font-size: 16px;
    font-weight: 600;
    color: #343a40; /* لون النص الداكن */
}

.theme-dark #myTable_Search th {
    color: #e0e0e0; /* لون النص في الوضع الداكن */
}

/* البطاقة */
.card {
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 20px;
}

.card-header h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #495057;
    font-weight: 700;
}

/* عناصر نموذج */
.form-control:focus {
    color: #495057;
    background-color: #ffffff;
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 86, 179, 0.2);
}

/* جدول */
.table thead th {
    font-size: 16px;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.table tbody tr td .btn, .row button {
    background-color: #007bff;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 6px;
    border: none;
}

.table tbody tr td .btn:hover, .row button:hover {
    background-color: #0056b3;
    color: #ffffff;
}

.row .btn-white {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #495057;
}

/* تنسيق النموذج */
form .card-body {
    width: 100%;
}

.card-body, .table-responsive, .code-now {
    margin: 0 auto;
}

.card-header {
    border-bottom: none;
}

form textarea {
    width: 100%;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form textarea:focus {
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.3);
}

/* أيقونات */
svg {
    color: #007bff;
    transition: color 0.3s ease;
}

svg:hover {
    color: #0056b3;
}

.card .fa, .user_nav .fa, .all_icon_nav .fa {
    transition: color 0.3s ease;
}

.card .fa {
    font-size: 36px;
    margin-bottom: 20px;
}

.user_nav .fa {
    font-size: 24px;
}

.all_icon_nav .fa {
    font-size: 20px;
}

/* تذييل الصفحة */
footer {
    margin: 0 auto;
    text-align: center;
}

footer p {
    padding: 15px 0;
    color: #6c757d;
}

/* النمط الداكن */
.theme-dark .table thead th {
    color: #e0e0e0;
}

.theme-dark .row button, .theme-dark .table tbody tr td .btn, .theme-dark .page-item.active .page-link {
    background-color: #343a40;
    color: #ffffff;
}

.theme-dark .table tbody tr td .btn-white {
    background-color: transparent;
    border: 1px solid #ffffff;
}

.theme-dark .card-header h3 {
    color: #ffffff;
}

/* أزرار التركيز */
.btn:focus:not([disabled]):not(.disabled) {
    border: none;
    outline: none;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
}

/* نمط النصوص في النمط الداكن */
.theme-dark form textarea {
    background-color: #343a40;
    color: #e0e0e0;
    border-color: #495057;
}

/* تصميم الشيك بوكس */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

input[type="checkbox"]:checked::before {
    content: '✔';
    color: #ffffff;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.5);
}

/* تصميم الصفوف الرئيسية */
.highlight-main-res {
    background-color: #e7f0ff; /* لون أزرق فاتح جداً */
    color: #0056b3; /* لون نص أزرق داكن */
    font-weight: 700; /* نص عريض */
    border-left: 5px solid #0056b3; /* شريط جانبي بلون مميز */
}
