:root {
  --upa-primary: #0B5CAA;
  /* Azul Oficial do Estado */
  --upa-primary-soft: #eef4f9;
  /* Fundo azul bem claro */
  --upa-primary-dark: #094a8a;
  /* Hover / destaque */
  --upa-primary-deep: #073869;
  /* Pressionado / bordas fortes */
  --upa-text: #2c3e50;
}

body {
  background-color: #f8f9fa;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--upa-text);
}

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

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

.btn-upa {
  background-color: var(--upa-primary-dark);
  color: white;
  border: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-upa:hover {
  background-color: var(--upa-primary-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.35);
}

/* Sidebar styles */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.sidebar {
  min-width: 250px;
  max-width: 250px;
  min-height: 100vh;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.sidebar.active {
  margin-left: -250px;
}

.sidebar .sidebar-header {
  padding: 20px;
  background: white;
  text-align: center;
  border-bottom: 1px solid #f1f1f1;
}

.sidebar ul p {
  color: #fff;
  padding: 10px;
}

.sidebar ul li a {
  padding: 15px 20px;
  font-size: 1.1em;
  display: block;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
}

.sidebar ul li a:hover,
.sidebar ul li.active>a {
  color: var(--upa-primary-deep);
  background: var(--upa-primary-soft);
  border-left-color: var(--upa-primary-dark);
}

/* Page Content Style */
#content {
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s;
}

.navbar-upa {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
}

.card-dashboard {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}

.card-dashboard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--upa-primary-soft) 0%, #ffffff 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(52, 152, 219, 0.12);
  background-color: white;
  border: none;
  text-align: center;
}

.login-logo {
  width: 450px;
  margin-bottom: 2rem;
}

.table-custom {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.table-custom th {
  background-color: #f8f9fa;
  border-bottom: 2px solid var(--upa-primary-soft);
  color: #555;
  font-weight: 600;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--upa-primary-dark);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.22);
}

@media (max-width: 768px) {
  .sidebar {
    margin-left: -250px;
  }

  .sidebar.active {
    margin-left: 0;
  }

  #sidebarCollapse span {
    display: none;
  }
}