.order-address {
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #0a4b78;
  font-size: 0.9rem;
  line-height: 1.4;
}

.order-address strong {
  color: #0a4b78;
  display: block;
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

/* Botões de ação do endereço */
.address-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: #f1f3f4;
  transform: scale(1.1);
}

.btn-edit:hover {
  background: #e3f2fd;
}

.btn-delete:hover {
  background: #ffebee;
}

.btn-set-principal:hover {
  background: #e8f5e8;
}

/* Garantir que o modal também tenha bom contraste */
.modal-content {
  background: #ffffff !important;
  color: #333333 !important;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 1px solid #dee2e6;
}

.modal-title {
  color: #004d88 !important;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-message {
  color: #666666 !important;
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.modal-close {
  background-color: #004d88;
  color: #ffffff !important;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #003366;
  transform: translateY(-1px);
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.address-header h3 {
  font-size: 2rem;
  color: #004d88;
  margin: 0;
  font-weight: 600;
}

.btn-primary {
  background-color: #004d88;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 77, 136, 0.2);
}

.btn-primary:hover {
  background-color: #003366;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 77, 136, 0.3);
}

/* Melhorar formulário de endereço */
.address-form-container {
  background-color: #f8f9ff;
  border: 2px solid #e3e8ff;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(0, 77, 136, 0.08);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e3e8ff;
}

.form-header h3 {
  margin: 0;
  color: #004d88;
  font-size: 1.8rem;
  font-weight: 600;
}

.btn-cancel {
  background-color: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel:hover {
  background-color: #e55656;
  transform: rotate(90deg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #004d88;
  font-size: 1.4rem;
}

#formulario-endereco .form-group input {
  padding: 1.2rem;
  border: 2px solid #e3e8ff;
  border-radius: 8px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  background: white;
}

#formulario-endereco .form-group input:focus {
  outline: none;
  border-color: #004d88;
  box-shadow: 0 0 0 3px rgba(0, 77, 136, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  background: #f0f7ff;
  border-radius: 8px;
  border: 1px solid #e3e8ff;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #004d88;
}

.form-checkbox label {
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e8ff;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
}

/* Melhorar lista de endereços */
.address-list {
  display: grid;
  gap: 1.5rem;
}

.address-item {
  border: 2px solid #e3e8ff;
  border-radius: 12px;
  padding: 1.5rem;
  background: white;
  transition: all 0.3s ease;
  position: relative;
}

.address-item:hover {
  border-color: #004d88;
  box-shadow: 0 4px 20px rgba(0, 77, 136, 0.1);
  transform: translateY(-2px);
}

.address-item.principal {
  border-color: #28a745;
  background-color: #f8fff9;
}

.address-item.principal::before {
  content: "🏠 Principal";
  position: absolute;
  top: -10px;
  right: 1rem;
  background: #28a745;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Empty state melhorado */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8f9ff;
  border-radius: 12px;
  border: 2px dashed #e3e8ff;
}

.empty-state svg {
  color: #004d88;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-state h3 {
  color: #004d88;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #666;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.address-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-icon:hover {
  background: #f1f3f4;
}

.address-details p {
  margin: 0.25rem 0;
  color: #555;
}

.address-details p strong {
  color: #333;
}

.address-form-container {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-header h3 {
  margin: 0;
  color: #333;
}

.btn-cancel {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.form-checkbox input[type="checkbox"] {
  margin: 0;
}

.order-item.skeleton .skeleton-box {
  display: inline-block;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Estilo para o estado de carregamento */
.profile-card.loading {
  min-height: 300px;
  position: relative;
}

.profile-card.loading form {
  opacity: 0;
  pointer-events: none;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Estilos para a seção de pedidos */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.order-item {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eaeaea;
}

.order-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.order-id {
  font-weight: 600;
  font-size: 1.6rem;
  color: #333;
}

.order-date {
  color: #777;
  font-size: 1.4rem;
}

.order-status {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 500;
}

.order-status.delivered {
  background-color: #e6f7ee;
  color: #0a8043;
}

.order-status.processing {
  background-color: #fff3e0;
  color: #e65100;
}

.order-status.shipped {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.order-books {
  padding: 2rem;
  border-bottom: 1px solid #eaeaea;
}

.order-book {
  display: flex;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #eaeaea;
}

.order-book:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-book-cover {
  width: 8rem;
  height: 12rem;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-book-info {
  flex: 1;
}

.order-book-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  color: #333;
}

.order-book-info p {
  margin: 0 0 0.3rem 0;
  color: #666;
  font-size: 1.4rem;
}

.order-book-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #004d88;
}

.order-quantity {
  font-size: 1.3rem;
  color: #777;
  margin-left: 0.5rem;
}

.order-summary {
  padding: 1.5rem 2rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eaeaea;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #555;
}

.summary-item.total {
  font-weight: 600;
  font-size: 1.6rem;
  color: #333;
}

.summary-divider {
  height: 1px;
  background-color: #ddd;
  margin: 1rem 0;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.tracking-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.4rem;
}

.tracking-label {
  color: #777;
}

.tracking-number {
  font-weight: 500;
  color: #333;
}

.btn-small {
  padding: 0.8rem 1.5rem;
  background-color: #004d88;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-small:hover {
  background-color: #003b6f;
}

/* Layout principal */
.perfil-layout {
  display: grid;
  grid-template-columns: 25rem 1fr;
  gap: 3rem;
  max-width: 120rem;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2rem;
  height: fit-content;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eaeaea;
}

.user-avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background-color: #e6f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #004d88;
}

.user-name {
  font-size: 1.8rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.sidebar-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #004d88;
  margin-bottom: 1.5rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  padding: 1.2rem 1.5rem;
  font-size: 1.5rem;
  color: #555;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.menu-item:hover {
  background-color: #f0f7ff;
  color: #004d88;
}

.menu-item.active {
  background-color: #004d88;
  color: white;
  font-weight: 500;
}

/* Conteúdo do perfil */
.profile-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
}

.heading-admin {
  font-size: 2.4rem;
  font-weight: 600;
  color: #004d88;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.profile-card {
  background-color: #fff;
  border-radius: 8px;
}

/* Formulários */
.profile-form,
.security-form {
  width: 100%;
}

.form-group {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  color: #444;
  font-weight: 500;
}

.input-with-icon {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.input-with-icon .icon {
  font-style: normal;
  padding: 1.2rem;
  font-size: 1.6rem;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 1.2rem;
  border: none;
  font-size: 1.5rem;
  color: #333;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  outline: none;
}

.form-actions {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background-color: #004d88;
  color: white;
  padding: 1.2rem 2.4rem;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #003b6f;
}

/* Endereços */
.address-list {
  display: grid;
  gap: 2rem;
}

.address-item {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 2rem;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.address-header h3 {
  font-size: 1.7rem;
  color: #004d88;
  margin: 0;
}

.address-actions {
  display: flex;
  gap: 1rem;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.btn-icon:hover {
  background-color: #f0f0f0;
}

.address-details p {
  font-size: 1.4rem;
  margin: 0.8rem 0;
  color: #555;
}

.address-add {
  text-align: center;
  margin-top: 1rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px dashed #ccc;
  color: #666;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: #004d88;
  color: #004d88;
}

.btn-outline span {
  font-size: 2rem;
  font-weight: 500;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #777;
}

.empty-state svg {
  margin-bottom: 2rem;
  color: #ccc;
}

.empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #444;
}

.empty-state p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.empty-state .btn {
  display: inline-block;
  margin: 0 auto;
  text-decoration: none;
  background-color: #004d88;
}

/* Classes utilitárias */
.hidden {
  display: none;
}

/* Responsividade */
@media (max-width: 992px) {
  .perfil-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-bottom: 2rem;
  }

  .user-info {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }

  .user-avatar {
    margin-bottom: 0;
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .menu-item {
    margin-bottom: 0;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .order-header,
  .order-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .order-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .order-book-cover {
    margin: 0 auto;
  }

  .order-book-info {
    width: 100%;
    text-align: center;
  }

  .order-summary {
    width: 100%;
  }

  .tracking-info {
    width: 100%;
    justify-content: center;
  }
}
