/* ============================================================
   SG.CLUBES — Forms & Layout Styles
   Estilos globales para formularios, breadcrumb y layouts
   ============================================================ */

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.col-sm-6 .breadcrumb {
  justify-content: flex-end;
}

.breadcrumb-item {
  font-size: 0.85rem;
  color: #64748b;
}

.breadcrumb-item a {
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #0369a1;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #475569;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding: 0 0.5rem;
  color: #94a3b8;
  content: "/";
}

/* ── Form Labels ────────────────────────────────────────── */
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: #1e293b;
  letter-spacing: -0.01em;
}

/* ── Form Groups ────────────────────────────────────────── */
.mb-3 {
  margin-bottom: 1rem;
}

/* ── Form Controls ───────────────────────────────────────– */
.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control-sm,
.form-select-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 4px;
}

.form-select-sm {
  padding-right: 1.5rem;
  background-position: right 0.3rem center;
  background-size: 16px 12px;
}

/* ── Date Input (Calendar) ───────────────────────────────– */
input[type="date"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 4px;
  margin-right: 2px;
  filter: invert(0.8);
}

/* ── Error Messages ──────────────────────────────────────– */
.text-danger {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.is-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.is-invalid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ── Form Row Layout ────────────────────────────────────── */
.row.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
  width: 100%;
}

.row.cols-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
  width: 100%;
}

.row.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .row.cols-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .row.cols-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .row.cols-1 {
    gap: 1rem;
  }
}

/* ── Card Styling ────────────────────────────────────────– */
.card {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.01em;
}

.card-body {
  padding: 1.5rem;
}

/* ── Button Styling ──────────────────────────────────────– */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #0284c7;
  color: white;
  border-color: #0284c7;
}

.btn-primary:hover {
  background: #0369a1;
  border-color: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
}

.btn-success {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
}

.w-100 {
  width: 100%;
}

/* ── Actions Container ───────────────────────────────────– */
.actions-container {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 576px) {
  .actions-container {
    flex-direction: column;
  }

  .actions-container .btn {
    width: 100%;
  }
}

/* ── Horizontal Rule ────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  margin-top: 1rem;
}
