:root {
    --primary-color: #002f6c;
    --primary-dark-color: #093466;
    --secondary-color: #f28333;
    --success-color: #FEBD69;
    /* ----------- Page --------------- */
    --background: #f1f2f2;
    --page-background: #f9f9fc;
    --page-border: 1px solid #e2e9f0;
    /* ----------- Navbar --------------- */
    --navbar-height: 55px;
    --navbar-background: #003366;
    --navbar-color: #d5eaff;
}

html, body {
    font-family: 'Cairo', sans-serif !important;
    background: var(--background) !important;
    height: 100%;
    margin: 0;
}

body {
    margin-top: var(--navbar-height) !important;
}

textarea, input, p {
    font-family: 'Noto Naskh Arabic',sans-serif;
}

a {
    text-decoration: none;
    color: #131a21;
}

h2 {
    font-size: 21px;
}

h1, h2, h3, h4, h5, h6, p {
    line-height: 1.7;
    outline: none !important;
}

.link-hover:hover {
    color: var(--secondary-color) !important;
    cursor: pointer;
}

[dir="rtl"] .ql-editor {
    text-align: right;
    direction: rtl;
}

.bg {
    background: linear-gradient(to right, #036, #059);
    color: white;
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.page-body{
    flex:1;
}

/* 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;
    }

.nav-icon {
    padding-left: 12px !important;
    padding-right: 12px !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;
}


/* Card */
.card {
    position: relative;
    background-color: #ffff;
    border-radius: 0.7rem !important;
    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: #ffff;
    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;
}

/* Categorys */
.category-card {
    height: 100%;
    background-color: #ffff;
    border: 1px solid #e7e7e7 !important;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .category-card:hover {
        background-color: var(--success-color);
    }

    .category-card img {
        height: 40px;
        width: 40px;
        filter: invert(52%) sepia(89%) saturate(747%) hue-rotate(0deg) brightness(94%) contrast(101%);
    }

.category-text {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Courses */
.course-card {
    height: 100%;
    padding: 0;
    border: 1px solid #e7e7e7 !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05) !important;
}

    .course-card:hover .course-img img {
        transform: scale(1.1);
    }

.course-img {
    display: flex;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

    .course-img img {
        width: 100%;
        transition: transform 0.5s;
    }

.course-img-h {
    height: 100%;
    width: 100%;
}

.course-description {
    opacity: 0.5;
    font-size: small;
    line-height: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Number of lines to display */
    overflow: hidden;
}

/* Sidebar Course */
.sidebar-course {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--navbar-height) + 15px);
    z-index: 999;
    margin-top: -300px;
    height: fit-content;
    border: 1px solid #e7e7e7 !important;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.sidebar-course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid #e7e7e7;
}

.sidebar-course-item-info {
    background-color: #f3f1f1;
    padding: 5px 10px;
    border-radius: 5px;
}

.sidebar-course-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

    .sidebar-course-video img {
        width: 100%;
    }

    .sidebar-course-video i {
        font-size: 5rem;
    }

    .sidebar-course-video:hover .sidebar-course-video-bg {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
    }

.sidebar-course-video-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    transition: background 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-accordion .accordion-item {
    border-radius: 0;
    border: none;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

    .course-accordion .accordion-item .accordion-button {
        background-color: #f6f7f9;
        padding: 0.7rem 1rem;
    }

.course-accordion .accordion-button:focus {
    border: 0;
    box-shadow: none;
}

/* Course NavBar */
.course-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--navbar-height) + 15px);
    z-index: 999;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.course-nav-item {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    cursor: pointer;
}

    .course-nav-item:hover {
        background-color: var(--secondary-color);
        color: #fff;
    }

    .course-nav-item.active {
        background-color: var(--secondary-color);
        color: #fff;
    }


/* 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;
}

/* 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);
    }


/* Control */
.form-control, .form-select {
    border-radius: 5px;
}

[dir="rtl"] .form-select {
    background-position: left 0.75rem center;
    padding: 0.375rem 0.75rem 0.375rem 2.25rem;
}

[dir="rtl"] .form-check {
    padding-right: 1.5em;
    padding-left: 0;
}
    [dir="rtl"] .form-check .form-check-input {
        float: right;
        margin-right: -1.5em;
        margin-left: -1.5em;
    }

.input-group > :not(:first-child) {
    margin-left: -1px !important;
}

[dir="rtl"] .input-group > :not(:first-child) {
    margin-left: 0 !important;
    margin-right: -1px !important;
    border-radius: 0.3rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[dir="rtl"] .input-group > :not(:last-child) {
    border-radius: 0.3rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


.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 */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
    padding-left: 0.5rem;
}

    [dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
        float: right;
        padding-right: 0;
        padding-left: 0.5rem;
    }

.breadcrumb-item.dark-theme + .breadcrumb-item::before {
    color: #ffff !important;
}


/**/
.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;
    }


/* 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, .offcanvas-start {
    width: 300px !important;
}

/* Toast */
.toast-container {
    position: fixed;
}

    .toast-container.top {
        top: var(--navbar-height);
        left: 0;
    }

    .toast-container.bottom {
        bottom: 15px;
        right: 15px;
    }

.toast.success {
    background-color: #d1e7ddff !important;
}

/* 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;
    }


/* Dashboard */
.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.active {
        background: var(--secondary-color);
        color: #fff;
    }

    .dashboard-item:hover {
        background: var(--primary-color);
        color: #fff !important;
    }

/* Star */
.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #e0e0e0;
}

.rating-value {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Progress */
.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);
    }

/* 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;
}

/* Footer */
.footer {
    color: #ffff;
    padding: 2.5rem 0;
}

    .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 ul li {
            padding: 2px 0;
        }

            .footer ul li a:hover {
                color: var(--secondary-color) !important;
            }

    .footer i {
        font-size: 1.2rem;
        color: #ffff;
    }


.footer-link {
    width: 100%;
    padding: 3px 0;
    color: black !important;
}

.w-md-75 {
    width: 75%;
}

.h-md-100 {
    height: 100%;
}

@media (max-width: 768px) {

    .offcanvas-end, .offcanvas-start {
        width: 100% !important;
    }

    .w-md-75 {
        width: 100%;
    }

    .h-md-100 {
        height: auto;
    }
}


/**/

.btn-primary {
    background-color: var(--secondary-color) !important;
    border: none;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}
.bg-secondary {
    background: var(--secondary-color) !important;
}

