h1 {
    text-align: center;
    color: #1b5e20;
    margin-bottom: 30px;
  }

  h3 {
    color: #1b5e20;
    margin-bottom: 15px;
  }

  /* 📄 Report Form Styling */
  form {
    border-radius: 10px;
    
  }

  form label {
    font-weight: 600;
    color: #333;
  }

  form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 15px;
  }

  form button {
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
  }

  

  /* 📊 Table Styling */
  table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  }

  th, td {
    padding: 12px 15px;
  }

  th {
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
  }
td {
    font-size: 12px;
}
  tr:nth-child(even) {
    background-color: #f3f6fc;
  }

  tr:hover {
    background-color: #e6ecff;
    transition: background 0.3s ease;
  }


  /* 🏷 Status Badges */
  .badge-success {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .badge-warning {
    background-color: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 6px;
  }

  .badge-failed {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
  }

  /* 🔙 Back Button */
  .back-link {
    display: inline-block;
    margin-top: 30px;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
  }

  .back-link:hover {
    background: #495057;
  }

  .content-header {
    margin-bottom: 20px;
    margin-left: 74%;
}


/* Make table header sticky and body scrollable */
.sticky-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  display: block;
  max-height: 500px;      /* Height of visible area */
  overflow-y: auto;       /* Scroll only the body */
}

/* Sticky header styling */
.sticky-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Ensure header background is visible when sticky */
.sticky-table thead th {

  text-align: center;
  vertical-align: middle;
}

/* Make sure rows display properly */
.sticky-table tbody tr td {
  background: #fff;
}

/* Optional: hover and padding tweaks */
.sticky-table tbody tr:hover {
  background-color: #f6fff6;
}

  /* 📱 Responsive Design */
  @media (max-width: 768px) {
    form, table {
      width: 100%;
      font-size: 14px;
    }

    th, td {
      padding: 10px 8px;
    }
  }












   /* Form Styles */
    .form-container {
        background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .form-header {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .form-header h2 {
        color: #184d61;
        margin-bottom: 5px;
    }
    
    .progress-bar {
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
        position: relative;
    }
    
    .progress-bar::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        height: 2px;
        background: #e0e0e0;
        z-index: 0;
    }
    
    .progress-step {
        position: relative;
        z-index: 1;
        text-align: center;
    }
    
    .progress-step-circle {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #e0e0e0;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 5px;
        font-weight: 600;
        font-size: 0.8rem;
    }
    
    .progress-step.active .progress-step-circle {
        background: #184d61;
        color: white;
    }
    
    .progress-step-label {
        font-size: 0.7rem;
        color: #666;
    }
    
    .form-step {
        display: none;
    }
    
    .form-step.active {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    .form-step h5 {
        color: #184d61;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
    }
    
    .form-group input, .form-group select, .form-group textarea {
        width: 50% !important;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1rem;
    }
    
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
        border-color: #184d61;
        outline: none;
    }
    
    .form-group .checkbox-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .form-group .checkbox-group input {
        width: auto;
    }

 /* Align buttons (like View Donations) to the right inside their container */
.button-group {
  display: flex;
  justify-content: flex-end;  /* pushes button to right */
  margin-bottom: 15px;
  padding-right: 10px;
}

    
 .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

    
    .btn-primary {
        background: #184d61;
        color: white;
    }
    
    .btn-primary:hover {
        background: #0d3342;
    }
    
    .btn-secondary {
        background: #6c757d;
        color: white;
    }
    
    .btn-secondary:hover {
        background: #5a6268;
    }
    
    /* Placeholder Content */
    .placeholder-content {
        text-align: center;
        padding: 50px 20px;
        color: #666;
    }
    
    .placeholder-content i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #ccc;
    }
    
    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
   

  
.download-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.download-group {
  display: flex;
  flex-direction: column;
}

.download-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  font-size: 14px;
}

/* 🌿 Input styling — bottom border only */
.download-group input[type="date"],
.download-group input[type="text"] {
  border: none;
  border-bottom: 2px solid #198754; 
  padding: 8px 4px;
  font-size: 14px;
  width: 200px;
  outline: none;
  background-color: transparent;
  transition: border-color 0.3s ease;
}

.download-group input:focus {
  border-bottom-color: #0f5132; 
}

/* 🌿 Button style */
.download-btn {
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 25px;
}


    

/* ✅ Scrollable table wrapper */

/* Make the table wrapper scrollable */
.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #ddd;
  scroll-behavior: smooth;
}

/* Keep table wide so scrollbars stay visible */
.table-scroll-wrapper table {
  min-width: max-content;
  width: auto;
}

.table-scroll-wrapper th,
.table-scroll-wrapper td {
  white-space: nowrap;
  vertical-align: middle;
}

.pagination-container {
  margin-top: 10px;
  text-align: center;
}

.table-responsive{
  margin-top: -3% !important;
}

.card{
    --bs-card-bg: none !important;
}



/* Match Select2 with Bootstrap form-select */
    .select2-container .select2-selection--single {
        height: 38px !important;          /* same height as bootstrap input */
        padding: 6px 12px !important;
        border: 1px solid #ced4da !important;
        border-radius: 6px !important;    /* rounded corners */
        display: flex;
        align-items: center;
    }

    .select2-selection__arrow {
        height: 38px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px !important;     /* text vertically aligned */
        font-size: 14px;
        color: #495057;
    }

    /* Full width */
    .select2-container {
        width: 100% !important;
    }



    /* Mobile view fix */
@media (max-width: 755px) {
    .pagination-container {
        flex-direction: column;     /* stack nicely */
        gap: 6px;
    }

    .pagination-form {
        justify-content: center;
    }

    .pagination-btn-group {
        display: flex;
        gap: 10px;
    }
}



/* MAIN WRAPPER: force everything on ONE LINE */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;            /* small tight spacing */
    flex-wrap: nowrap;   /* do NOT allow line breaks */
    white-space: nowrap; /* prevent wrapping */
    margin: 10px 0;
}

/* Form inside should have no margin/padding */
.pagination-form {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make dropdown + buttons same height */
.pagination-container .form-select,
.pagination-container .btn {
    height: 32px !important;
    padding: 2px 8px !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Narrow dropdown width */
.pagination-container .form-select {
    width: 58px !important;
    min-width: 58px !important;
    text-align: center;
}

/* Compact label and text */
.pagination-container label,
.pagination-container span {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .pagination-container {
        gap: 4px;
    }
    .pagination-container .form-select,
    .pagination-container .btn {
        height: 28px !important;
        padding: 1px 6px !important;
        font-size: 13px !important;
    }
}



@media (max-width: 768px) {
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        max-width: 220px;
        margin-top: 15px;
    }}




    .action-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 35px;
    }

    .action-btn {
        padding: 12px 40px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: .3s ease;
        display: inline-block;
    }

    .save-btn {
        background: #0f7b34;
        color: white;
    }
    .save-btn:hover {
        background: #0c622a;
        transform: translateY(-2px);
    }

    .back-btn {
        background: #6b6f75;
        color: white;
    }
    .back-btn:hover {
        background: #4b4f54;
        transform: translateY(-2px);
    }

     /* MOBILE FIX */
    @media (max-width: 755px) {
        .action-buttons {
            flex-direction: column;
            width: 100%;
            align-items: center;
            gap: 15px;
        }
        .action-btn {
            width: 80%;
            text-align: center;
        }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .row { flex-direction: column; }
        .col-6 { width: 100%; }
        .container-box { padding: 30px; }
    }