/* Anthronous layout customizations - Professional theme enhancements */
/* Map content_wrap/content_inner to theme_page structure */
.content_wrap {
  padding-top: 4rem;
  padding-left: 16rem;
  min-height: calc(100vh - 2.75rem);
  z-index: 8;
  transition: padding 0.3s cubic-bezier(0.8, 0, 0.2, 1);
}

.aside_collapsed .content_wrap {
  padding-left: 4.5rem;
}

.content_inner {
  padding: 1.5rem;
  max-width: 113rem;
}

/* Header logo sizing for Anthronous logo */
.theme_logo .main_logo-img[src*=anthronous_logo] {
  height: 2.75rem;
  width: auto;
}

/* ===== Professional Form Styling ===== */
/* Form labels - consistent, readable */
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  display: block;
}

/* Form controls - modern, professional */
.theme_content-wrapper .form-control,
.theme_content-wrapper .form-select, .card-body .form-control,
.card-body .form-select, .content_inner .form-control,
.content_inner .form-select {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #111827;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.theme_content-wrapper .form-control:focus,
.theme_content-wrapper .form-select:focus, .card-body .form-control:focus,
.card-body .form-select:focus, .content_inner .form-control:focus,
.content_inner .form-select:focus {
  border-color: #1f2533;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(31, 37, 51, 0.2);
}
.theme_content-wrapper .form-control::placeholder, .card-body .form-control::placeholder, .content_inner .form-control::placeholder {
  color: #9ca3af;
}
.theme_content-wrapper textarea.form-control, .card-body textarea.form-control, .content_inner textarea.form-control {
  min-height: 5rem;
  padding: 0.5rem 0.75rem;
}

/* form-select (Bootstrap 5) - map to Bootstrap 4 select styling */
.form-select {
  display: block;
  width: 100%;
  appearance: none;
  background-image: url("../images/chevron_down.svg");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75em;
  padding-right: 2.25rem;
}
.form-select::-ms-expand {
  display: none;
}

/* Form groups - consistent spacing */
.mb-3 {
  margin-bottom: 1rem !important;
}

/* Cards - elevated, professional */
.theme_content-wrapper .card,
.content_inner .card {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}
.theme_content-wrapper .card .card-header,
.content_inner .card .card-header {
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0.5rem 0.5rem 0 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Form actions - buttons aligned right */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ===== Theme Buttons - consistent across all pages ===== */
.btn-primary {
  background-color: #1f2533 !important;
  border-color: #1f2533 !important;
  color: #fff !important;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-primary:hover {
  background-color: #2d3648 !important;
  border-color: #2d3648 !important;
  color: #fff !important;
}

.btn-secondary {
  border-radius: 0.375rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  background-color: #fff;
  color: #374151;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.btn-outline-primary {
  border-color: #1f2533;
  color: #1f2533;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.btn-outline-primary:hover {
  background-color: #1f2533;
  border-color: #1f2533;
  color: #fff;
}

.btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.btn-link {
  color: #1f2533;
  text-decoration: none;
  font-weight: 500;
}
.btn-link:hover {
  color: #2d3648;
  text-decoration: underline;
}

/* Invalid state - clear feedback */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Page head - subtle refinement */
.theme_page-head {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Form check - checkboxes and radios */
.form-check {
  padding-left: 1.5rem;
  min-height: 1.25rem;
}
.form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}
.form-check-input:checked {
  background-color: #1f2533;
  border-color: #1f2533;
}
.form-check-label {
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

/* Permission group cards - roles create/edit */
.permission-group-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}
.permission-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}
.permission-group-title {
  text-transform: capitalize;
}
.permission-group-toggles .btn-link-sm {
  background: none;
  border: none;
  color: #1f2533;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.permission-group-toggles .btn-link-sm:hover {
  text-decoration: underline;
}
.permission-group-body {
  padding: 0.75rem 1rem;
}
.permission-item {
  margin-bottom: 0.5rem;
}
.permission-item:last-child {
  margin-bottom: 0;
}
.badge-info {
  background-color: #1f2533;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Activity log badges */
.badge-success {
  background-color: #28a745;
  color: #fff;
}
.badge-primary {
  background-color: #1f2533;
  color: #fff;
}
.badge-danger {
  background-color: #dc3545;
  color: #fff;
}
.badge-secondary {
  background-color: #6c757d;
  color: #fff;
}
