/* Avatar */
.avatar {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
}

/* Avatar Size */
.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 */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-indicators {
  position: relative;
}

.avatar-indicators:before {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 5%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  border: 2px solid #fff;
  display: table;
}

.avatar-xxl.avatar-indicators:before {
  bottom: 5px;
  right: 17%;
  width: 16%;
  height: 16%;
}

/* Avatar indicators */
.avatar-offline:before {
  background-color: #a3a3a3;
}

.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 */
.avatar-initials {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  text-transform: uppercase;
}

/* Color variant */
.avatar-primary .avatar-initials {
  color: #fff;
  background-color: #E66239;
}

.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-group .avatar + .avatar {
  margin-left: -1.2rem;
}

.avatar-group .avatar:hover {
  z-index: 2;
}

/* Avatar border */
.avatar-group img,
.avatar-group .avatar .avatar-initials {
  border: 2px solid #fff;
}

/* Border dashed */
.border-dashed {
  --ds-border-style: dashed;
}

/* Timeline Vertical */
.timeline-vertical {
  position: relative;
}

.timeline-vertical .timeline-item .timeline-bar {
  position: absolute;
  height: 100px;
  left: 5px;
  top: 24px;
}

/* Timeline Vertical Height */
.timeline-vertical-height .timeline-item .timeline-bar {
  height: calc(100% - 1rem) !important;
}

/* Vertical Border */
.vr {
  display: inline-block;
  align-self: stretch;
  width: 1px;
  min-height: 1em;
  background-color: #e5e5e5 !important;
  opacity: 0.25;
}

/* Button Icon */
.btn-icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 0.92969rem;
  font-weight: 400;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

/* Extra Small */
.btn-icon.btn-xs {
  font-size: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
}

/* Small */
.btn-icon.btn-sm {
  font-size: 0.875rem;
  width: 2.1875rem;
  height: 2.1875rem;
}

/* Large */
.btn-icon.btn-lg {
  font-size: 1rem;
  width: 3.36875rem;
  height: 3.36875rem;
}

/* Icon Sizes */

.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 */

.icon-shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

/* Overlay */

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

.overlay.show {
  display: block;
}

/* Sidebar */

.sidebar {
  width: 240px;
  background: #ffffff;
  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 */

.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,
.sidebar .nav-link.active,
.sidebar .menu-item.active > .nav-link {
  color: var(--primary-color);
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.sidebar .nav-link .ti {
  font-size: 18px;
}

/* Sidebar Text */

.sidebar .nav-text {
  transition: opacity 0.2s;
}

/* Logo Area */

.sidebar .logo-area {
  position: absolute;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 17px;
  color: #262626;
  border-bottom: 1px solid #e5e5e5;
}

/* Sidebar Collapsed */

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .nav-link {
  margin: 0;
  background-color: transparent;
  padding: 8px 18px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text {
  display: none;
}

/* Topbar */

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

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

/* Content */

.content {
  margin-left: 240px;
  margin-top: 60px;
  padding: 1.5rem;
}

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

/* Responsive */

@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;
  }
}
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    display: none !important;
}
/* image preview */
.file-input {
  display: none !important;
}
.photo-preview-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ngo-photo-preview-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.photo-preview-wrapper {
  position: relative;
  margin: 5px;
  max-width: 100px;
  max-height: 100px;
}

.photos-preview {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100px;
  height: 100px;
}
#main-image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.thumbnail-photos-preview {
  /* border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 200px;
  height: 100px; */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.image-upload {
  border: 1px solid #ccc;
  padding:15px;
  height: 440px;
  display: flex;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
}

img#main-image-preview{
  max-width: 100%;
  max-height: 100%;
}
.photo-preview-wrapper {
    position: relative;
    display: inline-block;
}

.close-btn {
      position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: red;
    color: white;
    font-size: 17px;
    cursor: pointer;
    line-height: 1;
    padding: 1px;
}


.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    pointer-events: none;
}
.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    cursor: pointer;
     position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

