/* =========================
   Projects Container Styles
   ========================= */
.projects-container {
  background-color: #000 !important;
  padding: 40px 50px;
  border-radius: 16px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 8px 30px rgba(255, 46, 111, 0.3);
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
}
.projects-form-container {
  background-color: #000 !important;
  padding: 40px 50px;
  border-radius: 16px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 8px 30px rgba(255, 46, 111, 0.3);
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
}
.projects-container h2 {
  color: #ff2e6f;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 0 12px rgba(255, 105, 180, 0.5);
  text-align: center;
}

/* Edit page narrower */
.projects-container.edit {
  max-width: 900px;
}

.projects-container.edit h2 {
  font-size: 32px;
  margin-bottom: 28px;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* =========================
   Buttons inside Projects Container (General Styles)
   ========================= */
.projects-container .btn-success,
.projects-container .btn-new-type, /* This seems to be a success-like button */
.projects-container .btn-back,
.projects-container .btn-primary,   /* Added .btn-primary for consistency */
.projects-container .btn-secondary, /* Added .btn-secondary for consistency */

.projects-container form input[type="submit"] {
  font-family: 'Courier New', monospace !important; /* Important for global override */
  font-weight: 700 !important;
  color: #fff !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important; /* Unified transition */
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  padding: 12px 22px !important; /* Unified padding */
  font-size: 16px !important; /* Unified font size */
}
.projects-container .form-buttons {
  display: flex !important;
  justify-content: flex-start !important; /* Align to left */
  gap: 16px !important; /* Space between buttons */
  margin-top: 20px !important; /* Space above buttons */
}
/* Primary Button (Equivalent to a general submit/action) */
.projects-container .btn-primary,
.projects-container form button,
.projects-container form input[type="submit"] {
  background-color: #ff2e6f !important;
  border: none !important;
}

.projects-container .btn-primary:hover,
.projects-container form button:hover,
.projects-container form input[type="submit"]:hover {
  background: linear-gradient(135deg, #e82a64, #e82a64) !important; /* Darker pink */
  box-shadow: 0 0 8px #ff2e6f !important; /* Consistent box-shadow */
  transform: scale(1.03) !important; /* Consistent transform */
}


/* Secondary Button (for Cancel/Back in forms if used) */
.projects-container .btn-secondary {
  background-color: transparent !important;
  color: #ff2e6f !important;
  border: 2px solid #ff2e6f !important;
}

.projects-container .btn-secondary:hover {
  background-color: #ff2e6f !important;
  color: #000 !important;
  border-color: #ff2e6f !important;
  transform: scale(1.03) !important;
}

/* Success Button (for New/Create actions) */
.projects-container .btn-success {
  background-color: #ff2e6f !important; /* Changed to primary pink */
  border: none !important;
  box-shadow: none !important; /* Remove original success box-shadow if not desired */
}

.projects-container .btn-success:hover {
  background: linear-gradient(135deg, #ff2e6f, #ff2e6f) !important;
  box-shadow: 0 0 8px #ff2e6f !important; /* Consistent box-shadow */
  transform: scale(1.03) !important; /* Consistent transform */
}

/* Specific new-type button (if distinct from general success) */
/* Re-evaluate if btn-new-type is truly distinct or can be replaced by btn-success */
.projects-container .btn-new-type {
  background-color: #28a745 !important; /* Changed to primary pink for consistency */
  border: none !important;
}

.projects-container .btn-new-type:hover {
  background-color: #e82a64 !important; /* Darker pink on hover */
  transform: scale(1.03) !important;
  box-shadow: 0 0 8px #ff2e6f !important; /* Consistent box-shadow */
}


/* Back Button */
.projects-container .btn-back {
  background-color: transparent !important;
  border: 2px solid #ff2e6f !important; /* Consistent pink border */
  color: #ff2e6f !important; /* Consistent pink color */
  padding: 10px 18px !important; /* Adjust padding for back button */
  font-size: 16px !important; /* Consistent font size */
  font-weight: 700 !important; /* Consistent font weight */
  margin-top: 20px !important; /* Consistent margin-top */
}

.projects-container .btn-back:hover {
  background-color: #ff2e6f !important;
  color: #000 !important; /* Black text on hover for contrast */
  border-color: #ff2e6f !important;
  transform: scale(1.03) !important; /* Consistent transform */
}


/* =========================
   Table inside Projects
   ========================= */
.projects-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  background-color: #111 !important;
  border-radius: 16px;
}

.projects-container table thead tr {
  background: #ff2e6f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.4);
}

.projects-container table tbody tr {
  background: #111 !important;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  color: #f1f1f1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.projects-container table tbody tr:hover {
  background: rgba(255, 105, 180, 0.12);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.3);
}

.projects-container table tbody td {
  padding: 16px 20px;
  font-size: 15px;
  vertical-align: middle;
}

/* =========================
   Action Buttons inside Projects Table
   ========================= */
.projects-container .action-buttons {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important; /* Ensure no background */
  border: none !important; /* No border on container */
}

/* Make button_to form inline so Delete button stays in the same row */
.projects-container .delete-form { /* Added container prefix for specificity */
  display: inline-block;
  margin: 0;
}

/* Edit Button */
.projects-container .btn-edit {
  background-color: #ff2e6f !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 22px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: 'Courier New', monospace !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important; /* Added transform transition */
}

.projects-container .btn-edit:hover {
  background-color: #e82a64 !important;
  color: #000 !important;
  transform: scale(1.03) !important; /* Consistent transform */
}

/* Delete Button styling */
.projects-container .btn-delete {
  background-color: transparent !important; /* Consistent with secondary/delete style */
  color: #ff2e6f !important; /* Consistent pink color */
  border: 2px solid #ff2e6f !important; /* Consistent pink border */
  padding: 12px 22px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: 'Courier New', monospace !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease !important; /* Added transform transition */
}

.projects-container .btn-delete:hover {
  background-color: #ff2e6f !important; /* Pink background on hover */
  color: #000 !important; /* Black text on hover */
  transform: scale(1.03) !important; /* Consistent transform */
}


/* =========================
   Form inside Projects
   ========================= */
.projects-container form input[type="text"],
.projects-container form input[type="date"],
.projects-container form select,
.projects-container form textarea {
  background-color: #111;
  border: 1.5px solid #ff2e6f; /* Changed to 1.5px for consistency */
  border-radius: 6px; /* Changed to 6px for consistency */
  padding: 10px 12px; /* Changed for consistency */
  color: #fff; /* Changed to #fff for consistency */
  font-size: 14px; /* Changed for consistency */
  width: 100%;
  margin-bottom: 20px; /* Changed for consistency */
  font-family: 'Courier New', monospace;
  transition: border-color 0.3s ease, background-color 0.3s ease; /* Added background-color transition */
}

.projects-container form input:focus,
.projects-container form select:focus,
.projects-container form textarea:focus {
  outline: none;
  border-color: #e82a64; /* Consistent focus border color */
  box-shadow: none; /* Removed box-shadow on focus for inputs, consistent with other forms */
  background-color: #111; /* Keep background consistent on focus */
}

/* Form Submit Button (Unified with primary button style) */
.projects-container form button,
.projects-container form input[type="submit"] {
  background-color: #ff2e6f !important; /* Explicitly set to primary pink */
  border: none !important;
  padding: 12px 22px !important; /* Unified padding */
  font-size: 16px !important; /* Unified font size */
  /* Other shared styles are already handled by the general button block above */
}

.projects-container form button:hover,
.projects-container form input[type="submit"]:hover {
  background: linear-gradient(135deg, #e82a64, #e82a64) !important; /* Consistent darker pink */
  transform: scale(1.03) !important; /* Consistent transform */
  box-shadow: 0 0 8px #ff2e6f !important; /* Consistent box-shadow */
}


/* =========================
   Project Details Page
   ========================= */
.projects-container .details-container {
  max-width: 800px;
  margin: 40px auto;
  background-color: #000; /* Changed to #000 for consistency */
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 86, 0.4);
  color: #fff;
  font-family: 'Courier New', monospace; /* Added font-family for consistency */
}

.projects-container .details-container h2 {
  color: #ff2e6f;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center; /* Centered for consistency */
  font-size: 36px; /* Larger font size for consistency */
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.5); /* Added text-shadow */
}

.projects-container .detail-row {
  margin-bottom: 20px;
}

.projects-container .detail-label {
  font-weight: 700;
  color: #d6d6d6; /* Changed to #d6d6d6 for consistency with other labels */
  margin-right: 10px;
  font-size: 14px; /* Consistent font size */
}