/* General Reset & Overflow Fix */
html, body {
  overflow-x: hidden !important;
}

/* Page Layout */
.needy-dashboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857; /* Tailwind green-700 */
}

.create-btn {
  background-color: #047857; /* Tailwind indigo-600 */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.create-btn:hover {
  background-color: #047857;
}

/* Campaign Cards */
.campaigns-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campaign-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 5px solid #16a34a; /* green-600 accent */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.campaign-title {
  font-weight: 600;
  color: #111827;
  font-size: 1.1rem;
  margin: 0;
}

.status-badge {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

/* Status Colors */
.status-badge.pending {
  background-color: #fef3c7;
  color: #d97706;
}

.status-badge.approved {
  background-color: #d1fae5;
  color: #059669;
}

.status-badge.rejected {
  background-color: #fee2e2;
  color: #dc2626;
}

.campaign-stats {
  color: #4b5563;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.edit-link {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.75rem;
  display: inline-block;
}

.edit-link:hover {
  text-decoration: underline;
}

/* Empty state */
.no-campaigns {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  margin-top: 2rem;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .campaign-card {
    padding: 1rem;
  }
}

/* create css */


/* Page layout */
.create-campaign-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.page-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857; /* Tailwind green-700 */
  margin-bottom: 2rem;
}

/* Form Styling */
.create-form {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  outline: none;
}

/* Error message */
.error {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Submit Button */
.submit-btn {
  display: block;
  width: 100%;
  background-color: #16a34a; /* green-600 */
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #15803d;
}

/* Responsive */
@media (max-width: 640px) {
  .page-title {
    font-size: 1.5rem;
  }

  .create-form {
    padding: 1.5rem;
  }
}


/* edit css */



/* Layout container */
.edit-campaign-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1rem;
  background-color: #ffffff;
}

/* Title */
.page-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857; /* green-700 */
  margin-bottom: 2rem;
}

/* Form */
.edit-form {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  outline: none;
}

/* Error message */
.error {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Image Preview */
.image-preview {
  margin-top: 1rem;
  text-align: center;
}

.preview-label {
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.preview-img {
  max-width: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Update Button */
.update-btn {
  display: block;
  width: 100%;
  background-color: #0284c7; /* blue-600 */
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.update-btn:hover {
  background-color: #0369a1;
}

/* Responsive */
@media (max-width: 640px) {
  .page-title {
    font-size: 1.5rem;
  }

  .edit-form {
    padding: 1.5rem;
  }

  .preview-img {
    max-width: 100%;
  }
}
