/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.pagy-nav-container {
  margin-top: 20px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.styled-table th,
.styled-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

.styled-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #34495e;
}

.styled-table tbody tr:hover {
  background-color: #f1f1f1;
}

.styled-table a {
  color: #3498db;
  text-decoration: none;
}

.styled-table a:hover {
  text-decoration: underline;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 15px;
  color: white;
  font-size: 0.85em;
  font-weight: 500;
  text-transform: capitalize;
}

.status-active { background-color: #2ecc71; }
.status-retired { background-color: #95a5a6; }
.status-insurance { background-color: #3498db; }
.status-hold { background-color: #f1c40f; }
.status-suspended { background-color: #e74c3c; }

/* Form Styles */
.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.member-form h2, .error-summary h2 {
  color: #c0392b;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.error-summary {
  background: #fbecec;
  border: 1px solid #e74c3c;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #34495e;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-secondary {
  background-color: #ecf0f1;
  color: #34495e;
  border-color: #bdc3c7;
}

.btn-secondary:hover {
  background-color: #dadedf;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.btn-outline-primary {
  color: #3498db;
  border-color: #3498db;
}

.btn-outline-primary:hover {
  background-color: #3498db;
  color: white;
}

.btn-outline-danger {
  color: #e74c3c;
  border-color: #e74c3c;
}

.btn-outline-danger:hover {
  background-color: #e74c3c;
  color: white;
}

/* Pagination Styles */
.pagy.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 20px;
}
.pagy.nav a, .pagy.nav span {
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  background-color: #fff;
  color: #3498db;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease-in-out;
}
.pagy.nav a:hover {
  background-color: #f0f8ff;
  border-color: #3498db;
}
.pagy.nav .current {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
  font-weight: bold;
  pointer-events: none;
}
.pagy.nav .disabled {
  color: #bdc3c7;
  background-color: #f8f9fa;
  pointer-events: none;
}
.pagy.nav .gap {
  border: none;
  background: none;
  color: #7f8c8d;
  pointer-events: none;
}
