
#loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #a7d7ff;
    z-index: 9999;
  }
  
  .lds-hourglass {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
  }
  
  
  @keyframes rotate-logo {
    0% {
      transform: rotate(0deg);
      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    50% {
      transform: rotate(900deg);
      animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    100% {
      transform: rotate(1800deg);
    }
  }

.bg-mithra {
  background-color: #007bff !important;
}

.bg-samithi {
  background-color: #ec2941 !important;
}
.bg-active {
  background-color: #31ce36 !important;
}
.bg-suspended {
  background-color: #ffad46 !important;
}
.bg-matured {
  background-color: #bf0a6e !important;
}
.bg-notmatured {
  background-color: #a9a3a0 !important;
}
.bg-plus_member {
  background-color: #f55f08 !important;
}
.bg-migrated {
  background-color: #6861ce !important;
}
.eligibility-box {
        padding: 10px;
        border-radius: 6px;
        margin-top: 10px;
        font-weight: bold;
        color: white;
        display: none;
    }
    .eligible-green { background-color: #28a745; border-left: 5px solid #1e7e34; }
    .not-eligible-red { background-color: #dc3545; border-left: 5px solid #b52a36; }

    .benefit-category-row { display: flex; flex-wrap: wrap; gap: 10px; }
    .category-card {
        cursor: pointer;
        border: 2px solid #ccc;
        border-radius: 8px;
        padding: 10px 15px;
        text-align: center;
        transition: all 0.15s;
        user-select: none;
        min-width: 120px;
    }
    .category-card.selected {
        border-color: #28a745;
        background-color: #e6ffe6;
    }
    .category-card input { display: none; }

    #benefit_category_row h1 { text-align: center; width: 100%; margin-bottom: 10px; }

    #death_upload_container h5, #category_form_container h5 { margin-bottom: 10px; }

    
    .file-upload-row { display: flex; gap: 10px; margin-bottom: 5px; align-items: center; }
    .file-upload-row input[type="text"] { flex: 2; }
    .file-upload-row input[type="file"] { flex: 3; }

    .small-btn { padding: .25rem .5rem; font-size: .85rem; }

    /* Validation styles */
    .is-invalid { border-color: #dc3545 !important; box-shadow: none; }
    .invalid-feedback { color: #dc3545; font-size: 0.85rem; margin-top: 4px; display: none; }
    .invalid-feedback.show { display: block; }


.collection-mode {
    background-color: #f9faec !important;
    color: #414345 !important;
    border-color: #000 !important;
}

.collection-member-type {
    background-color: #ffe0d5 !important;
    color: #414345 !important;
    border-color: #000 !important;
}

.collection-commission {
    background-color: #ceffd0 !important;
    color: #414345 !important;
    border-color: #000 !important;
}

.collection-total {
    background-color: #dbf7d5 !important;
    color: #414345 !important;
    border-color: #000 !important;
}

.expense-total {
    background-color: #ffc6c6 !important;
    color: #414345 !important;
    border-color: #000 !important;
}

.balance-collection {
    background-color: #ffe1c6 !important;
    color: #414345 !important;
    border-color: #000 !important;
}

.balance-in-percentage {
    background-color: #ff9c45 !important;
    color: #414345 !important;
    border-color: #000 !important;
}

/* WhatsApp-like container */
.notif-img-wrapper {
  width: 22rem;              /* consistent size */
  aspect-ratio: 4 / 5;       /* WhatsApp-style */
  background: #ffffff27;          /* safe background */
  border-radius: 12px;
  overflow: hidden;
  margin: auto;
}

/* Image behavior */
.notif-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 576px) {
  .notif-img-wrapper {
    width: 90vw;
    max-width: 22rem;
  }
}