.ck-editor__editable,
textarea {
    min-height: 150px;
}
.card-header {
    text-align: right;
}

/* Global RTL Styles */
body {
    direction: rtl;
}

/* DataTables RTL Support */
.dataTables_wrapper {
    direction: rtl;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    direction: rtl;
}

/* Adjust alignment if necessary */
table.dataTable th, table.dataTable td {
    text-align: right;
}
@media print {
    .dataTables_wrapper {
        direction: rtl;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        direction: rtl;
    }
}
.datatable {
    width: 100% !important;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

table.dataTable thead th {
    border-bottom: 2px solid #c8ced3;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}
.dataTables_wrapper .dataTables_length{
    float:none;
}
.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

.btn-info,
.badge-info {
    color: white;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}
.sidebar {
    direction: rtl;
}
.sidebar-nav {
    text-align: right;
}
.nav-dropdown-items {
    text-align: right;
}
.nav-link {
    text-align: right;
}
.nav-item {
    text-align: right;
}
.nav-icon {
    margin-left: 10px;
}

.sidebar .nav-item {
    cursor: pointer;
}
.sidebar .nav , .sidebar-fixed .sidebar, .sidebar .sidebar-nav,
 .sidebar-minimized .sidebar .nav-dropdown-items .nav-item {
    width: 230px;
}

.gradient-custom {
    background: #b3c0d0;
    background-image: url("/assets/img/background2.jpg");

}

.btn-default {
    color: #23282c;
    background-color: #f0f3f5;
    border-color: #f0f3f5;
}

.btn-default.focus,
.btn-default:focus {
    box-shadow: 0 0 0 .2rem rgba(209, 213, 215, .5);
}

.btn-default:hover {
    color: #23282c;
    background-color: #d9e1e6;
    border-color: #d1dbe1;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}


#captureUpload {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #006e02;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#captureUpload:hover {
    background-color: #00ff04;
}

#canvas {
    display: none;
}

.sidebar {
    background-color: #0d721d;
}

/* Style for all nav links */
.sidebar .nav-link {
    color: white;

    text-decoration: none;
}

/* Hover state for nav links */
.sidebar .nav-link:hover {
    background-color: #084d13;
}


.sidebar .nav-link.active {
    background-color: #094a12;
    font-weight: bold;
    color: #ffffff;
}

.sidebar .nav-icon {
    color: white !important;;
}


.sidebar .nav-link .fa {
    color: white !important;
}


.btn-success,
.btn-primary {
    background-color: #0db046;
    border-color: #0db046;
    color: #ffffff;
}

.btn-success:hover,
.btn-primary:hover,
.btn-success:focus,
.btn-primary:focus,
.btn-success:active,
.btn-primary:active {
    background-color: #0b9c38;
    border-color: #0b9c38;
    color: #ffffff;
}

.btn-success:disabled,
.btn-primary:disabled {
    background-color: #b8d5b8;
    border-color: #b8d5b8;
    color: #ffffff;
}
/* Style for .btn-info */
.btn-info {
    background-color: #c2b80d;
    border-color: #c2b80d;
    color: #ffffff;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: #a7a20a;
    border-color: #a7a20a;
    color: #ffffff;
}

.btn-info:disabled {
    background-color: #e0d9a5;
    border-color: #e0d9a5;
    color: #ffffff;
}




/* Video wrapper styling */
.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Video element styling */
video {
    max-width: 100%;
    width: 100% !important;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}



/* Button styling */
button {
    padding: 10px 20px;
    font-size: 16px;
}

.logo-img {
    max-height: 50px;
    max-width: 100px;
    object-fit: contain;
}
html[dir=rtl] .sidebar-lg-show.sidebar-fixed .main {
    margin-right: 220px; /* Apply margin-right for larger screens */
}
  /* Responsive styles */
        @media (max-width: 920px) {
            html[dir=rtl] .sidebar-lg-show.sidebar-fixed .main {
                margin-right: 0 !important;
            }
            .main .container-fluid {
                padding-right: 50px !important;
            }
            .logo-img {
                margin-right: 700px !important;
                max-height: 45px !important;
            }
        }

        @media (max-width: 850px) {
            html[dir=rtl] .sidebar-lg-show.sidebar-fixed .main {
                margin-right: 0 !important;
            }
            .main .container-fluid {
                padding-right: 50px !important;
            }
            .logo-img {
                margin-right: 700px !important;
                max-height: 40px !important;
            }
        }

        @media (max-width: 600px) {
            .container {
                padding: 5px !important;
            }
            video, select, button {
                width: 100% !important;
            }
            label {
                font-size: 14px !important;
            }
            button {
                padding: 10px !important;
            }
            .logo-img {
                margin-right: 320px !important;
                max-height: 35px !important;
            }
        }
