.btn-primary {
    --bs-btn-bg: #ce1126;
    --bs-btn-border-color: #ce1126;
    --bs-btn-hover-bg: #343434;
    --bs-btn-hover-border-color: #343434;
    --bs-btn-active-bg: #343434;
    --bs-btn-active-border-color: #343434;
    --bs-btn-disabled-bg: #343434;
    --bs-btn-disabled-border-color: #343434;
}
.btn-outline-primary {
    --bs-btn-color: #ce1126;
    --bs-btn-border-color: #ce1126;
    --bs-btn-hover-bg: #343434;
    --bs-btn-hover-border-color: #343434;
    --bs-btn-active-bg: #343434;
    --bs-btn-active-border-color: #343434;
    --bs-btn-disabled-color: #343434;
    --bs-btn-disabled-border-color: #343434;
}
.btn:focus-visible {
    box-shadow: none;
}
.btn-primary-600:hover {
    background-color: #343434;
    border-color: #343434;
}
.btn-primary-600:active, .btn-primary-600:focus {
    background-color: #343434 !important;
    border-color: #343434 !important;
}
.bg-hover-primary-700:hover {
    background-color: #343434 !important;
}
.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    border: 1px solid #ce1126;
}
.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
    border-left: 12px solid #ce1126;
}
.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
    background: #ce1126;
}
.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover a {
    border-left: 12px solid #ffffff;
}
.audioplayer-volume-adjust div div {
    background-color: #ce1126;
}
.pill-tab .nav-link {
    color: #343434;
}
.pill-tab .nav-link:focus, .pill-tab .nav-link:hover {
    color: #ce1126;
}
.nav-link:focus-visible {
    box-shadow: none;
}
.pill-tab .nav-link.active:focus, .pill-tab .nav-link.active:hover {
    color: #ffffff;
}
.invalid-feedback {
    color: #ce1126;
}
.btn-outline-primary-600:active, .btn-outline-primary-600:focus {
    background-color: #343434 !important;
    border-color: #343434 !important;
}
.bg-primary-50 {
    background-color: #FDF3F4 !important;
}
.nav-pills .nav-link:focus, .nav-pills .nav-link:hover {
    color: #ce1126;
}
.sidebar-menu li  a i {
    padding-right: 9px;
}
.dashboard-main-body {
    height: 100vh;
    overflow-y: auto;
    margin-top: 20px;
    padding-bottom: 120px !important;
}

main.dashboard-main {
    overflow: hidden;
}

/* Fix for edit content management footer */
#editContentForm {
    padding-bottom: 20px;
}

#editContentForm > .d-flex.align-items-center.justify-content-center.gap-3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Hide footer on edit content management page */
#editContentForm ~ footer.d-footer,
body:has(#editContentForm) footer.d-footer {
    display: none !important;
}

/* 13 oct  */
.user-info-box {
    background: #f5f6fa;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 25px 20px;
}
.user-info-title {
    font-size: 18px !important;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 8px;
    margin-bottom: 15px;
}
/* .custom-form-check label.form-check-label {
    line-height: normal;
} */

.custom-form-check {
    display: flex;
    align-items: center;
    gap: 7px;
}

.swal2-title {
    font-size: 22px !important;
}
.swal2-icon {
    width: 60px;
    height: 60px;
}
.swal2-icon-content {
    font-size: 40px !important;
}
.pagination {
    display: none !important;
}
div#menuStructurePanel .d-flex.align-items-center.justify-content-between.px-3 {
    text-transform: capitalize;
}
.tabs-container .tab-item input {
    margin-bottom: 16px;
}

.page-publish-box {
    background: #f5f6fa;
    padding: 20px;
    border-radius: 10px;
}

.publish-heading {
    font-size: 20px !important;
    border-bottom: 1px solid #b7b7b7;
    padding-bottom: 10px;
}

.page-categories-box {
    background: #f5f6fa;
    padding: 20px;
    border-radius: 10px;
}

.categories-heading {
    font-size: 20px !important;
    border-bottom: 1px solid #b7b7b7;
    padding-bottom: 10px;
}

.categories-checkboxes {
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Category Checkbox Card Style */
.category-checkbox-item {
    position: relative;
}

.category-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.category-checkbox-label {
    display: block;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s ease;
}

.category-checkbox-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.category-checkbox-content:hover {
    border-color: #c0c0c0;
    background-color: #f8f9fa;
}

.category-checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-checkbox-icon i {
    font-size: 12px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-checkbox-text {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Checked state */
.category-checkbox-input:checked + .category-checkbox-label .category-checkbox-content {
    border-color: #ce1126;
    background-color: #fef2f2;
    border-width: 2px;
}

.category-checkbox-input:checked + .category-checkbox-label .category-checkbox-icon {
    background-color: #ce1126;
    border-color: #ce1126;
}

.category-checkbox-input:checked + .category-checkbox-label .category-checkbox-icon i {
    opacity: 1;
}

.category-checkbox-input:checked + .category-checkbox-label .category-checkbox-text {
    color: #ce1126;
    font-weight: 600;
}

/* Focus state for accessibility */
.category-checkbox-input:focus + .category-checkbox-label .category-checkbox-content {
    box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.2);
    outline: none;
}

/* Active/pressed state */
.category-checkbox-label:active .category-checkbox-content {
    transform: translateY(1px);
}

.status-dropdown {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
}
.status-dropdown select {
    border: 1px solid #cccc;
    padding: 9px 10px;
    width: calc(100% - 85px);
    font-size: 15px;
    line-height: normal;
    border-radius: 5px;
    -webkit-appearance: auto;
    appearance: auto;
    background: #fff;
}

.status-dropdown label {
    width: 85px;
}
.publish-btns {
    align-items: center;
    /* justify-content: space-between; */
    justify-content: end;
    /* padding-top: 20px; */
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 5px;
}

.publish-btns a , .publish-btns button {
    padding: 8px 13px !important;
    line-height: normal !important;
}
.publish-btns a.disabled , .publish-btns button.disabled {
    cursor: not-allowed;
}
a.custom-btn-color, button.custom-btn-color {
    background: #ce1126 !important;
    color: #fff !important;
    font-size: 15px !important;
    border-radius: 5px !important;
    border: 1px solid #ce1126 !important;
    padding: 8px 13px !important;
}
 
a.custom-btn-color:hover,button.custom-btn-color:hover  {
    background: #343434 !important;
    border-color: #343434 !important;
}
/* 27 nov  */
.swal2-styled {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem !important;
}
.sidebar-menu li a {
    border-radius: 0.25rem;
}

.custom-badge {
    font-weight: 500;
    border-radius: 0.25rem;
    font-size: 13px;
}
.badge-outline-success {
    color: #45B369;
    border: 1px solid #45B369;
}
.badge-success {
    background: #45B369;
    color: #fff;
}
.badge-outline-secondary {
    color: #6c757d;
    border: 1px solid #6c757d;
}
.badge-secondary {
    background: #6c757d;
    color: #ffffff;
}
.badge-outline-primary {
    color: #CE1126;
    border: 1px solid #CE1126;
}
.badge-primary {
    background: #CE1126;
    color: #fff;
}
.badge-outline-warning {
    border: 1px solid #FFC107;
    color: #FFC107;
}
.badge-warning {
    color: #000000;
    background: #FFC107;
}
.badge-outline-dark {
    border: 1px solid #212529;
    color: #212529;
}
.badge-dark {
    background: #212529;
    color: #fff;
}
.btn-outline-danger {
    color: #ce1126;
}
.form-label {
    color: #111827;
}
/* td, th {
    font-size: 15px;
    font-weight: 500;
    color: #111827 !important;
}
td strong {
    font-weight: 600;
} */


table.custom-table th {
    font-size: 16px;
    background: #F5F6FA;
    color: #ce1126;
    font-weight: 600;
}
 
table.custom-table thead {
    background: red;
}
 
table.custom-table tr:nth-child(odd) {
    background: #f9f9f9;
}
 
table.custom-table tr:nth-child(even) {
    background: #fff !important;
}
 
table.custom-table tbody td {
    background: none;
    font-size: 15px;
        color: #111827;
    font-weight: 400;
}
 
table.custom-table td, table.custom-table th {
    padding: 10px;
}
 
table.custom-table {
    border: 1px solid #e1e1e1;
}
.bold-mail {
    font-weight: 500;
}
.sidebar {
    z-index: 1;
}
/* 01 dec  */
.pagemaster-media-popup {
    max-width: 850px;
}
.pagemaster-media-popup .modal-header .modal-title {
    font-size: 20px !important;
}

.pagemaster-media-popup .media-picker-grid .media-picker-item {
    border: 1px solid #ccc;
    border-radius: 7px;
}
.pagemaster-media-popup .media-picker-grid .media-picker-item img.card-img-top {
    border-radius: 7px 7px 0 0;
}
.pagemaster-media-popup .media-picker-grid .media-picker-item.border-primary {
    border-color: #ce1126 !important;
    box-shadow: 0 0 0 0.2rem rgb(206 17 38 / 25%);
}
.pagemaster-media-popup  .card-body.media-card-body div {
    line-height: 20px;
    color: #111827 !important;
}
.pagemaster-media-popup  .media-card-body {
    padding: 5px 10px !important;
}
.custom-media-search span.input-group-text {
    background: #CE1126;
    color: #fff;
    border-color: #ce1126;
}
.custom-media-search span.input-group-text:hover {
    background: #343434;
    color: #fff;
    border-color: #343434;
}
.custm-media-tabs li.nav-item button {
    border: none;
    background: #f1f1f1;
    border-radius: 5px;
    color: #111827;
    font-size: 15px;
    margin-right: 9px;
}

.custm-media-tabs li.nav-item button.active {
    background: #ce1126;
    color: #fff;
}
.custm-media-tabs {
    border-bottom: 1px solid #d3d3d3;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.custom-switch-btn  .btn-check:checked+.btn-outline-secondary {
    background: #ce1126;
    border-color: #ce1126;
}
.filemane small {
    line-height: 18px;
    display: inline-block;
    color: #111827 !important;
    font-size: 12px;
}

.filemane {
    padding: 10px 7px;
}
.preview-actions.mt-3 .remove-media {
    padding: 0;
}
.preview-actions button.btn.btn-sm.btn-outline-primary.change-media {
    font-size: 13px;
    padding: 7px 15px;
    display: inline-block;
    line-height: normal;
}
.media-input-wrapper:hover {
    border-color: #ce1126 !important;
}
.dropdown-menu.to-top.dropdown-menu-sm{
    z-index: 9999;
}
.media-card .thumb img {
    height: 130px;
    width: 100%;
    object-fit: contain;
}
.modal-body .tab-content {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}
@media (min-width:992px){
.pagemaster-media-popup  .media-picker-grid .col {
    flex: 0 0 20%;
    width: 20%;
}
}
@media (max-width:1649px){
    .sidebar-menu li  a i {
    padding-right: 0px;
}
}


.sign-form-logo h4 {
    margin-bottom: 25px !important;
    margin-top: 15px;
}

/* main site  */
.sign-form {
    box-shadow: 0 0 10px #ccc;
    max-width: 640px;
    margin: 30px auto;
    padding: 50px;
    border-radius: 20px;
    /* width: 90%; */
    background: #ffffff;
}
.form-auth{
        overflow: hidden;
}
.sign-form-logo {
    text-align: center;
}
.sign-form button.btn.btn-primary {
    font-size: 16px !important;
}
.form-auth{
     overflow: hidden;
     position: relative;
     z-index: 1;
     height: 100vh;
}
.form-auth:before {
    position: absolute;
    background: url(../images/bg-logo.png) center center repeat;
    content: "";
    width: 100%;
    height: 100%;
    opacity: 0.07;
    z-index: -1;
}
td.desc-table {
    max-width: 390px;
}
td.title-table {
    max-width: 270px;
}
.modal-dialog.cms-modal {
    max-width: 1050px;
}
.addblog-btn {
    margin-left: auto;
    display: table;
    margin-bottom: 20px;
}

.addblog-btn a.btn-primary {
    display: inline-block;
    width: max-content;
}



/* menu drag start  */
.custom-menu-widget .menu-list {
  min-height: 220px;
  border: 1px dashed #ced4da;
  border-radius: .5rem;
  padding: .5rem;
  background: #fff;
}

.custom-menu-widget .menu-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: .5rem;
  padding: .5rem .5rem;
  margin-bottom: .5rem;
}

.custom-menu-widget .menu-item .handle {
  cursor: grab;
  color: #6c757d;
}

.custom-menu-widget .menu-item .title {
  flex: 1 1 auto;
}

.custom-menu-widget .menu-children {
  margin-left: 1.5rem;
}

.custom-menu-widget .list-group-item input[type="checkbox"] {
  margin-right: .5rem;
}
.select-all-btn {
    background: #ce1126;
    border-radius: 4px;
    color: #fff;
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.select-all-btn:hover {
    background: #343434;
}
.form-check-input[type=checkbox]:checked {
    background-color: #ce1126;
    box-shadow: none;
    border-color: #ce1126;

}
.form-check-input[type=checkbox]:focus {
    box-shadow: none;

}
.custom-menu-list label.list-group-item span {
    margin-left: 8px;
}
.custom-menu-list label.list-group-item input {
    margin: 0;
}
.custom-menu-header {
    padding: 10px 20px !important;
}
.custom-structure-widget button.btn {
    padding: 9px 15px !important;
    line-height: normal;
    font-size: 15px;
    border-radius: 4px !important;
}
.select-menu-widget p {
    margin: 0;
    max-width: 170px;
    flex: 0 0 170px;
        color: #111827;
}
.select-menu-widget {
    display: flex;
    align-items: center;
    gap: 20px;
}
.select-menu-widget button {
    width: 50%;
    max-width: 100px;
    padding: 10px;
    line-height: normal;
}
.select-menu-widget select {
    max-width: 200px;
    flex: 0 0 200px;
    appearance: auto;
    padding-left: 3px;
}
.select-menu-row {
    margin-bottom: 30px;
}

/* menu drag end  */



/* media upload start  */
.custom-upload-media .dropzone {
	background: #fafbfd;
	border: 2px dashed #cfd6e4;
	border-radius: .5rem;
	padding: 3rem 1rem;
	min-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s ease, background .15s ease;
    margin-bottom: 20px;
}

.custom-upload-media .dropzone.dragover {
	border-color: var(--drop-border-hover);
	background: #f2f7ff;
}

.custom-upload-media .uploads .item {
	border: 1px solid #e9edf3;
	border-radius: .25rem;
	padding: .5rem;
	margin-bottom: .75rem;
	display: flex;
	align-items: center;
}

.custom-upload-media .uploads .thumb {
	width: 56px;
	height: 56px;
	border-radius: .25rem;
	background: #f6f7fb;
	background-size: cover;
	background-position: center;
	margin-right: .75rem;
	flex: 0 0 56px;
	position: relative;
	overflow: hidden;
}

.custom-upload-media .uploads .meta {
	flex: 1 1 auto;
	min-width: 0;
}

.custom-upload-media .uploads .name {
	font-size: .9rem;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.custom-upload-media .uploads .sub {
	font-size: .75rem;
	color: #6c757d;
	margin: 0;
}

.custom-upload-media .uploads .progress {
	height: .4rem;
	margin-top: .35rem;
}
.custom-upload-media .custom-upload-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 15px ;
    border-radius: 10px;
    box-shadow: 0 0 10px #ccc;
    margin-bottom: 24px;
}
.custom-upload-media .upload-heading {
    font-weight: 600;
    color: #111827;
}
.custom-upload-media .lead {
    font-size: 20px;
    font-weight: 500;
}
.custom-upload-media  .progress-bar {
    background-color: #ce1126;
}
/* media upload end  */


/* media library start  */
.custom-library-widget .media-toolbar .form-select{min-width: 180px}
.custom-library-widget .media-search{width:280px}

.custom-library-widget .media-card{
  position:relative;
  border:1px solid #dcdcde;
  background:#fff;
  height:calc(var(--thumb-size) + 48px);
  display:flex;
  flex-direction:column;
}
.custom-library-widget .media-card .thumb{
  height:var(--thumb-size);
  background:#f0f0f1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.custom-library-widget .media-card img{
  max-width:100%;
  max-height:100%;
}
.custom-library-widget .media-card .caption{
  font-size:.875rem;
  padding:.5rem .5rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.custom-library-widget .media-card .check-wrap{position:absolute; top:.4rem; left:.4rem}

.custom-library-widget .media-card:hover{box-shadow:0 0 0 1px #ce1126}
.custom-library-widget .media-card.selected{box-shadow:0 0 0 1px #ce1126}

.custom-library-widget .media-list tbody tr td{vertical-align:middle}
.custom-library-widget .media-list .list-thumb{
  width:60px; height:60px; background:#f0f0f1; display:flex; align-items:center; justify-content:center;
}
.custom-library-widget .media-list .list-thumb img{max-width:100%; max-height:100%}

.custom-library-widget .badge-type{text-transform:uppercase; font-weight:600}

.custom-library-widget #previewContent img{max-width:100%; height:auto}

.custom-library-widget .attachment-modal .attachment-canvas{background:#fff}
.custom-library-widget .attachment-modal .canvas-inner{
  background: conic-gradient(#f0f0f1 0 25%, transparent 0 50%, #f0f0f1 0 75%, transparent 0) 0 0/20px 20px;
  border:1px solid #dcdcde; min-height:300px; display:flex; align-items:center; justify-content:center;
}
.custom-library-widget .attachment-modal .attachment-sidebar{background:#f6f7f7}
.custom-library-widget  .attachment-modal .attachment-sidebar .form-label{margin-bottom:.25rem}

.media-grid .form-check .form-check-input::before {
    transform: rotate(45deg) !important;
    height: 11px;
    width: 6px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    top: 1px;
    left: 5px;
    border-radius: 0;
}
.custom-dialog-modal .modal-header .modal-title {
    font-size: 20px !important;
}
.image-detail-size {
    font-size: 15px;
}
.custom-dialog-modal .form-control.form-control-sm {
    height: auto;
}
/* media library end  */
.preview-ad-modal .modal-title {
    font-size: 20px !important;
}
.preview-ad-modal {
    max-width: 1000px;
}
.video-wrap iframe {
  width: 100%;
  height: 400px;
}
.form-select {
    background-position: 98% !important;
}
@media (max-width:1366px){
    .publish-btns a, .publish-btns button {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}
@media (max-width:991px){
    .page-publish-box {
        margin-top: 30px;
    }
    
    .page-categories-box {
        margin-top: 20px;
    }

}
@media (max-width:767px){
.select-menu-row {
    margin-bottom: 20px;
}
.btn-nmobile {
    margin-top: 15px;
}
/* 01 dec  */
.pagemaster-media-popup .media-picker-grid .media-picker-item img {
    height: 200px !important;
}
}
@media (max-width:576px){
    .sign-form {
    padding: 40px 30px;
}
.sign-form-logo p {
    font-size: 16px !important;
    margin-bottom: 20px !important;
}
.select-menu-widget button {
    width: calc(100% - 200px);
}
.select-menu-widget p {
    max-width: 100%;
    flex: 0 0 100%;
}
.select-menu-widget {
    flex-wrap: wrap;
        gap: 10px;
}
/* 01 dec  */
.pagemaster-media-popup .media-picker-grid .media-picker-item img {
    height: auto !important;
}
}
@media (max-width:480px){
  .sign-form {
    padding: 40px 20px;
}
.sign-form-logo p {
    font-size: 15px !important;
}
.sign-form .icon-field .form-control {
    height: auto !important;
    border-radius: 6px;
    font-size: 15px;
}
.sign-form {
    width: 92%;
}
.sign-form button.btn.btn-primary {
    font-size: 15px !important;
    padding: 10px !important;
    border-radius: 6px !important;
}
#menuList input.form-control {
    padding: 0 7px !important;
    font-size: 13px !important;
            width: 145px;
}
}

swal-toast-small{
    font-size: 18px !important;
}

.fade {

    background: #00000070;
}

.autocomplete-item.p-2.text-sm.cursor-pointer.hover\:bg-neutral-100 {
    padding: 10px !important;
    font-size: 14px !important;
    color: black;

}
.autocomplete-list.border.bg-white.position-absolute.w-100.radius-8.shadow-sm.mt-1 {
    width: 96% !important;
    z-index: 11;
}

button.swal2-confirm.swal2-styled {
    background: #ce1126;
}


.set-sub{
        font-size: 12px !important;
    padding: 6px 8px !important;
    font-weight: 500 !important;
    background: #ce1126 !important;
}


.form-control:disabled {
    background-color: rgb(247 188 175 / 32%);
    opacity: 1;
    font-weight: 600;
}

.dkUNmA {
    display: none;
}

.ck.ck-dropdown.ck-color-ui-dropdown , .ck.ck-dropdown.ck-font-size-dropdown , .ck.ck-dropdown.ck-heading-dropdown{
    display: none;
}
.sidebar.active:hover .sidebar-menu li a span {
    display: none !important;
}
.sidebar.active:hover {
    width: 86px;
}
.sidebar.active:hover .sidebar-logo img.light-logo {
    display: none;
}
.sidebar.active:hover .sidebar-logo img.logo-icon {
    display: inline-block;
}
.media-input-bg .form-check-input {
    background: white;
}

/* Fix for form validation focus behavior on mobile */
.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus {
    scroll-margin-top: 100px;
}

/* Additional scroll margin for section blocks to ensure proper visibility */
.section-block {
    scroll-margin-top: 80px;
}

/* Ensure smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}
/* Video
 Thumbnail Styles for Media Library */
/* .video-thumbnail-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.video-play-overlay {
    pointer-events: none;
    z-index: 2;
}

.media-card .thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card .thumb img,
.media-card .thumb .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.media-card:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.2s ease;
}

.list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.list-thumb .video-thumbnail-container {
    width: 100%;
    height: 100%;
}

.list-thumb .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-thumb .video-play-overlay i {
    font-size: 1rem !important;
}

.attachment-canvas video {
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    background-color: #000;
} */
/* Enhanced Media Library Styles */
.custom-library-widget .media-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-library-widget .media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.custom-library-widget .media-card.selected {
    box-shadow: 0 0 0 2px #ce1126 !important;
    background-color: rgba(206, 17, 38, 0.05);
}

/* Video thumbnail enhancements */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

.video-play-overlay {
    transition: transform 0.2s ease;
    cursor: pointer !important;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Bulk select mode styles */
.custom-library-widget.bulk-mode .media-card {
    cursor: pointer;
}

.custom-library-widget.bulk-mode .media-card:hover {
    background-color: rgba(206, 17, 38, 0.1);
}

/* Checkbox styling improvements */
.custom-library-widget .check-wrap {
    z-index: 3;
    border-radius: 4px;
    padding: 2px;
}

.custom-library-widget .form-check-input:checked {
    background-color: #ce1126;
    border-color: #ce1126;
}

.custom-library-widget .form-check-input:focus {
    border-color: #ce1126;
    box-shadow: 0 0 0 0.2rem rgba(206, 17, 38, 0.25);
}

/* Toolbar enhancements */
.media-toolbar .btn-outline-secondary:hover {
    background-color: #ce1126;
    border-color: #ce1126;
    color: white;
}

.media-toolbar .btn-outline-secondary.active {
    background-color: #ce1126;
    border-color: #ce1126;
    color: white;
}

/* List view video thumbnails */
.custom-library-widget .media-list .list-thumb .video-thumbnail-container {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.custom-library-widget .media-list .list-thumb .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-library-widget .media-list .list-thumb .video-play-overlay {
    font-size: 1.5rem !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .media-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .media-toolbar .ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    .media-toolbar .d-flex {
        justify-content: space-between;
    }
}

/* Loading state improvements */
.media-grid .spinner-border {
    color: #ce1126;
}

/* Selection counter styling */
#bulkCount {
    font-weight: 600;
    color: #ce1126 !important;
}

/* Select all button styling */
#btnSelectAll {
    font-weight: 500;
}

#btnSelectAll:hover {
    background-color: #ce1126;
    border-color: #ce1126;
    color: white;
}