body{
    letter-spacing: 0.5px;
}

#wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 14rem;
    flex-shrink: 0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    background-color: #f8f9fa; /* Optional */
    z-index: 1000;
}

#content-wrapper {
    margin-left: 14rem;
    flex: 1;
    overflow-y: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}



.sidebar-dark hr.sidebar-divider {
    border-top: 1px solid rgb(124 124 124 / 15%);
}

.sidebar-dark .nav-item.active .nav-link {
    color: #3161ad;
}

.sidebar-dark .nav-item.active .nav-link i {
    color: #3161ad;
}

.sidebar-dark .nav-item .nav-link {
    color: #3d3d3d;
}

.bg-gradient-primary {
    background-color: #ffffff;
    background-image: linear-gradient(180deg, #f7f8fb 10%, #f7f8fb 100%);
    background-size: cover;
    border-right: 1px solid #d7e0ea;
}


.sidebar-dark .sidebar-heading {
    color: rgb(78 78 78 / 40%);
}

.sidebar-dark .nav-item .nav-link:active, .sidebar-dark .nav-item .nav-link:focus, .sidebar-dark .nav-item .nav-link:hover {
    color: #1c96d2;
}

.sidebar-dark .nav-item .nav-link:active i, .sidebar-dark .nav-item .nav-link:focus i, .sidebar-dark .nav-item .nav-link:hover i {
    color: #45c2cd;
}

.sidebar-dark .nav-item .nav-link i {
    color: #45c2cd;
}

.sidebar-dark .nav-item .nav-link[data-toggle="collapse"]::after {
    color: rgb(144 144 144 / 50%);
}

.bg-light-gray {
    background: #f0f0f0;
}

.login-bg {
    background-image: url('../img/login.jpg'); /* image path check kar lena */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dataTable td{
    padding: 0.5rem;
}

/* error  */
.was-validated .form-control:invalid, .form-control.is-invalid {
    border-style: dashed;
    border-color: #cd281c;
}

.text-danger {
    color: #cd281c !important;
    font-size: 12px;
    margin-top: 2px;
}

.filepond--root{
    margin-bottom: 0 !important;
}

.error {
    color: #cd281c !important;
    font-size: 12px;
    width: auto;
}


.is-invalid + .image-error {
    display: block !important;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #bcbcbc;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #0056b3;
}

#toast-container>div:hover {
    -moz-box-shadow: 0 0 12px #c0c0c0 !important;
    -webkit-box-shadow: 0 0 12px #c0c0c0 !important;
    box-shadow: 0 0 12px #c0c0c0 !important;
}

#toast-container>div {
    border-radius: 8px !important;
    opacity: .95 !important;
}

.dataTable th, .dataTable thead th{
    border: none;
    background: #e4e6f0;
}

/* table.table-bordered.dataTable tbody th, table.table-bordered.dataTable tbody td {
    border-bottom-width: 1px !important;
} */



.table > tbody > tr > td {
    font-size: 14px;
    /* padding: 0; */
    padding: 10px 21px 10px 21px;
    color: #515365;
    letter-spacing: 1px;
    white-space: nowrap;
    border-right: none;
    border-left: none;
}

.table > thead > tr > th {
    text-transform: initial;
    font-weight: 600;
    background: rgb(49 97 173 / 11%);
    border-right: none;
    border-left: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding: 10px 21px 10px 10px;
    color: #515365;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.table > tbody tr {
    border-radius: 4px;
    border-bottom: 1px solid #e0e6ed;
}

.form-group label {
    /* font-size: 15px; */
    /* color: #0e1726; */
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.form-control {
    height: auto;
    border: 1px solid #bfc9d4;
    color: #3b3f5c;
    font-size: 15px;
    padding: 8px 10px;
    letter-spacing: 1px;
    border-radius: 6px;
    background: #fff;
    height: auto;
    transition: none;
}

.btn{
    font-size: 14px;
    border-radius: 8px;
}


.sidebar .nav-item .nav-link {
    padding: 0.5rem 1rem;
}

table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before {
    color: #d3d3d3;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3f5c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-up'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    width: 14px;
    height: 14px;
    content: "";
    right: 0.3rem;
    top: 0.5rem;
}

table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_desc_disabled:after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3f5c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    width: 14px;
    height: 14px;
    content: "";
    right: 0.3rem;
    top: 1.3rem;
}

table.dataTable>thead .sorting:before, table.dataTable>thead .sorting_asc:before, table.dataTable>thead .sorting_desc:before, table.dataTable>thead .sorting_asc_disabled:before, table.dataTable>thead .sorting_desc_disabled:before {
    right: 0em !important;
    content: "" !important;
}

table.dataTable>thead .sorting:after, table.dataTable>thead .sorting_asc:after, table.dataTable>thead .sorting_desc:after, table.dataTable>thead .sorting_asc_disabled:after, table.dataTable>thead .sorting_desc_disabled:after {
    right: 0em !important;
    content: "" !important;
}



#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white; /* Or your loader background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#globalLoader.fade-out {
    opacity: 0;
    visibility: hidden;
}


.ck-editor__editable {
    min-height: 400px;
}

.bg-blur {
    background: rgba(255, 255, 255, 0.6); /* white with transparency */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    transition: all 0.3s ease-in-out;
}

.badge {
    padding: 0.8em 1em;
}


.custom-file-container__image-multi-preview{
    width: 10% !important;
    height: 100px !important;
}

  /* Adjust individual image styling */
  .custom-file-container__image-multi-preview {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
  }

  .custom-file-container__custom-file__custom-file-control{
    height: auto !important;
    border-radius: 10px !important;
  }

  .custom-file-container__custom-file__custom-file-control__button{
    height: 100% !important;
  }

  .custom-file-container__image-preview{
    margin-bottom: 0px !important;
  }

.form-control.error, .nice-select.error, .form-select.error, .custom-file-container__image-preview.error {
    border-style: dashed !important;
    border-color: var(--error) !important;
}


@media (max-width: 768px) {
    .sidebar {
        width: 104px !important;
    }

    #content-wrapper {
        margin-left: 104px !important;
    }

}