
.residentlist-section {
  padding: 24px;
  background-color: #f8f9fa;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.residentlist-section .page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.residentlist-section .page-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0 0 32px 0;
}

/* Card Container */
.residentlist-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.residentlist-card .userlist-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  padding: 24px 24px 16px 24px;
}

/* Table Styles */
.residentlist-section .table {
  width: 100%;
}

.residentlist-section .table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 80px;
  gap: 16px;
  padding: 16px 24px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.residentlist-section .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 80px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  transition: background-color 0.2s ease;
}

.residentlist-section .table-row:hover {
  background-color: #f8f9fa;
}

.residentlist-section .table-row:last-child {
  border-bottom: none;
}

/* User Info Styles */
.residentlist-section .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.residentlist-section .user-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.residentlist-section .user-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
}

.residentlist-section .user-info span:not(.user-icon) {
  font-weight: 500;
  color: #1a1a1a;
}

/* Action Button */
.residentlist-section .add-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.residentlist-section .add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.residentlist-section .add-btn:active {
  transform: translateY(0);
}


/* Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Popup Box */
.popup-box {
  background: #f1f1f1;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-box h2 {
  margin: 0;
  font-size: 20px;
  margin-bottom: 5px;
}

.popup-box p {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.popup-box select {
  padding: 10px;
  width: 60%;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.submit-btn {
  padding: 6px 12px;
  font-size: 13px;
  background: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}



@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.residentlist-section .popup-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  text-align: center;
}

.residentlist-section .popup-subtext {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 32px 0;
  text-align: center;
  line-height: 1.5;
}

/* Form Styles */
.residentlist-section .popup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.residentlist-section .popup-form label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  margin-bottom: 8px;
}

.residentlist-section .popup-form select {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.residentlist-section .popup-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.residentlist-section .submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  display: inline-block;
   width: auto !important;
}

.residentlist-section .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.residentlist-section .submit-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .residentlist-section {
    padding: 16px;
  }
  
  .residentlist-section .table-header,
  .residentlist-section .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
  
  .residentlist-section .table-header > div,
  .residentlist-section .table-row > div {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .residentlist-section .table-header > div:before,
  .residentlist-section .table-row > div:not(.user-info):before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  
  .residentlist-section .popup-box {
    margin: 16px;
    padding: 24px;
  }
}
.list-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 15px;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}


      /* Pagination Styles */
      .pagination-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eee;
      }

      .pagination-info {
        font-size: 14px;
        color: #666;
      }

      .pagination-controls {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .pagination-btn {
        padding: 8px 16px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
      }

      .pagination-btn:hover:not(:disabled) {
        background: #f8f9fa;
        border-color: #007bff;
      }

      .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      .pagination-numbers {
        display: flex;
        gap: 5px;
      }

      .pagination-number {
        width: 36px;
        height: 36px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
      }

      .pagination-number:hover {
        background: #f8f9fa;
        border-color: #007bff;
      }

      .pagination-number.active {
        background: #007bff;
        color: white;
        border-color: #007bff;
      }

      .pagination-number.active:hover {
        background: #0056b3;
      }
      .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.popup-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.popup-box {
  position: relative; 
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 550px;
  max-width: 90%;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  font-weight: bold;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}
.popup-box form {
  display: flex;
  align-items: center;
  gap: 10px; 

}

.popup-box label {
  margin-right: 8px;
  white-space: nowrap;
}

.popup-box select {
  flex: 1; 
}

.popup-box .submit-btn {
  flex-shrink: 0;
}
/* Overlay covers full screen */
/* Popup box */
.popup-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 350px;      
  max-width: 90%;     
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
}

/* Form layout */
.popup-box form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* Dropdown */
.popup-box select {
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  width: 100%;
  box-sizing: border-box;
}

/* Centered Submit Button */
.popup-box .submit-btn {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 auto;   
  display: block;   
  width: fit-content;
}

/* Mobile view adjustments */
@media (max-width: 480px) {
  .popup-box {
    width: 90%;
    max-width: 320px;
    padding: 15px;
  }

  .popup-box h2 {
    font-size: 18px;
  }

  .popup-box p {
    font-size: 14px;
  }
}
/* Move DataTables search bar to left side on laptop/desktop */
@media (min-width: 992px) {
  /* The whole filter wrapper */
  div.dataTables_wrapper .dataTables_filter {
    float: left !important;   /* override default float right */
    text-align: left !important;
  }

  /* Align label + input nicely */
  div.dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  /* Remove default margin from input */
  div.dataTables_wrapper .dataTables_filter input {
    margin-left: 0 !important;
  }
}
/* Add left margin to DataTables search bar */
.dataTables_filter {
  margin-left: 10px; /* adjust the value as needed */
}
