/* === RESET E BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
  background-color: #0b1c3c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === CONTAINER PRINCIPAL === */
.container-app {
  width: 1028px;
  height: 720px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 10px 40px rgba(207, 18, 18, 0.35);
  transition: transform 0.2s ease;
}

.container-app:hover {
  transform: scale(1.01);
}

/* === SIDEBAR === */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0e244d 0%, #112c63 100%);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar h4 {
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f0f4ff;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.sidebar a {
  display: block;
  color: #d7e2ff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateX(4px);
}

/* === CABEÇALHO === */
.header {
  height: 56px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header strong {
  font-size: 1rem;
  color: #0b1c3c;
}

.header .btn {
  border-radius: 8px;
}

/* === CONTEÚDO PRINCIPAL === */
.main {
  flex: 1;
  background: #f7f8fc;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 20px;
  overflow-y: auto;
  height: calc(100% - 56px);
}

/* === BOTÕES === */
.btn {
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* === STATUS BADGES === */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-aberto {
  background: #ffe5e5;
  color: #b70000;
}

.status-atendimento {
  background: #fff2df;
  color: #9a5a00;
}

.status-finalizado {
  background: #e7ffe9;
  color: #0b6b28;
}

/* === CARDS === */
.card {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: none;
  background-color: #fff;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* === TABELAS === */
.table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  font-weight: 600;
  color: #0b1c3c;
  border-bottom: 2px solid #e0e3ef;
}

/* === FORMULÁRIOS === */
.form-termo {
  height: 140px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}

/* === LOGIN E REGISTRO === */
.auth-wrapper {
  width: 1028px;
  height: 720px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.auth-side {
  background: linear-gradient(180deg, #0b1c3c 0%, #173772 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
}

.auth-side h1 {
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  font-size: 2rem;
}

.auth-side p {
  opacity: 0.9;
  line-height: 1.5;
  font-size: 1rem;
}

.auth-main {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.auth-main form {
  width: 100%;
  max-width: 420px;
}

.auth-main .form-label {
  font-weight: 500;
  color: #0b1c3c;
}

.auth-main input.form-control {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-main input.form-control:focus {
  border-color: #0b1c3c;
  box-shadow: 0 0 0 2px rgba(11, 28, 60, 0.15);
}

.small {
  font-size: 0.9rem;
  color: #6b7280;
}

/* === SCROLLBAR SUAVE === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(11, 28, 60, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(11, 28, 60, 0.5);
}

/* === RESPONSIVIDADE === */
@media (max-width: 1100px) {
  .container-app,
  .auth-wrapper {
    width: 90%;
    height: auto;
    min-height: 600px;
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    padding: 12px;
  }

  .sidebar h4 {
    display: none;
  }

  .main {
    flex: 1;
  }

  body {
    align-items: flex-start;
    padding: 20px 0;
  }
}
