/* Gestão de Obra — UI base (clean e profissional)
   Objetivo: entregar uma “casca” sólida agora, e ir refinando conforme os módulos entram.
*/

:root {
  --go-bg: #f5f7fb;
  --go-surface: #ffffff;
  --go-border: rgba(16, 24, 40, .10);
  --go-text: #101828;
  --go-muted: rgba(16, 24, 40, .62);
  --go-radius: 14px;
  --go-shadow: 0 8px 26px rgba(16, 24, 40, .08);
}

/* Base */
.go-body {
  background: radial-gradient(1000px 600px at 10% 0%, rgba(13,110,253,.10), transparent 60%),
              radial-gradient(800px 520px at 100% 0%, rgba(25,135,84,.10), transparent 55%),
              var(--go-bg);
  color: var(--go-text);
}

code {
  background: rgba(16, 24, 40, .06);
  padding: 2px 6px;
  border-radius: 10px;
}

.card {
  border: 0;
  border-radius: var(--go-radius);
  box-shadow: var(--go-shadow);
}

.btn {
  border-radius: 12px;
}

.table {
  margin-bottom: 0;
}

/* Layout Auth */
.go-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.go-auth-inner {
  width: 100%;
  max-width: 520px;
}

/* Shell */
.go-shell {
  min-height: 100vh;
  display: flex;
}

.go-sidebar {
  width: 280px;
  background: var(--go-surface);
  border-right: 1px solid var(--go-border);
}

.go-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--go-border);
}

.go-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-size: 18px;
}

.go-brand-name {
  font-weight: 700;
  line-height: 1.1;
}

.go-brand-sub {
  font-size: 12px;
  color: var(--go-muted);
}

.go-nav-section {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(16, 24, 40, .55);
  padding: 10px 12px 6px;
}

.go-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 6px;
  border-radius: 12px;
  color: rgba(16, 24, 40, .80);
  text-decoration: none;
  border: 1px solid transparent;
}

.go-nav-link i {
  font-size: 16px;
}

.go-nav-link:hover {
  background: rgba(13,110,253,.06);
  border-color: rgba(13,110,253,.12);
  color: var(--go-text);
}

.go-nav-link.active {
  background: rgba(13,110,253,.10);
  border-color: rgba(13,110,253,.18);
  color: #0d6efd;
  font-weight: 600;
}

.go-nav-link.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.go-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 24, 40, .06);
  color: rgba(16, 24, 40, .70);
}

.go-sidebar-footer {
  border-top: 1px solid var(--go-border);
}

.go-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.go-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--go-border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.go-topbar-title {
  font-weight: 800;
  line-height: 1.1;
}

.go-topbar-subtitle {
  font-size: 13px;
  color: var(--go-muted);
}

.go-content {
  padding: 18px 16px 92px; /* espaço para bottom-nav no mobile */
}

/* Bottom nav */
.go-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--go-border);
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
}

.go-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  text-decoration: none;
  color: rgba(16, 24, 40, .72);
  padding: 6px 10px;
  border-radius: 12px;
}

.go-bottom-link i {
  font-size: 18px;
}

.go-bottom-link.active {
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-weight: 600;
}

.go-bottom-link.disabled {
  opacity: .55;
}

/* Pequenos refinamentos */
.alert {
  border-radius: var(--go-radius);
}

.form-control, .form-select {
  border-radius: 12px;
}

.table-responsive {
  border-radius: var(--go-radius);
}

/* Melhor visual para tabelas em cards */
.table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(16, 24, 40, .60);
}

/* Mobile ajustes */
@media (max-width: 767.98px) {
  .go-topbar-title { font-size: 16px; }
  .go-content { padding-bottom: 98px; }
}
