@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('./tabler-icons.min.css');
@import url('../vendor/bootstrap.min.css');

:root {
  --bs-red: #DC3545;
  --bs-green: #00C951;
  --bs-cyan: #00B8DB;
  --bs-yellow: #F0B100;
  --bs-primary: #DC3545;
  --bs-primary-rgb: 220, 53, 69;
  --bs-secondary: #525252;
  --bs-secondary-rgb: 82, 82, 82;
  --bs-success: #00C951;
  --bs-success-rgb: 0, 201, 81;
  --bs-info: #00B8DB;
  --bs-info-rgb: 0, 184, 219;
  --bs-warning: #F0B100;
  --bs-warning-rgb: 240, 177, 0;
  --bs-danger: #DC3545;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light: #f5f5f5;
  --bs-light-rgb: 245, 245, 245;
  --bs-dark: #1B2A4A;
  --bs-dark-rgb: 27, 42, 74;
  --bs-gray-50: #fafafa;
  --bs-gray-100: #f5f5f5;
  --bs-gray-200: #e5e5e5;
  --bs-gray-300: #d4d4d4;
  --bs-gray-400: #a3a3a3;
  --bs-gray-500: #737373;
  --bs-gray-600: #525252;
  --bs-gray-700: #404040;
  --bs-gray-800: #262626;
  --bs-gray-900: #171717;
  --bs-gray-950: #0a0a0a;
  --bs-body-font-family: 'Poppins', sans-serif;
  --bs-body-font-size: 0.875rem;
  --bs-body-font-weight: 400;
  --bs-border-color: #e5e5e5;
  --bs-link-color: #404040;
  --bs-link-hover-color: #DC3545;
  --bs-headings-font-weight: 400;
  --bs-font-sans-serif: 'Poppins', sans-serif;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  display: none;
  z-index: 1030;
}
.overlay.show {
  display: block;
}

.sidebar {
  width: 240px;
  background: #fff;
  transition: width 0.3s, left 0.3s;
  border-right: 1px solid #e5e5e5;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 60px;
  z-index: 1030;
}
.sidebar .nav-link {
  color: #262626;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  gap: 12px;
  white-space: nowrap;
  margin: 1px 12px;
  border-radius: 8px;
}
.sidebar .nav-link:hover {
  color: #DC3545;
  background-color: rgba(220, 53, 69, 0.095);
}
.sidebar .nav-link.active {
  color: #DC3545;
  background-color: rgba(220, 53, 69, 0.095);
}
.sidebar .nav-link .ti {
  font-size: 18px;
}
.sidebar .nav-text {
  transition: opacity 0.2s;
}
.sidebar .logo-area {
  position: absolute;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 17px;
  color: #262626;
  border-bottom: 1px solid #e5e5e5;
}
.sidebar.collapsed {
  width: 60px;
}
.sidebar.collapsed .nav-link {
  margin: 0 0px;
  background-color: transparent;
  padding: 8px 18px;
}
.sidebar.collapsed .nav-text {
  display: none;
}
.sidebar .logo-area .logo-icon-only {
  display: none;
}
.sidebar.collapsed .logo-area .logo-full {
  display: none;
}
.sidebar.collapsed .logo-area .logo-icon-only {
  display: inline;
}
.sidebar.collapsed .logo-area {
  padding-left: 0;
  justify-content: center;
}

.topbar {
  height: 60px;
  margin-left: 240px;
}
.topbar.full {
  margin-left: 60px;
}

.content {
  margin-left: 240px;
}
.content.full {
  margin-left: 60px;
}

@media (max-width: 992px) {
  .sidebar {
    left: -240px;
  }
  .sidebar.mobile-show {
    left: 0;
  }
  .topbar {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .content {
    margin-left: 0 !important;
  }
}

.avatar {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
}
.avatar-xs {
  width: 1.5rem;
  height: 1.5rem;
}
.avatar-sm {
  width: 2rem;
  height: 2rem;
}
.avatar-md {
  width: 2.5rem;
  height: 2.5rem;
}
.avatar-lg {
  width: 3.5rem;
  height: 3.5rem;
}
.avatar-xl {
  width: 5rem;
  height: 5rem;
}
.avatar-xxl {
  width: 7.5rem;
  height: 7.5rem;
}
.avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.avatar.rounded-circle {
  overflow: hidden;
}
.avatar-indicators {
  position: relative;
}
.avatar-indicators:before {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 5%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid var(--bs-white);
  display: table;
}
.avatar-xxl.avatar-indicators:before {
  bottom: 5px;
  right: 17%;
  width: 16%;
  height: 16%;
}
.avatar-offline:before {
  background-color: var(--bs-gray-400);
}
.avatar-online:before {
  background-color: #00C951;
}
.avatar-away:before {
  background-color: #F0B100;
}
.avatar-busy:before {
  background-color: #FB2C36;
}
.avatar-info:before {
  background-color: #00B8DB;
}
.avatar-initials {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  text-transform: uppercase;
}
.avatar-primary .avatar-initials {
  color: #fff;
  background-color: #DC3545;
}
.avatar-secondary .avatar-initials {
  color: #fff;
  background-color: #525252;
}
.avatar-success .avatar-initials {
  color: #fff;
  background-color: #00C951;
}
.avatar-warning .avatar-initials {
  color: #fff;
  background-color: #F0B100;
}
.avatar-info .avatar-initials {
  color: #fff;
  background-color: #00B8DB;
}
.avatar-danger .avatar-initials {
  color: #fff;
  background-color: #FB2C36;
}
.avatar-light .avatar-initials {
  color: #fff;
  background-color: #f5f5f5;
}
.avatar-dark .avatar-initials {
  color: #fff;
  background-color: #171717;
}
.avatar-group .avatar + .avatar {
  margin-left: -1.2rem;
}
.avatar-group .avatar:hover {
  z-index: 2;
}
.avatar-group img,
.avatar-group .avatar .avatar-initials {
  border: 2px solid var(--bs-white);
}

.btn-icon {
  position: relative;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 0.92969rem;
  font-weight: 400;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  transform: scale(1.12);
}
.btn-icon:active {
  transform: scale(0.95);
}
.btn-icon.btn-xs {
  font-size: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
}
.btn-icon.btn-sm {
  font-size: 0.875rem;
  width: 2.1875rem;
  height: 2.1875rem;
}
.btn-icon.btn-lg {
  font-size: 1rem;
  width: 3.36875rem;
  height: 3.36875rem;
}

.icon-xxs { width: 1rem; height: 1rem; line-height: 1rem; }
.icon-xs { width: 1.5rem; height: 1.5rem; line-height: 1.5rem; }
.icon-sm { width: 2rem; height: 2rem; line-height: 2rem; }
.icon-md { width: 2.5rem; height: 2.5rem; line-height: 2.5rem; }
.icon-lg { width: 3rem; height: 3rem; line-height: 3rem; }
.icon-xl { width: 3.5rem; height: 3.5rem; line-height: 3.5rem; }
.icon-xxl { width: 4rem; height: 4rem; line-height: 4rem; }
.icon-xxxl { width: 7rem; height: 7rem; line-height: 7rem; }
.icon-shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

.border-dashed {
  --bs-border-style: dashed;
}

.timeline-vertical {
  position: relative;
}
.timeline-vertical .timeline-item .timeline-bar {
  position: absolute;
  height: 100px;
  left: 5px;
  top: 24px;
}
.timeline-vertical-height .timeline-item .timeline-bar {
  height: calc(100% - 1rem) !important;
}
.vr {
  display: inline-block;
  align-self: stretch;
  width: 1px;
  min-height: 1em;
  background-color: var(--bs-border-color) !important;
  opacity: 0.25;
}

.spacer-6 { margin: 2.5rem; }
.spacer-7 { margin: 3rem; }
.spacer-8 { margin: 4rem; }
.spacer-9 { margin: 5rem; }
.spacer-10 { margin: 6rem; }
.spacer-11 { margin: 8rem; }


.gap-6 { gap: 2.5rem !important; }
.gap-7 { gap: 3rem !important; }
.gap-8 { gap: 4rem !important; }
.gap-9 { gap: 5rem !important; }
.gap-10 { gap: 6rem !important; }
.gap-11 { gap: 8rem !important; }

.m-6 { margin: 2.5rem !important; }
.m-7 { margin: 3rem !important; }
.m-8 { margin: 4rem !important; }
.m-9 { margin: 5rem !important; }
.m-10 { margin: 6rem !important; }
.m-11 { margin: 8rem !important; }
.mt-6 { margin-top: 2.5rem !important; }
.mt-7 { margin-top: 3rem !important; }
.mt-8 { margin-top: 4rem !important; }
.mt-9 { margin-top: 5rem !important; }
.mt-10 { margin-top: 6rem !important; }
.mt-11 { margin-top: 8rem !important; }
.mb-6 { margin-bottom: 2.5rem !important; }
.mb-7 { margin-bottom: 3rem !important; }
.mb-8 { margin-bottom: 4rem !important; }
.mb-9 { margin-bottom: 5rem !important; }
.mb-10 { margin-bottom: 6rem !important; }
.mb-11 { margin-bottom: 8rem !important; }
.ms-6 { margin-left: 2.5rem !important; }
.ms-7 { margin-left: 3rem !important; }
.ms-8 { margin-left: 4rem !important; }
.ms-9 { margin-left: 5rem !important; }
.ms-10 { margin-left: 6rem !important; }
.ms-11 { margin-left: 8rem !important; }
.me-6 { margin-right: 2.5rem !important; }
.me-7 { margin-right: 3rem !important; }
.me-8 { margin-right: 4rem !important; }
.me-9 { margin-right: 5rem !important; }
.me-10 { margin-right: 6rem !important; }
.me-11 { margin-right: 8rem !important; }
.mx-6 { margin-left: 2.5rem !important; margin-right: 2.5rem !important; }
.mx-7 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-8 { margin-left: 4rem !important; margin-right: 4rem !important; }
.mx-9 { margin-left: 5rem !important; margin-right: 5rem !important; }
.mx-10 { margin-left: 6rem !important; margin-right: 6rem !important; }
.mx-11 { margin-left: 8rem !important; margin-right: 8rem !important; }
.my-6 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
.my-7 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-8 { margin-top: 4rem !important; margin-bottom: 4rem !important; }
.my-9 { margin-top: 5rem !important; margin-bottom: 5rem !important; }
.my-10 { margin-top: 6rem !important; margin-bottom: 6rem !important; }
.my-11 { margin-top: 8rem !important; margin-bottom: 8rem !important; }

.p-6 { padding: 2.5rem !important; }
.p-7 { padding: 3rem !important; }
.p-8 { padding: 4rem !important; }
.p-9 { padding: 5rem !important; }
.p-10 { padding: 6rem !important; }
.p-11 { padding: 8rem !important; }
.pt-6 { padding-top: 2.5rem !important; }
.pt-7 { padding-top: 3rem !important; }
.pt-8 { padding-top: 4rem !important; }
.pt-9 { padding-top: 5rem !important; }
.pt-10 { padding-top: 6rem !important; }
.pt-11 { padding-top: 8rem !important; }
.pb-6 { padding-bottom: 2.5rem !important; }
.pb-7 { padding-bottom: 3rem !important; }
.pb-8 { padding-bottom: 4rem !important; }
.pb-9 { padding-bottom: 5rem !important; }
.pb-10 { padding-bottom: 6rem !important; }
.pb-11 { padding-bottom: 8rem !important; }
.ps-6 { padding-left: 2.5rem !important; }
.ps-7 { padding-left: 3rem !important; }
.ps-8 { padding-left: 4rem !important; }
.ps-9 { padding-left: 5rem !important; }
.ps-10 { padding-left: 6rem !important; }
.ps-11 { padding-left: 8rem !important; }
.pe-6 { padding-right: 2.5rem !important; }
.pe-7 { padding-right: 3rem !important; }
.pe-8 { padding-right: 4rem !important; }
.pe-9 { padding-right: 5rem !important; }
.pe-10 { padding-right: 6rem !important; }
.pe-11 { padding-right: 8rem !important; }
.px-6 { padding-left: 2.5rem !important; padding-right: 2.5rem !important; }
.px-7 { padding-left: 3rem !important; padding-right: 3rem !important; }
.px-8 { padding-left: 4rem !important; padding-right: 4rem !important; }
.px-9 { padding-left: 5rem !important; padding-right: 5rem !important; }
.px-10 { padding-left: 6rem !important; padding-right: 6rem !important; }
.px-11 { padding-left: 8rem !important; padding-right: 8rem !important; }
.py-6 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-7 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-8 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-9 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.py-10 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.py-11 { padding-top: 8rem !important; padding-bottom: 8rem !important; }

.top-10 { top: 10% !important; }
.top-60 { top: 60% !important; }
.top-65 { top: 65% !important; }
.top-70 { top: 70% !important; }
.bottom-10 { bottom: 10% !important; }
.bottom-60 { bottom: 60% !important; }
.bottom-65 { bottom: 65% !important; }
.bottom-70 { bottom: 70% !important; }
.start-10 { left: 10% !important; }
.start-60 { left: 60% !important; }
.start-65 { left: 65% !important; }
.start-70 { left: 70% !important; }
.end-10 { right: 10% !important; }
.end-60 { right: 60% !important; }
.end-65 { right: 65% !important; }
.end-70 { right: 70% !important; }

@media (min-width: 576px) {
  .top-sm-10 { top: 10% !important; }
  .bottom-sm-10 { bottom: 10% !important; }
  .start-sm-10 { left: 10% !important; }
  .end-sm-10 { right: 10% !important; }
}
@media (min-width: 768px) {
  .top-md-10 { top: 10% !important; }
  .bottom-md-10 { bottom: 10% !important; }
  .start-md-10 { left: 10% !important; }
  .end-md-10 { right: 10% !important; }
}
@media (min-width: 992px) {
  .top-lg-10 { top: 10% !important; }
  .bottom-lg-10 { bottom: 10% !important; }
  .start-lg-10 { left: 10% !important; }
  .end-lg-10 { right: 10% !important; }
}
@media (min-width: 1200px) {
  .top-xl-10 { top: 10% !important; }
  .bottom-xl-10 { bottom: 10% !important; }
  .start-xl-10 { left: 10% !important; }
  .end-xl-10 { right: 10% !important; }
}
@media (min-width: 1400px) {
  .top-xxl-10 { top: 10% !important; }
  .bottom-xxl-10 { bottom: 10% !important; }
  .start-xxl-10 { left: 10% !important; }
  .end-xxl-10 { right: 10% !important; }
}

.fs-tiny { font-size: 0.75rem !important; }

.form-control,
.form-select {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-size: 0.875rem;
}

.btn {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-size: 0.875rem;
}

/* === Match template spacers === */
[class*="p-5"] { padding: 2rem !important; }
[class*="px-5"] { padding-left: 2rem !important; padding-right: 2rem !important; }
[class*="py-5"] { padding-top: 2rem !important; padding-bottom: 2rem !important; }
[class*="ps-5"] { padding-left: 2rem !important; }
[class*="pe-5"] { padding-right: 2rem !important; }
[class*="pt-5"] { padding-top: 2rem !important; }
[class*="pb-5"] { padding-bottom: 2rem !important; }
[class*="m-5"] { margin: 2rem !important; }
[class*="mx-5"] { margin-left: 2rem !important; margin-right: 2rem !important; }
[class*="my-5"] { margin-top: 2rem !important; margin-bottom: 2rem !important; }
[class*="ms-5"] { margin-left: 2rem !important; }
[class*="me-5"] { margin-right: 2rem !important; }
[class*="mt-5"] { margin-top: 2rem !important; }
[class*="mb-5"] { margin-bottom: 2rem !important; }

/* === Fix Bootstrap hard-coded primary colors === */
.btn-primary {
  --bs-btn-bg: #DC3545;
  --bs-btn-border-color: #DC3545;
  --bs-btn-hover-bg: #B02A37;
  --bs-btn-hover-border-color: #A52834;
  --bs-btn-active-bg: #A52834;
  --bs-btn-active-border-color: #982530;
  --bs-btn-disabled-bg: #DC3545;
  --bs-btn-disabled-border-color: #DC3545;
}
.btn-outline-primary {
  --bs-btn-color: #DC3545;
  --bs-btn-border-color: #DC3545;
  --bs-btn-hover-bg: #DC3545;
  --bs-btn-hover-border-color: #DC3545;
  --bs-btn-active-bg: #DC3545;
  --bs-btn-active-border-color: #DC3545;
  --bs-btn-disabled-color: #DC3545;
  --bs-btn-disabled-border-color: #DC3545;
}
.form-control:focus {
  border-color: #e0777d;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.form-select:focus {
  border-color: #e0777d;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.form-check-input:focus {
  border-color: #e0777d;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.form-check-input:checked {
  background-color: #DC3545;
  border-color: #DC3545;
}
.nav-pills {
  --bs-nav-pills-link-active-bg: #DC3545;
}
.page-link {
  --bs-pagination-active-bg: #DC3545;
  --bs-pagination-active-border-color: #DC3545;
}
.page-link:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.dropdown-item.active, .dropdown-item:active {
  --bs-dropdown-link-active-bg: #DC3545;
}
.dropdown-item:focus, .dropdown-item:hover {
  --bs-dropdown-link-hover-bg: rgba(220, 53, 69, 0.095);
}

.card {
  --bs-card-border-color: #e5e5e5;
}

h5, .h5 {
  font-size: 1.09375rem;
}

.table {
  --bs-table-th-font-weight: 400;
}

.border-light {
  --bs-border-opacity: 1;
  border-color: #e5e5e5 !important;
}

.card-header {
  border-bottom: 1px solid #e5e5e5;
}

.link-primary {
  color: #DC3545 !important;
}
.link-primary:hover {
  color: #B02A37 !important;
}

/* === Mobile Dropdown Centering === */
@media (max-width: 575.98px) {
  #topbar .dropdown-menu {
    position: fixed !important;
    top: 60px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    width: 220px !important;
    margin: 0 !important;
    z-index: 1050 !important;
  }
  #topbar #notifMenu {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overflow-x: hidden !important;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  }
  #notifList {
    max-height: none !important;
  }
}

/* === Responsive Search Group (Members Toolbar) === */
.search-group {
  flex: 1 1 200px;
  max-width: 320px;
}

@media (max-width: 575.98px) {
  .search-group {
    max-width: 100%;
  }
}
