:root {
    --primary-color: #0ba7aa;
    --primary-dark-color: #238183;
    /* ----------- Page --------------- */
    --background: #f1f2f2;
    --page-background: #f9f9fc;
    --page-border: 1px solid #e2e9f0;
    /* ----------- Navbar --------------- */
    --navbar-height: 55px;
    --navbar-background: #0ba7aa;
    --navbar-color: #eceef7;
}

html, body {
    font-family: 'Cairo', sans-serif !important;
    background: var(--background) !important;
}

body {
    margin-top: var(--navbar-height) !important;
}

textarea, input,p {
    font-family: 'Noto Naskh Arabic',sans-serif;
}


a {
    text-decoration: none;
     color: #131a21;
}
    a[href]:hover {
        color: var(--primary-dark-color);
    }



h2{
    font-size: 21px ;
}


h1, h2, h3, h4, h5, h6, p {
    line-height: 1.7;
    border: none !important;
    outline: none !important;
}


.link-hover:hover {
    color: var(--primary-dark-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    height: var(--navbar-height) !important;
    background-color: var(--navbar-background) !important;
}
.navbar-nav {
    padding:0 !important;
}
.nav-link {
    height: var(--navbar-height) !important;
    color: var(--navbar-color) !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 15px 20px !important;
}
    .nav-link:hover {
        color: var(--navbar-color) !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}
.sidebar-item {
    background-color:#fff;
    margin: 0;
}
    .sidebar-item:hover {
        background-color: rgba(0, 0, 0, 0.1) ;
    }

.sidebar-link {
    color: #495057;
    background: none;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}
  



/* Footer */
.footer {
    padding:2.5rem 0;
    background: var(--background) !important;
}

    .footer img {
        height: 50px;
        margin-bottom: 10px;
    }

    .footer h6 {
        text-align: justify;
        width: 80%;
        line-height: 2;
    }

    .footer ul {
        padding: 0;
        list-style: none;
    }
    .footer i {
        font-size: 1.2rem;
        color: var(--primary-color) !important;
    }


.footer-link {
    width: 100%;
    padding: 3px 0;
    color: black !important;
}


/**/
.title{
 font-size:1.7rem;
}


/* Validation */
.validation-errors {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebd4d4;
    padding-top: 15px;
    padding-bottom: 15px;
}

.validation-message {
    color: #cf3a37;
    padding: 3px 0;
    font-size:0.9rem;
}

/* Card */
.card {
    border-radius: 5px;
    border: none;
    box-shadow: 0 8px 16px 0 rgb(10 14 29 / 1%);
    margin-bottom: 15px;
    overflow: hidden;
}
.card-header, .card-footer {
    background-color: transparent;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
}
.card-body {
    padding: 1.2rem;
}
.card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 5px 0;
}

.card-text {
    color: #343a40;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Noto Naskh Arabic',sans-serif;
    line-height: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button */
.btn {
    border-radius: 5px;
    padding: 5px 15px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: var(--primary-dark-color);
        border-color: var(--primary-dark-color);
    }

.btn-success {
  
}

.btn-outline-dark {
    border-color: #bababa;
    color: #575858;
}

/* Control */
.form-control {
    border-radius: 5px;
}
.form-select {
    border-radius: 5px;
    background-position: left 0.75rem center;
}

.form-check {
    padding-right: 1.5em;
    padding-left: 0;
}

    .form-check .form-check-input {
        float: right;
        margin-right: -1.5em;
        margin-left: -1.5em;
    }

.form-range {
    width:100%;
    height: 6px;
    background: #ddd;
}
    .form-range::-webkit-slider-runnable-track {
        background: #ddd;
    }

    .form-range::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        background-color: var(--primary-color);
        border-radius: 50%;
        margin-top: -7px;
    }
.form-range-label {
    font-size: 14px;
    font-weight: bold;
    color: #777;
    margin: 5px 0;
}


/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
    padding-left: 0.5rem;
}

    .breadcrumb-item + .breadcrumb-item::before {
        float: right;
        padding-right: 0;
        padding-left: 0.5rem;
    }

.breadcrumb-item a {
    color: #131a21;
}

/**/
.cursor-pointer {
    cursor: pointer;
}


.outline-none {
    border:none;
    outline: none !important;
    box-shadow: none;
}
    .outline-none:focus {
        border: none;
        outline: none !important;
        box-shadow: none;
    }

/* Table */
.table {
    border: none;
}

    .table td, .table th {
        border: none;
        padding: 10px;
        font-size:0.9rem;
    }

/* Badge */
.badge{
    padding:5px 10px;
    border-radius:5px;
    border:none;
    font-weight:normal;
}
.badge-extension {
    border-radius: 0;
    background-color: var(--primary-color);
}

/* Pagination */
.page-item.active .page-link {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.page-item:first-child .page-link {
    border-radius:0;
}

.page-item:last-child .page-link {
    border-radius: 0;
}

/* Offcanvas */
.offcanvas-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.offcanvas-end {
    width: 300px !important;
}

/* Status */
.status-draft {
    background-color:#212529ff;
}
.status-pending {
    color: #212529ff;
    background-color: #ffc107ff;
}
.status-open {
    background-color: #33a722ff;
}
.status-inprogress {
    background-color: #0da5fdff;
}
.status-completed {
    background-color: #314459ff;
}
.status-cancelled {
    background-color: #ff5b07ff;
}
.status-closed {
    background-color: #9e9e9eff;
}
.status-rejected {
    background-color: #da3623ff;
}

.toast-container {
    top: var(--navbar-height);
    left: 0;
}
.toast.success {
    background-color: #d1e7ddff !important;
}

/**/
.progress {
    height: 8px !important;
    margin-top:2px;
}
.progress-title {
    color: #575858;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size:0.9rem;
}
    .progress-title:hover {
        color: var(--primary-color);
    }

    /* Tags */
    .tags-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }
.tags-input {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 3px;
    min-height: 40px;
    align-items: center;
    width: 100%;
    position: relative;
}

.tag {
    background-color:var(--primary-color);
    color: white;
    padding: 3px 10px;
    font-size:0.9rem;
    margin: 2px;
    display: flex;
    align-items: center;
    gap:10px;
}

    .tag button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size:1.2rem;
        font-weight:bold;
    }

.tags-input input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 5px;
}

.tags-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
}

    .tags-dropdown div {
        padding: 10px;
        cursor: pointer;
    }

        .tags-dropdown div:hover {
            background: var(--primary-color);
            color: white;
        }

/* File Upload */
.upload-container {
    width: 100%;
    overflow:hidden;
}

.upload-box {
    background-color: #f5f5f5;
    border: 1px solid #eaeaea;
    padding: 15px;
    cursor: pointer;
    display:flex;
    align-items:center;
    gap:15px;
}
    .upload-box:hover .upload-icon {
        color: #ffff;
        background-color: var(--primary-color) !important;
    }


.upload-icon {
    background-color: #e0e0e0;
    color: #bababa;
    border: 1px solid #eaeaea;
    height: 3em;
    width:3rem;
    display: flex;
    align-items: center;
    justify-content:center
}


.upload-body {
    flex: 1;
    display: block;
    align-items: center;
    justify-content: end;
}
    .upload-body div {
        padding: 0;
        margin: 0;
        color: #222;
        font-size: 16px;
    }
    .upload-body p {
        padding: 0;
        margin:0;
        color: #777;
        font-size: 16px;
    }

.text-primary {
    color: var(--primary-color) !important;
}

/**/
.dashboard-item {
    background-color:transparent;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}
    .dashboard-item:hover {
        background: var(--primary-color);
        color: #fff !important;
    }
    .dashboard-item.active {
        background: var(--primary-color);
        color: #fff;
    }

/**/
.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #e0e0e0;
}

.rating-value {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 0 !important;
    margin-top: 0 !important;
    text-align: right;
    padding:0;
}
    .dropdown-menu.notification {
        width: 450px;
    }


.dropdown-item {
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #484848;
}
    .dropdown-item.active, .dropdown-item:active {
        color: #484848 !important;
        background-color: #fff !important;
    }
    .dropdown-item:hover, .dropdown-item:focus {
        color: #1e2125 !important;
        background-color: #e9ecef !important;
    }

.dropdown-container {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-footer {
    width: 100%;
    padding: 7px 15px;
    display:flex;
    align-items:center;
    gap:10px;
    border-top: 1px solid #dee2e6;
}

.nav-tab {
    margin: 0;
    padding: 0;
}
    .nav-tab .nav-item .nav-link {
        color: #575858 !important;
    }
        .nav-tab .nav-item .nav-link:hover {
            background-color: var(--background)!important;
        }
        .nav-tab .nav-item .nav-link.active {
            background-color: var(--background);
            border-bottom:3px solid var(--primary-color);
        }

/* Accordion */
.accordion .accordion-item {
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #c1c1c1;
}

.accordion .accordion-item .accordion-button {
    background-color: transparent;
    font-size: 18px;
    line-height: 31px;
    padding: 20px 0;
}


/* Media Query for Mobile */
@media (max-width: 768px) {
    .offcanvas-end {
    /*    top: var(--navbar-height) !important;*/
        width: 400vw !important;
    }


    .title {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    small {
        font-size: 0.8rem;
    }

    .border-sm-0{
        border:none !important;
    }


}



