/* Minha Conta — layout de minhaconta.html */

.dashboard-page {
  --primary-green: #00a859;
  --primary-yellow: #fbb03b;
  --text-dark: #212529;
  --text-light: #555555;
  --white: #ffffff;
  --sidebar-width: 260px;
}

.dashboard-page .dashboard-container {
  display: flex;
  max-width: 1400px;
  margin: 86px auto 40px;
  padding: 0 20px;
  gap: 30px;
}

.dashboard-page .sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  align-self: flex-start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.dashboard-page .profile-card {
  background: #ffffff;
  border-radius: 5px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
  border: 0.8px solid #dddddd;
  margin-bottom: 20px;
}

.dashboard-page .profile-img-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fbb03b;
  overflow: hidden;
}

.dashboard-page .profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-page .profile-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
  color: #212529;
}

.dashboard-page .sidebar-menu {
  background: #ffffff;
  border-radius: 5px;
  padding: 15px 0;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
  border: 0.8px solid #dddddd;
  list-style: none;
  margin: 0;
}

.dashboard-page .menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  text-decoration: none;
  color: #212529;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dashboard-page .menu-item a:hover {
  background: #f9f9f9;
  padding-left: 30px;
}

.dashboard-page .menu-item.active a {
  color: #00a859;
  background: rgba(0, 168, 89, 0.05);
  border-left-color: #00a859;
  font-weight: 600;
}

.dashboard-page .menu-section {
  padding: 15px 25px 5px;
  font-size: 11px;
  font-weight: 700;
  color: #bbbbbb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-page .main-content {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.account-section {
  background: #ffffff;
  border: 0.8px solid #dddddd;
  border-radius: 5px;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.07);
  margin-bottom: 20px;
  overflow: hidden;
}

.account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 12px;
  border-bottom: 2px solid #fbb03b;
}

.account-section-title {
  font-size: 13.6px;
  font-weight: 400;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-edit-section {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #00a859;
  border: 1.5px solid #00a859;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-edit-section:hover {
  background: rgba(0, 168, 89, 0.07);
}

.account-fields {
  padding: 18px 22px 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.field-row.single {
  grid-template-columns: 1fr;
}

.field-item {
  margin-bottom: 16px;
}

.field-label {
  font-size: 11.8px;
  font-weight: 500;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.field-value {
  font-size: 14px;
  color: #212529;
  font-weight: 400;
}

.field-value.masked {
  letter-spacing: 3px;
  color: #555555;
  font-size: 13px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-box {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 13px;
  border-bottom: 2px solid #fbb03b;
}

.modal-header h3 {
  font-size: 13.6px;
  font-weight: 400;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #888888;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover {
  color: #222222;
}

.modal-body {
  padding: 22px 22px 8px;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #444444;
  margin-bottom: 5px;
}

.modal-form-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.modal-form-group input:focus {
  border-color: #00a859;
}

.modal-form-hint {
  font-size: 12px;
  color: #888888;
  margin-top: 5px;
  margin-bottom: 0;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid #cccccc;
  color: #555555;
  border-radius: 4px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-cancel:hover {
  background: #f5f5f5;
}

.btn-modal-save {
  background: #00a859;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-save:hover {
  background: #008f4a;
}

@media (max-width: 992px) {
  .dashboard-page .dashboard-container {
    flex-direction: column;
  }

  .dashboard-page .sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .dashboard-page .sidebar-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .dashboard-page .sidebar-menu {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .modal-form-row {
    grid-template-columns: 1fr;
  }

  .account-section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .account-fields {
    padding: 14px 16px 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-page .dashboard-container {
    padding: 0 12px;
    margin: 70px auto 20px;
  }
}
