.btn.btn-primary {
  background: rgb(146, 56, 81);
  border-color: rgb(146, 56, 81);
}

.btn.btn-primary:active:not(.btn-active),
.btn.btn-primary:focus:not(.btn-active),
.btn.btn-primary:hover:not(.btn-active) {
  background-color: rgb(146, 56, 81) !important;
  border-color: rgb(146, 56, 81) !important;
  color: #fff !important;
}

.btn.btn-success:active:not(.btn-active),
.btn.btn-success:focus:not(.btn-active),
.btn.btn-success:hover:not(.btn-active) {
  background-color: rgb(146, 56, 81) !important;
  border-color: rgb(146, 56, 81) !important;
  color: #fff !important;
}



.btn.btn-success {
  background: rgb(146, 56, 81);
  border-color: rgb(146, 56, 81);
  --bs-btn-hover-bg: rgb(146, 56, 81) !important;
}

.form-check-input:checked {
  background-color: rgb(146, 56, 81);
  border-color: rgb(146, 56, 81);
}

.text-hover-primary {
  transition: color .2s ease !important;
}

.text-hover-primary:hover {
  color: rgb(146, 56, 81) !important;
}

.text-hover-primary:hover i {
  color: rgb(146, 56, 81) !important;
}




/* Sidebar Styles */
.app-sidebar-menu {
  background: #f9f3f4;
}

.app-sidebar .app-sidebar-logo {
  background: rgb(253, 253, 253);
}

.app-sidebar .menu .menu-item .menu-link.active .menu-arrow:after {
  background: rgb(146, 56, 81) !important;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--highlighted {
  background-color: rgb(238, 224, 228);
  color: rgb(146, 56, 81);
  transition: color .2s ease;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected {
  background-color: rgb(238, 224, 228);
  color: rgb(146, 56, 81);
  transition: color .2s ease;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected:after {
  background-color: rgb(146, 56, 81);
}

.btn.btn-active-color-primary:hover:not(.btn-active) .svg-icon {
  color: rgb(146, 56, 81);
}

.btn.btn-active-color-primary.active .svg-icon {
  color: rgb(146, 56, 81);
}

.btn.btn-light-primary i {
  color: rgb(146, 56, 81);
}

.btn.btn-light-primary {
  color: rgb(146, 56, 81);
  background-color: rgb(238, 224, 228);
}

.btn.btn-active-primary:hover:not(.btn-active) {
  background-color: rgb(146, 56, 81) !important
}


/* Default state for menu title */
.menu-title {
  color: rgb(0, 0, 0) !important;
}

.btn.btn-active-color-primary:hover:not(.btn-active) i {
  color: rgb(146, 56, 81) !important
}

.app-sidebar .menu .menu-item .menu-link.active {
  transition: color .2s ease !important;
  background-color: #E2001D !important;
  color: white !important;
}

/* Active state for menu link and title */
.menu-link.active .menu-title {
  transition: color .2s ease, background-color .2s ease !important;
  background-color: #E2001D !important;
  color: white !important;
}

/* Additional styling for demonstration */
.menu-link {
  display: inline-block;
  padding: 10px;
  margin: 5px;
}

.active>.page-link {
  color: #fff;
  background-color: rgb(146, 56, 81) !important;
}

.page-link:hover {
  z-index: 2;
  color: rgb(146, 56, 81) !important;
  background-color: rgb(238, 224, 228) !important;
  border-color: var(--bs-pagination-hover-border-color);
}

.page-item.active .page-link:hover {
  color: white !important;
  background-color: rgb(146, 56, 81) !important;
  border-color: var(--bs-pagination-active-border-color) !important;
}

.menu-state-color .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
  color: rgb(146, 56, 81) !important;
}

.menu-state-bg .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
  background-color: rgb(238, 224, 228) !important;
  color: rgb(146, 56, 81) !important;
}

.menu-state-bg .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
  background-color: var(--kt-menu-link-bg-color-hover);
  color: var(--kt-menu-link-color-hover);
}

.custom_icon {
  font-size: 20px !important;
  padding: 1px !important;
  margin-right: 5px !important;
}

.card_arrow {
  justify-content: flex-start !important;
  align-items: baseline !important;
  gap: 10px !important;
}




html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* ✅ prevents horizontal scroll */
  background-color: #c8cccf;
  /* optional */
}

.top {
  align-items: center;
}

.log {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.forget {
  background-color: whitesmoke !important;
  height: 60%;
  margin-top: 8%;
}

.logo {
  margin-bottom: 10%;
  width: 80px;
  max-height: 50px;
  margin-left: -20%;
}

/* Container for the progress bar */
.indeterminate-progress-bar {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0;
  /* Background color of the bar */
  position: relative;
  overflow: hidden;
}

/* Add this to your CSS stylesheet */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black background */
  display: none;
  z-index: 9999;
  /* Make sure it's above other elements */
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #f3f3f3;
  border-top: 4px solid rgb(146, 56, 81);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



/* The animated progress bar */
.progress {
  width: 100%;
  height: 100%;
  background-color: rgb(146, 56, 81) !important;
  /* Progress bar color */
  position: absolute;
  left: -100%;
  /* Start position outside of the container */
  animation: indeterminateAnimation 1s infinite ease-in-out;
}

/* Animation keyframes */
@keyframes indeterminateAnimation {
  0% {
    left: -100%;
    width: 100%;
  }

  50% {
    left: 0;
    width: 100%;
  }

  100% {
    left: 100%;
    width: 10%;
  }
}


@media screen and (max-width: 320px) {
  .logo {
    margin-left: -5%;
    width: 60px;
  }
}

@media screen and (max-width: 320px) {
  .forget {
    height: 50% !important;
  }
}

.common-header {
  padding-left: 0px !important;
}

.justify-content-center {
  margin-top: 20px;
}

.app-header {
  z-index: 100;
  position: fixed;
  left: 0;
  right: 0;
  top: 0
}

#kt_app_toolbar_container {
  margin-top: 50px;
}

.field-icon {
  float: right;
  margin-right: 15px;
  margin-top: -25px;
  position: relative;
  z-index: 2;
}

.ql-container {
  height: 4% !important;
}

.draft {
  background-color: orange !important;
  color: white;
}

.close {
  background-color: green !important;
  color: white;
}

.next,
.preview {
  background-color: blue !important;
  color: white;
}

.timeline-label .timeline-item {
  margin-bottom: 4rem !important;
}

.truncate {
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description {
  height: 100% !important;
  max-height: 200px !important;
}

#searchInput:focus {
  border-color: #ba0028 !important;
  /* Turns border red on focus */
  outline: none;
  /* Remove default outline */
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
  /* Optional: subtle red glow */
}

.toast-notification {
  position: fixed;
  top: 25px;
  right: 25px;
  padding: 14px 20px;
  color: #fff;
  font-size: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999999 !important;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(40px);
    opacity: 0;
  }
}

#filterToggleBtn {
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

#filterToggleBtn:hover {
  background-color: #ba0028;
  color: #fff;
}

#exportBtn {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  position: relative;
}

#exportBtn:hover {
  background-color: #ba0028;
  color: #fff;
}

#exportDropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: -10px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  min-width: 150px;
}

.export-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.export-option:hover {
  background: #f9fafb
}

.export-option i {
  font-size: 16px;
  color: #059669;
}

.export-option span {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

/* ===== Filter Section ===== */
#filterSection {
  margin-bottom: 20px;
}

.filter-wrapper {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

.filter-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ===== Filter Dropdown ===== */
.filter-dropdown {
  position: relative;
}

.filter-dropdown-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.filter-dropdown-btn:hover {
  background: #ba0028;
  color: #fff;
}

/* ===== Dropdown Menu ===== */
.filter-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.filter-dropdown-menu.active {
  display: block;
}

/* ===== Filter Count Badge ===== */
.filter-count {
  background: #ba0028;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Show count when active */
.filter-count.active {
  display: flex;
}

/* ===== Active Filters Container ===== */
#activeFiltersContainer {
  margin-bottom: 20px;
}

.active-filters-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-filters-label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

/* ===== Filter Chips ===== */
#activeFiltersChips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-chip {
  background: #f3f4f6;
  color: #374151;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-chip button {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.filter-chip button:hover {
  color: #dc2626;
}

/* ===== Clear All Button ===== */
#clearAllFiltersBtn {
  background: transparent;
  border: none;
  color: #ba0028;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#clearAllFiltersBtn:hover {
  color: #8a001e;
}

.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.search-box {
  flex: 1;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.table-box-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-container {
  margin-bottom: 30px;
}

.main-title {
  font-size: 40px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.main-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.table-container {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

#dataTable {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  background-color: white;
  margin: 0 !important;
  padding: 0 !important;
}

#tableHeaderRow {
  background: #ba0028;
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.table-header {
  padding: 15px;
  text-align: left;
  white-space: nowrap;
}

#dataTable tbody td {
  padding: 12px 15px;
  /* Adjust as needed */
  vertical-align: middle;
  box-sizing: border-box;
  border-bottom: 1px solid #f0f0f0;
}

.date-filter {
  min-width: 180px;
}

#filterFromDate,
#filterToDate {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.filter-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-option:hover {
  background: #f3f4f6;
}

.filter-btns {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.create-button {
  padding: 10px 20px;
  background: #ba0028;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

    .dt-pagination-custom button {
        background: #ffffff;
        border: 1px solid #d1d5db;
        color: #374151;
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .dt-pagination-custom button i {
        color: #000000ff;
        font-size: 10px;
    }

    .dt-pagination-custom button:hover:not(:disabled) {
        background: #f9fafb;
        border-color: #9ca3af;
        color: #111827;
    }

    .dt-pagination-custom button:disabled {
        opacity: 0.8;
        cursor: pointer;
        background: #f9fafb;
        color: #9ca3af;
    }
    .dt-pagination-custom button:disabled i {
        color: #9ca3af;
    }

    .dt-pagination-custom span {
        color: #6b7280;
        font-size: 13px;
        font-weight: 500;
        margin: 0 12px;
    }

    #paginationControls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    #paginationControls button {
        padding: 4px 12px;
        color: #374151;
        border: 1px solid #e5e7eb;
        border-radius: 0.375rem;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    #paginationControls button:hover:not(:disabled) {
        background: #f3f4f6;
    }
    #paginationControls button:disabled {
        opacity: 0.8;
        cursor: pointer;
        background: #f9fafb;
        color: #9ca3af;
    }
    #paginationControls button:disabled i {
        color: #9ca3af;
    }
    #paginationControls button i {
        font-size: 10px;
        color: #000;
    }

    #paginationInfo {
        color: #6b7280;
        font-size: 13px;
    }
    #paginationControls span {
        color: #6b7280;
        margin: 0 4px; 
    }

    .comment-search {
      position: relative; 
      flex: 1; 
      max-width: 400px; 
      margin-left: 20px;
    }

    .comment-search i {
      position: absolute; 
      left: 12px; 
      top: 50%; 
      transform: translateY(-50%); 
      color: #9ca3af;
    }

    .pagination-bottom-area {
      background: #ffffff; 
      border-radius: 0 0 8px 8px; 
      padding: 16px; 
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      margin-top: 0;
    }

    .dt-info-custom {
      color: #6b7280; 
      font-size: 14px; 
      font-weight: 400;
    }

    .dt-pagination-custom {
      display: flex; 
      align-items: center; 
      gap: 8px;
    }