/* ── Reset & base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #16181c;
  color: #e8e4de;
  font-family: 'DM Sans', sans-serif;
}

/* ── Container ── */
.container {
  flex: 1;
  min-width: 0;
  padding: 52px 56px 80px;
}

/* ── Layout flex ── */
.flex {
  display: flex;
  gap: 24px;
}

/* ── Cards ── */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 32px 36px;
  margin-bottom: 24px;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(92,146,255, 0.2);
}

/* ── Títulos dos cards ── */
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h3 i {
  color: #5c92ff;
  font-size: 16px;
}

/* ── Campos de formulário ── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.input-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 12px 16px;
  width: 260px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #e8e4de;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.input-field:focus {
  outline: none;
  border-color: rgba(92,146,255, 0.5);
  background: rgba(92,146,255, 0.04);
}

.input-field[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Botão primário ── */
.btn-primary {
  background: #5c92ff;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #3e6fd9;
  transform: translateY(-2px);
}

/* ── Botão Gerenciamento ── */
.btn-gerenciamento {
  background: transparent;
  color: #e8e4de;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 28px;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-gerenciamento:hover {
  border-color: #5c92ff;
  color: #5c92ff;
  transform: translateY(-2px);
}

/* ── Linha de botões ── */
.btn-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Lista de livros ── */
.livro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.livro-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.livro-info img {
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.livro-texto {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.livro-texto strong {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
}

.livro-texto span {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

/* ── Seções do histórico ── */
.section {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.section i {
  color: rgba(92,146,255, 0.8);
  margin-right: 4px;
}

.section strong {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Ícone de multa ── */
.multa-icon {
  color: #e05252 !important;
  margin-left: 6px;
}

/* ── Total de multa ── */
.total {
  color: #e05252;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
}