﻿:root {
    --background-color: #E6E6E6;
    --primary-color: #6c48b3;
    --secondary-color: #eee;
    --light-purpule: rgb(190, 152, 190);
    --sidebar-bg: #ffffff; /* خلفية بيضاء */
    --sidebar-bg-secondary: #f8f9fa; /* خلفية ثانوية */
    --sidebar-text: #333333; /* نص داكن */
    --sidebar-text-muted: #6c757d; /* نص باهت */
    --sidebar-hover-bg: #f3f4f6; /* خلفية عند التمرير */
    --sidebar-active-bg: var(--primary-color); /* خلفية العنصر النشط */
    --sidebar-active-text: #ffffff; /* نص العنصر النشط */
    --sidebar-border: #e9ecef; /* لون الحدود */
}

body {
    background: #efefef;
}

#side_nav {
    background: var(--sidebar-bg);
    min-width: 250px;
    max-width: 250px;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-right: 1px solid var(--sidebar-border);
}

/* تحديث الـ navbar ليتطابق */
.navbar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
}

.navbar-nav .nav-item > .nav-link {
    color: #fff;
}

.content {
    min-height: 100vh;
    width: 100%;
}

hr.h-color {
    background: var(--sidebar-border);
    margin: 1rem 1.5rem;
}

.h-title {
    color: var(--sidebar-text-muted);
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* تحديث نمط العناصر في القائمة الجانبية */
.sidebar li {
    margin: 0.25rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .sidebar li.active {
        background: var(--sidebar-active-bg);
        box-shadow: 0 2px 4px rgba(108, 72, 179, 0.2);
    }

    .sidebar li:hover:not(.active) {
        background: var(--sidebar-hover-bg);
    }

    .sidebar li.active a,
    .sidebar li.active a:hover {
        color: var(--sidebar-active-text) !important;
        font-weight: 600;
    }

    .sidebar li a {
        color: var(--sidebar-text) !important;
        padding: 0.75rem 1rem;
        display: block;
        transition: all 0.3s ease;
        text-decoration: none !important;
        font-size: 0.95rem;
    }

        .sidebar li a:hover {
            color: var(--primary-color) !important;
            transform: translateX(5px);
        }

        /* أيقونات القائمة الجانبية */
        .sidebar li a i,
        .sidebar li a svg {
            color: var(--sidebar-text-muted);
            margin-left: 0.75rem;
            font-size: 1.1rem;
            width: 20px;
            display: inline-block;
            transition: all 0.3s ease;
        }

    .sidebar li.active a i,
    .sidebar li.active a svg {
        color: var(--sidebar-active-text);
    }

    .sidebar li:hover:not(.active) a i,
    .sidebar li:hover:not(.active) a svg {
        color: var(--primary-color);
    }

/* شعار الموقع في القائمة الجانبية */
#side_nav .navbar-brand {
    background: var(--sidebar-bg-secondary);
    padding: 1rem;
    margin: 0;
    border-bottom: 1px solid var(--sidebar-border);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
    display: block;
}

/* القوائم الفرعية */
.sidebar .collapse,
.sidebar .collapsing {
    background: var(--sidebar-bg-secondary);
    border-radius: 8px;
    margin: 0.5rem 0;
}

    .sidebar .collapse li,
    .sidebar .collapsing li {
        margin: 0;
    }

        .sidebar .collapse li a,
        .sidebar .collapsing li a {
            font-size: 0.875rem;
            padding-right: 2rem;
        }

/* تحسين التباين للنصوص الصغيرة */
.sidebar small {
    color: var(--sidebar-text-muted);
}

/* إضافة تأثيرات بصرية */
.sidebar li {
    position: relative;
    overflow: hidden;
}

    /* إزالة التأثير المتحرك القديم */
    .sidebar li::before {
        display: none;
    }

    /* مؤشر العنصر النشط */
    .sidebar li.active::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 70%;
        background: var(--sidebar-active-text);
        border-radius: 2px 0 0 2px;
    }

    /* إضافة حد يساري للعناصر عند التمرير */
    .sidebar li:hover:not(.active)::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 50%;
        background: var(--primary-color);
        border-radius: 2px 0 0 2px;
        transition: all 0.3s ease;
    }

/* تحسين التجاوب */
@media(max-width: 767px) {
    #side_nav {
        margin-left: -250px;
        position: absolute;
        min-height: 100vh;
        z-index: 1;
    }

        #side_nav.active {
            margin-left: 0;
        }
}

/* login style */
.main-bg {
    background-color: var(--primary-color);
}

    .main-bg:hover {
        background-color: #6233c0;
    }

.login-card a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

    .form-group label {
        position: absolute;
        top: -8px;
        left: 10px;
        font-size: 0.875rem;
        color: #6c757d;
        transition: all 0.2s ease-in-out;
        background: white;
        padding: 0 5px;
    }

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 0.75rem;
    color: #495057;
}

.form-control {
    /* padding-top: 1.25rem;
  padding-bottom: 0.25rem; */
}

    .form-control:focus {
        border: 1px solid var(--primary-color);
        box-shadow: none;
    }

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 15px;
    height: 15px;
    /* border: 1px solid var(--primary-color);  */
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .form-check-input:focus {
        box-shadow: none;
        border: 1px solid var(--primary-color)
    }

/* Modal form style */
.modal-body {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

/* Labels */
label {
    top: -8px;
    left: 10px;
    font-size: 0.75rem;
    color: #495057;
}

.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    outline: none;
    color: #6a1b9a;
    font-size: 14px;
}

.custom-file-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    background: white;
    color: #6a1b9a;
}

.fa-paperclip {
    font-size: 16px;
    margin-right: 8px;
}

.file-name {
    color: #6a1b9a;
    text-decoration: none;
    font-size: 14px;
    flex-grow: 1;
}

/* Download icon */
.download-icon {
    font-size: 14px;
    cursor: pointer;
}

/* Service taps style */
.tabs {
    display: flex;
    gap: 20px;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
}

.hidden {
    display: none;
}

.tab {
    position: relative;
    padding: 1px 10px;
    cursor: pointer;
}

    .tab.active {
        color: var(--primary-color);
    }

        .tab.active::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -3px;
            width: 100%;
            height: 3px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

.tab-content {
    display: block;
}

    .tab-content.active {
        display: block;
    }

/*tree view style*/

.tree {
    padding: 0;
    list-style: none;
}

    .tree .nested {
        list-style: none;
    }

    .tree .parent {
        display: block;
        margin-bottom: 5px;
        position: relative;
    }

        .tree .parent:after {
            content: "";
            width: 1px;
            height: 16px;
            border-right: 1px solid #5e5e5e;
            position: absolute;
            top: 22px;
            margin: auto;
            left: 6px;
        }

    .tree .nested li {
        position: relative;
    }

        .tree .nested li:after {
            content: "";
            width: 15px;
            height: 1px;
            border-top: 1px solid #5e5e5e;
            position: absolute;
            top: 13px;
            margin: auto;
            left: -20px;
        }

.btn-container {
    background: #fbfbfb;
    width: fit-content;
    min-width: 120px;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 7px;
    box-shadow: 0 0 5px #00000008;
    border: 1px solid #ddd;
    text-align: center;
}

    .btn-container .btn {
        padding: 0;
    }

.filter-btn {
    background: #fbfbfb;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px #00000008;
    border: 1px solid #ddd;
}

    .filter-btn svg {
        width: 20px;
        height: 20px;
    }

input[type="checkbox"]:checked + label {
    color: var(--primary-color);
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: rgb(223 223 223);
}

/*the container must be positioned relative:*/
.autocomplete {
    position: relative;
    display: inline-block;
}

input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

    input[type=text] {
        background-color: #f1f1f1;
        width: 100%;
    }

    input[type=submit] {
        background-color: DodgerBlue;
        color: #fff;
        cursor: pointer;
    }

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

        /*when hovering an item:*/
        .autocomplete-items div:hover {
            background-color: #e9e9e9;
        }

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #8871b6;
    border-color: #8871b6;
}

/*badge status*/
.status-badge {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.pending {
    background-color: #fbe3e3;
    color: #d9534f;
}

.in-process {
    background-color: #fff3cd;
    color: #856404;
}

.completed {
    background-color: #d4edda;
    color: #155724;
}

.dropdown-menu {
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

    .dropdown-menu a {
        padding: 10px;
        display: flex;
        align-items: center;
    }

        .dropdown-menu a i {
            margin-right: 8px;
        }

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-outline-secondary:hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-danger:hover {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.modal-dialog {
    max-width: 35% !important;
}

.stepwizard-step p {
    margin-top: 10px;
}

.stepwizard-row {
    display: table-row;
}

.stepwizard {
    display: table;
    width: 100%;
    position: relative;
}

.stepwizard-step button[disabled] {
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
}

.stepwizard-row:before {
    top: 14px;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 100%;
    height: 1px;
    background-color: #ccc;
    z-order: 0;
}

.stepwizard-step {
    display: table-cell;
    text-align: center;
    position: relative;
}

.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

@media print {
    .no-print {
        display: none;
    }
}
