/**
 * LocaTech — identidade visual
 * Principal: #FF9100 · Hover: #FFAB40 · Fundo: #F5F5F5
 */

:root {
  --locatech-primary: #FF9100;
  --locatech-primary-dark: #F57C00;
  --locatech-accent: #FFAB40;
  --locatech-bg: #F5F5F5;
  --locatech-primary-rgb: 255, 145, 0;
  /* Menu lateral — gradiente laranja (#FF9100) */
  --locatech-sidebar-from: #ff9100;
  --locatech-sidebar-to: #e65100;
}

/* Área de trabalho */
body,
.wrapper,
.content-wrapper {
  background-color: var(--locatech-bg) !important;
}

/* Bootstrap — primário */
.btn-primary {
  background-color: var(--locatech-primary);
  border-color: var(--locatech-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--locatech-accent);
  border-color: var(--locatech-primary);
  color: #fff;
}

.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
  background-color: var(--locatech-primary-dark);
  border-color: var(--locatech-primary-dark);
}

.btn-primary.disabled,
.btn-primary:disabled {
  background-color: var(--locatech-primary);
  border-color: var(--locatech-primary);
  opacity: 0.65;
}

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

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

.bg-primary {
  background-color: var(--locatech-primary) !important;
}

.text-primary {
  color: var(--locatech-primary) !important;
}

.border-primary {
  border-color: var(--locatech-primary) !important;
}

.badge-primary {
  background-color: var(--locatech-primary);
  color: #fff;
}

.page-item.active .page-link {
  background-color: var(--locatech-primary);
  border-color: var(--locatech-primary);
}

.page-link {
  color: var(--locatech-primary);
}

.page-link:hover {
  color: var(--locatech-primary-dark);
}

a.text-dark:hover {
  color: var(--locatech-primary) !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--locatech-primary);
  background-color: var(--locatech-primary);
}

/* Cartões AdminLTE */
.card-primary:not(.card-outline) > .card-header {
  background-color: var(--locatech-primary);
  border-color: var(--locatech-primary);
}

.card-outline.card-primary {
  border-top: 3px solid var(--locatech-primary);
}

.card-outline.card-primary > .card-header {
  border-bottom-color: rgba(var(--locatech-primary-rgb), 0.2);
}

/* Menu lateral — fundo em gradiente laranja #FF9100 */
.main-sidebar.sidebar-dark-primary,
.sidebar-dark-primary .sidebar {
  background: linear-gradient(
    180deg,
    var(--locatech-sidebar-from) 0%,
    var(--locatech-sidebar-to) 100%
  ) !important;
}

.sidebar-dark-primary .brand-link.border-bottom {
  border-bottom-color: rgba(var(--locatech-primary-rgb), 0.35) !important;
}

.sidebar-dark-primary .user-panel.border-bottom {
  border-bottom-color: rgba(var(--locatech-primary-rgb), 0.28) !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link .nav-icon {
  color: rgba(255, 255, 255, 0.75);
}

/* Barra lateral — estados ativo / hover */
.sidebar-dark-primary .brand-link {
  color: rgba(255, 255, 255, 0.95);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--locatech-primary);
  color: #fff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover:not(.active) {
  background-color: rgba(var(--locatech-primary-rgb), 0.28);
  color: #fff;
}

.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active:hover {
  background-color: rgba(var(--locatech-primary-rgb), 0.88);
  color: #fff;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--locatech-primary);
}

.dropdown-item:active {
  background-color: var(--locatech-primary);
}

.pagination-sm .page-link:focus,
.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--locatech-primary-rgb), 0.28);
}

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

.custom-select:focus {
  border-color: rgba(var(--locatech-primary-rgb), 0.55);
  box-shadow: 0 0 0 0.2rem rgba(var(--locatech-primary-rgb), 0.15);
}

/* Login — página dedicada */
body.login-page.locatech-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(
    155deg,
    #eef1f4 0%,
    #f7f5f3 38%,
    #fff8f0 72%,
    #ffe8cc 100%
  ) !important;
  position: relative;
  overflow-x: hidden;
}

body.login-page.locatech-login-body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto auto;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--locatech-primary-rgb), 0.14) 0%,
    rgba(var(--locatech-primary-rgb), 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

body.login-page.locatech-login-body::after {
  content: "";
  position: fixed;
  inset: auto auto -25% -15%;
  width: min(85vw, 640px);
  height: min(85vw, 640px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(230, 81, 0, 0.06) 0%,
    rgba(230, 81, 0, 0) 65%
  );
  pointer-events: none;
  z-index: 0;
}

.locatech-login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.locatech-login-box {
  width: 100%;
  margin: 0 auto;
}

/* AdminLTE fixa .login-box a 360px — alargamos para o novo layout */
body.login-page.locatech-login-body .login-box.locatech-login-box {
  width: 100%;
  max-width: 440px;
  margin-top: 0;
  margin-bottom: 0;
}

.locatech-login-brand {
  margin-bottom: 1.75rem;
}

.locatech-login-logo {
  max-height: 88px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

.locatech-login-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #263238;
  line-height: 1.2;
}

.locatech-login-tagline {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #607d8b;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.locatech-login-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(38, 50, 56, 0.1),
    0 8px 20px rgba(var(--locatech-primary-rgb), 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
}

.locatech-login-card-accent {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--locatech-sidebar-to) 0%,
    var(--locatech-primary) 45%,
    var(--locatech-accent) 100%
  );
}

.locatech-login-card-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #37474f;
  letter-spacing: -0.02em;
}

.locatech-login-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78909c;
  margin-bottom: 0.35rem;
}

.locatech-login-input .input-group-text {
  background: #fafafa;
  border-color: #e0e0e0;
  color: #90a4ae;
  border-radius: 10px 0 0 10px;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.locatech-login-input .form-control {
  border-color: #e0e0e0;
  border-radius: 0 10px 10px 0;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-size: 0.95rem;
}

.locatech-login-input .form-control:focus {
  border-color: rgba(var(--locatech-primary-rgb), 0.65);
}

.locatech-login-input:focus-within .input-group-text {
  border-color: rgba(var(--locatech-primary-rgb), 0.45);
  color: var(--locatech-primary);
  background: rgba(var(--locatech-primary-rgb), 0.06);
}

.locatech-login-submit {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(var(--locatech-primary-rgb), 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.locatech-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--locatech-primary-rgb), 0.42);
}

.locatech-login-submit:active {
  transform: translateY(0);
}

.locatech-login-footer {
  font-size: 0.72rem;
  line-height: 1.55;
  color: #90a4ae;
}

.locatech-login-footer-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 0.35rem;
}

.locatech-login-footer-name {
  color: #78909c;
  font-weight: 500;
}

body.login-page:not(.locatech-login-body) {
  background-color: var(--locatech-bg) !important;
}

.breadcrumb a {
  color: var(--locatech-primary);
}

.breadcrumb a:hover {
  color: var(--locatech-primary-dark);
}

.main-header.border-bottom {
  border-bottom-color: rgba(var(--locatech-primary-rgb), 0.28) !important;
}
