/* Perfil - Estilos Premium */

/* Header melhorado */
.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: scale(1.1);
}

.header-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.help-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Seção do Perfil Principal */
.profile-section {
  padding: 24px 0;
}

.profile-card {
  position: relative;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.profile-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
}

.profile-content {
  position: relative;
  padding: 80px 24px 24px;
  text-align: center;
}

.profile-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-secondary);
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.profile-info {
  text-align: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.profile-email,
.profile-cpf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.profile-email i,
.profile-cpf i {
  color: var(--primary-color);
  font-size: 14px;
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge-item.verified {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-item.member {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Estatísticas Melhoradas */
.stats-section {
  padding: 0 0 24px;
}

.stats-container {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
}

.stats-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(30, 58, 138, 0.02);
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.stats-title i {
  color: var(--primary-color);
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border-color);
}

.stat-card {
  background: var(--surface-color);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  background: rgba(30, 58, 138, 0.02);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: all 0.3s ease;
}

.stat-card.total::before {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.stat-card.completed::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-card.pending::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.stat-card.total .stat-icon {
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary-color);
}

.stat-card.completed .stat-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card.pending .stat-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-content {
  margin-bottom: 8px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.stat-trend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-trend.up {
  color: #10b981;
}

.stat-trend i {
  font-size: 10px;
}

/* Menu de Opções Melhorado */
.menu-section {
  padding-bottom: 32px;
}

.menu-group {
  margin-bottom: 32px;
}

.group-header {
  margin-bottom: 16px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.group-title i {
  color: var(--primary-color);
  font-size: 18px;
}

.menu-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-card:hover {
  box-shadow: var(--shadow-medium);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: rgba(30, 58, 138, 0.02);
  transform: translateX(4px);
}

.menu-item.logout:hover {
  background: rgba(220, 38, 38, 0.05);
  color: #dc2626;
}

.menu-item.logout:hover .menu-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.menu-item.logout:hover .menu-title {
  color: #dc2626;
}

.menu-icon {
  width: 44px;
  height: 44px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 16px;
  margin-right: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.menu-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.3;
}

.menu-badge {
  margin-right: 12px;
}

.menu-badge .badge {
  background: var(--primary-color);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.menu-badge .badge.online {
  background: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-rating {
  margin-right: 12px;
}

.menu-rating .stars {
  display: flex;
  gap: 2px;
}

.menu-rating .stars i {
  color: #fbbf24;
  font-size: 12px;
}

.menu-arrow {
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.menu-item:hover .menu-arrow {
  color: var(--primary-color);
  transform: translateX(4px);
}

.menu-toggle {
  margin-right: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Efeito ripple nos itens do menu */
.menu-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.menu-item:active::before {
  width: 300px;
  height: 300px;
}

.menu-item > * {
  position: relative;
  z-index: 1;
}

/* Informações do App Melhoradas */
.app-info {
  padding-bottom: 100px;
}

.app-info-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.app-details {
  flex: 1;
  text-align: left;
}

.app-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.app-version {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.app-copyright {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.app-description {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* Modais */
.modal-content {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-large);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-title i {
  color: var(--primary-color);
}

.modal-body {
  padding: 24px;
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-item h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.help-item h6 i {
  color: var(--primary-color);
}

.help-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 575px) {
  .profile-content {
    padding: 60px 16px 20px;
  }

  .avatar-circle {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .avatar-edit-btn {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

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

  .stat-card {
    padding: 16px;
  }

  .stat-number {
    font-size: 20px;
  }

  .menu-item {
    padding: 14px 16px;
  }

  .menu-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
    margin-right: 12px;
  }

  .menu-title {
    font-size: 14px;
  }

  .menu-subtitle {
    font-size: 11px;
  }

  .app-info-card {
    flex-direction: column;
    text-align: center;
  }

  .app-details {
    text-align: center;
  }
}

@media (min-width: 576px) {
  .profile-content {
    padding: 80px 28px 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-item {
    padding: 18px 24px;
  }

  .app-info-card {
    padding: 28px;
  }
}

@media (min-width: 768px) {
  .profile-name {
    font-size: 28px;
  }

  .profile-email,
  .profile-cpf {
    font-size: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 13px;
  }

  .menu-item {
    padding: 20px 28px;
  }

  .menu-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-right: 20px;
  }

  .menu-title {
    font-size: 16px;
  }

  .menu-subtitle {
    font-size: 13px;
  }
}

/* Animações */
.profile-section,
.stats-section,
.menu-section,
.app-info {
  animation: fadeInUp 0.6s ease-out;
}

.stats-section {
  animation-delay: 0.1s;
}

.menu-section {
  animation-delay: 0.2s;
}

.app-info {
  animation-delay: 0.3s;
}

.menu-group:nth-child(1) {
  animation-delay: 0.1s;
}
.menu-group:nth-child(2) {
  animation-delay: 0.2s;
}
.menu-group:nth-child(3) {
  animation-delay: 0.3s;
}
.menu-group:nth-child(4) {
  animation-delay: 0.4s;
}

/* Estilos para modais específicos */
.addresses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
}

.address-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
}

.address-info {
  flex: 1;
}

.address-info h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.address-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.address-actions {
  display: flex;
  gap: 8px;
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-section h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.privacy-section h6 i {
  color: var(--primary-color);
}

.privacy-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.privacy-section ul {
  margin: 0;
  padding-left: 20px;
}

.privacy-section li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-option:hover {
  border-color: var(--primary-color);
  background: rgba(30, 58, 138, 0.02);
}

.language-option.active {
  border-color: var(--primary-color);
  background: rgba(30, 58, 138, 0.05);
}

.language-flag {
  font-size: 24px;
}

.language-info {
  flex: 1;
}

.language-info h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.language-info small {
  font-size: 12px;
  color: var(--text-secondary);
}

.language-check {
  color: var(--primary-color);
  font-size: 18px;
}

.help-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.help-category h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.help-category h6 i {
  color: var(--primary-color);
}

.help-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.help-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.help-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
}

.contact-info h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  font-weight: 500;
}

.contact-info small {
  font-size: 12px;
  color: var(--text-secondary);
}

.feedback-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feedback-option {
  cursor: pointer;
}

.feedback-option input {
  display: none;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--surface-color);
  transition: all 0.3s ease;
  text-align: center;
}

.option-card:hover {
  border-color: var(--primary-color);
  background: rgba(30, 58, 138, 0.02);
}

.feedback-option input:checked + .option-card {
  border-color: var(--primary-color);
  background: rgba(30, 58, 138, 0.05);
}

.option-card i {
  font-size: 24px;
  color: var(--primary-color);
}

.option-card span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

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