/* =========================================================================
   PORTA CERTA - Dashboard do Usuario
   Reaproveita o design system do painel administrativo e acrescenta somente
   componentes especificos do usuario comum.
   ========================================================================= */

@import url("../pages/adm.css");

.table-toolbar h3,
.settings-panel h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

.kpi-value.muted {
  font-size: 28px;
  color: var(--ink-400);
}

.activity-panel,
.favorite-toolbar {
  margin-top: 22px;
}

.activity-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.empty-state {
  min-height: 150px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-400);
  text-align: center;
  padding: 28px 18px;
}

.empty-state i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.empty-state strong {
  color: var(--ink-700);
  font-size: 14px;
}

.favorite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.favorite-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.reviews-list {
  display: grid;
  gap: 14px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.review-card strong,
.review-card span,
.review-card time {
  display: block;
}

.review-card strong {
  color: var(--navy-950);
  font-size: 15px;
}

.review-card span,
.review-card time,
.review-card .muted {
  color: var(--ink-400);
  font-size: 13px;
}

.review-card p {
  color: var(--ink-700);
  margin-top: 10px;
  line-height: 1.55;
}

.review-card__rating {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--gold-700);
  font-weight: 800;
  margin-top: 10px;
}

.review-card__rating b {
  color: var(--navy-950);
}

.row-actions .pay:hover {
  background: var(--success-bg);
  color: var(--success);
}

.row-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.row-actions button.payment-loading {
  width: auto;
  min-width: 172px;
  padding: 0 12px;
  gap: 8px;
}

.favorite-placeholder {
  min-height: 280px;
  grid-column: 1 / -1;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.avatar-upload {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.avatar-upload img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.avatar-edit-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.avatar-edit-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-header-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy-950);
}

.profile-header-meta span {
  font-size: 13px;
  color: var(--ink-400);
}

.toast .close-t {
  cursor: pointer;
}

@media (max-width: 760px) {
  .favorite-grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
