:root {
  --app-primary: #1c2541;
  --app-primary-rgb: 28, 37, 65;
  --app-primary-hover: #111936;
  --app-primary-active: #0b1227;
  --bs-primary: #1c2541;
  --bs-primary-rgb: 28, 37, 65;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
}

.card {
  border-radius: 0.75rem;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.card-header {
  border-top-left-radius: 0.75rem !important;
  border-top-right-radius: 0.75rem !important;
}

.table th {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge {
  font-weight: 500;
  padding: 0.4em 0.7em;
  border-radius: 0.375rem;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
  border-radius: 0.5rem;
}

/* Bootstrap 5.1 compila as cores dos botões diretamente no CSS.
   Estes estados mantêm os componentes primários na paleta da aplicação. */
.btn-primary {
  color: #fff;
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover {
  color: #fff;
  background-color: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
}

.btn-check:focus + .btn-primary,
.btn-primary:focus {
  color: #fff;
  background-color: var(--app-primary-hover);
  border-color: var(--app-primary-hover);
  box-shadow: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.3);
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--app-primary-active);
  border-color: var(--app-primary-active);
}

.btn-check:checked + .btn-primary:focus,
.btn-check:active + .btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.3);
}

.btn-primary:disabled,
.btn-primary.disabled {
  color: #fff;
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-outline-primary {
  color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
  color: #fff;
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.3);
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  color: var(--app-primary);
  background-color: transparent;
}

.form-control, .form-select {
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
}

.form-control:focus, .form-select:focus {
  border-color: rgba(var(--app-primary-rgb), 0.62);
  box-shadow: 0 0 0 0.2rem rgba(var(--app-primary-rgb), 0.15);
}

.password-field {
  position: relative;
}

.password-field > .form-control {
  padding-right: 2.75rem;
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
}

.password-toggle {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.75rem;
  border: 0;
  border-left: 1px solid #ced4da;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  background-color: #e9ecef;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.password-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 0.25rem;
}
.plan-feature-locked {
    color: #495057 !important;
    background: linear-gradient(110deg, rgba(108, 117, 125, .12), rgba(108, 117, 125, .04));
    border-radius: .4rem;
}

.plan-feature-locked:hover,
.plan-feature-locked:focus-visible {
    color: #212529 !important;
    background: linear-gradient(110deg, rgba(108, 117, 125, .20), rgba(108, 117, 125, .08));
}

.navbar .plan-feature-locked {
    color: rgba(255, 255, 255, .72) !important;
    background: linear-gradient(110deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
}

.navbar .plan-feature-locked:hover,
.navbar .plan-feature-locked:focus-visible {
    color: #fff !important;
    background: linear-gradient(110deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
}

.plan-access-card {
    max-width: 38rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.5rem rgba(23, 43, 77, .08);
}

.plan-access-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    place-items: center;
    color: #495057;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-radius: 50%;
    font-size: 1.5rem;
}

/* O conjunto de ícones local ainda não inclui bi-fork-knife. */
.bi-fork-knife::before {
    content: "🍴";
    font-family: system-ui, sans-serif !important;
}
