/* Meus Cães */
.dog-intro,
.dog-card {
  margin-top: 0;
  gap: 8px;
}

.dog-intro {
  text-align: center;
  width: var(--sidebar-width);
  max-width: 100%;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#dogList .dog-intro {
  width: 100%;
}

.dog-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--panel-strong);
  font-size: 48px;
  margin-bottom: 0;
  text-align: center;
  color: var(--accent);
}

.dog-card-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: var(--panel-strong);
}

.dog-intro button {
  width: 100%;
  margin-top: 0;
  min-height: 32px;
  padding: 0 6px;
  font-size: 1rem;
  background: transparent;
  color: inherit;
  border: none;
  box-shadow: none;
  border-radius: 0;
  font-weight: bold;
}

.dog-intro button:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.dog-intro.active {
  background: var(--panel) !important;
  border-color: var(--brand-a90);
  box-shadow: var(--shadow-soft);
  outline: 2px solid var(--brand-a45);
  outline-offset: 0;
}

.dog-intro.active button {
  box-shadow: none;
}

.dog-card {
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.dog-card.active {
  background: var(--panel) !important;
  border-color: var(--brand-a90);
  box-shadow: var(--shadow-soft);
  outline: 2px solid var(--brand-a45);
  outline-offset: 0;
}
.dog-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.dog-card-name {
  margin-top: 8px;
  font-weight: bold;
  font-size: 1rem;
  color: #22384d;
  line-height: 1.35;
}

/* Dog detail */
.dog-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.dog-detail-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.dog-detail-menu {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.dog-detail-menu button {
  flex: 1;
  margin-right: 0;
  margin-top: 0;
  padding: 10px 14px;
  font-size: calc(1rem + 1pt);
  border-radius: 10px;
  border: 1px solid var(--accent-outline);
  background: #fff;
  color: var(--accent);
  box-shadow: none;
  font-weight: 700;
}

.dog-detail-menu button:hover {
  background: var(--accent-hover-bg);
  box-shadow: none;
}

.dog-detail-menu button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--brand-a90);
  color: #fff;
  box-shadow: 0 8px 16px var(--brand-a18);
}

.btn-new-evaluation {
  display: inline-block;
  margin: 12px 0 12px 0;
  align-self: flex-start;
}

.dog-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  padding-top: 6px;
  border-top: 1px solid var(--brand-a14);
}

.dog-edit-form .dog-detail-actions {
  width: 100%;
  justify-content: center;
  align-items: center;
}

.dog-edit-form .dog-detail-actions button {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  width: auto;
  min-width: 140px;
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: center;
}

.dog-edit-form .radio-group {
  justify-content: center;
}

.dog-edit-form .radio-group label {
  justify-content: center;
}

.dog-edit-form .dog-edit-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.dog-edit-form .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--accent-outline);
  background: #fff;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
}

.dog-edit-form .btn-secondary:hover {
  background: var(--accent-hover-bg);
  color: var(--accent);
}

#dogForm #dogFotoBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--accent-outline);
  background: #fff;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

#dogForm #dogFotoBtn:hover {
  background: var(--accent-hover-bg);
  color: var(--accent);
}

.dog-edit-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  display: block;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
}

.dog-edit-form {
  margin-top: 12px;
}

.dog-edit-form input,
.dog-edit-form select {
  max-width: 100%;
}

.table-indices,
.evaluations-table {
  width: 100%;
}

.table-indices {
  margin-top: 16px;
  border-collapse: collapse;
}

.evaluations-table {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  table-layout: fixed;
}

.evaluations-table th {
  background: hsl(36 75% 92%);
  color: hsl(29 48% 24%);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
}

.evaluations-table td,
.evaluations-table th {
  padding: 6px 10px;
}

.evaluations-table td {
  color: #21344a;
}

.evaluations-table th:nth-child(1),
.evaluations-table td:nth-child(1) {
  width: 13%;
  text-align: center;
}

.evaluations-table th:nth-child(2),
.evaluations-table td:nth-child(2) {
  width: 11%;
  text-align: center;
}

.evaluations-table th:nth-child(3),
.evaluations-table td:nth-child(3) {
  width: 12%;
  text-align: center;
}

.evaluations-table th:nth-child(4),
.evaluations-table td:nth-child(4) {
  width: 13%;
}

.evaluations-table th:nth-child(5),
.evaluations-table td:nth-child(5) {
  width: 18%;
}

.evaluations-table th:nth-child(6),
.evaluations-table td:nth-child(6) {
  width: 14%;
}

.evaluations-table th:nth-child(7),
.evaluations-table td:nth-child(7) {
  width: 19%;
}

.evaluations-table th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.2;
}

.evaluations-table tbody td:nth-child(1),
.evaluations-table tbody td:nth-child(2),
.evaluations-table tbody td:nth-child(3) {
  font-size: 0.76rem !important;
  letter-spacing: 0.01em;
}

.evaluations-table tbody tr:nth-child(even) {
  background: var(--brand-a04);
}

.evaluations-table-wrap {
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
  margin-top: 12px;
}

.table-indices th,
.table-indices td,
.evaluations-table th,
.evaluations-table td {
  vertical-align: middle;
}

.table-indices th,
.table-indices td {
  border: 1px solid var(--border);
  padding: 5px 8px;
  text-align: center;
}

.table-indices td > button {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.evaluations-table td.evaluation-action-cell {
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.evaluations-table td.evaluation-action-cell > button.evaluation-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(132px, calc(100% - 14px)) !important;
  min-width: 0 !important;
  max-width: min(132px, calc(100% - 14px));
  margin: 0 auto;
  box-sizing: border-box;
  padding: 7px 8px;
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

#dogList {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
