/* Layout.css - DESIGN LIMPO SEM CONTORNOS E SEM CONFLITOS */

.layout-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fefdf8;
  position: relative;
}

/* Header limpo sem contornos */
.layout-header {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botão Menu limpo */
.menu-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.7rem;
  color: #854d0e;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.logo {
  cursor: pointer;
}

.logo h1 {
  margin: 0;
  color: #854d0e;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Informações do usuário - sem contornos */
.user-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name, .user-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #854d0e;
  font-weight: 500;
}

.user-name:hover, .user-phone:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  min-height: 40px;
  color: #854d0e;
}

/* Botão Secundário - sem preenchimento sólido */
.header-btn.secondary {
  background: rgba(255, 255, 255, 0.3);
  color: #854d0e;
}

.header-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ===== BOTÃO CONFIGURAÇÕES MELHORADO ===== */
.header-btn.user-settings-btn {
  background: rgba(255, 255, 255, 0.3);
  color: #854d0e;
  border: none;
  padding: 0.7rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-btn.user-settings-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Botão Logout - vermelho sem contorno */
.header-btn.logout-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #854d0e;
}

.header-btn.logout-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Desktop Navigation - sem contornos */
.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #854d0e;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.5);
  color: #854d0e;
}

/* Saldo na Navegação - VERDE e NA FRENTE DE RESULTADOS */
.nav-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  border: none;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mobile-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: white;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Informações do usuário no mobile */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fefdf8;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.user-avatar-mobile {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #854d0e;
  border: none;
}

.user-details-mobile {
  flex: 1;
}

.user-name-mobile {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.user-phone-mobile {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.user-balance-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #10b981;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.mobile-nav-item:hover {
  background: #fef7cd;
}

.mobile-nav-item.active {
  background: #fef08a;
  color: #854d0e;
}

.mobile-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-align: left;
}

.mobile-action-btn.primary {
  background: #fef08a;
  color: #854d0e;
}

.mobile-action-btn.primary:hover {
  background: #fde047;
}

.mobile-action-btn.secondary {
  background: #fefdf8;
  color: #374151;
  border: none;
}

.mobile-action-btn.secondary:hover {
  background: #fef7cd;
}

/* Main Content */
.layout-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: #fefdf8;
}

/* Footer */
.layout-footer {
  background: #fef08a;
  color: #854d0e;
  padding: 1.5rem 2rem;
  margin-top: auto;
  border: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 0;
  color: #a16207;
  font-size: 0.875rem;
}

/* ===== REMOVIDO: TODAS AS REGRAS DO MODAL ===== */
/* O modal agora está completamente no UserSettingsModal.css */

/* Responsive Design */
@media (max-width: 1024px) {
  .user-header-info {
    gap: 0.8rem;
  }
  
  .user-name, .user-phone {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }

  .user-header-info {
    display: none;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .header-btn span {
    display: none;
  }

  .header-btn {
    padding: 0.6rem;
  }

  .layout-content {
    padding: 1rem;
  }

  .desktop-nav {
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .header-btn {
    padding: 0.5rem;
  }

  .desktop-nav {
    gap: 0.25rem;
  }

  .nav-item {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .nav-balance {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Animações suaves */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-nav {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav-overlay {
  animation: fadeIn 0.3s ease-out;
}/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #222;
  line-height: 1.5;
}

/* ===== LINKS ===== */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== BOTÕES PADRÃO ===== */
button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== CORREÇÃO MOBILE INPUT ZOOM ===== */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ===== CORREÇÃO MODAIS GLOBAIS ===== */
.ReactModal__Overlay {
  background: rgba(0, 0, 0, 0.5) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nada mais aqui — cada página tem seu CSS próprio */
