/* Sistema de Rifa - Tema Moderno Responsivo */

/* Reset e configurações base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis CSS para o novo tema */
:root {
  /* Cores de fundo */
  --bg-primary: #0F0F23;
  --bg-secondary: #1A1A2E;
  --bg-card: rgba(26, 26, 46, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  
  /* Cores de texto */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Gradientes principais */
  --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  --gradient-secondary: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-warning: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --gradient-info: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
  
  /* Cores sólidas */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #06B6D4;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
  
  /* Bordas */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  
  /* Transições */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Aplicação do tema base */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header moderno */
.header-app-header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-app-header.scrolled {
  background: rgba(15, 15, 35, 0.98);
  box-shadow: var(--shadow-xl);
}

.header-app-header-container {
  backdrop-filter: blur(20px);
}

.header-app-brand {
  max-height: 50px;
  transition: var(--transition-normal);
}

/* Container principal */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 80px);
}

/* Títulos da aplicação */
.app-title {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.app-title h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.app-title-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cards de rifas modernos */
.SorteioTpl_sorteioTpl__home {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 20px;
}

.SorteioTpl_sorteioTpl__home:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(102, 126, 234, 0.3);
}

.SorteioTpl_sorteioTpl__home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: -1;
}

.SorteioTpl_sorteioTpl__home:hover::before {
  opacity: 0.05;
}

/* Card destacado */
.custom-highlight-card {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.custom-highlight-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.custom-highlight-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

/* Informações dos cards */
.SorteioTpl_info__t1BZr {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  position: relative;
}

.custom-content-wrapper {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--bg-primary) !important;
}

.SorteioTpl_title__3RLtu {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.custom-content-wrapper .SorteioTpl_title__3RLtu {
  color: var(--bg-primary) !important;
}

.SorteioTpl_descricao__1b7iL {
  color: var(--text-secondary) !important;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.custom-content-wrapper .SorteioTpl_descricao__1b7iL {
  color: rgba(15, 15, 35, 0.8) !important;
}

/* Imagens dos cards */
.SorteioTpl_imagemContainer__2-pl4 {
  position: relative;
  overflow: hidden;
}

.SorteioTpl_imagem__2GXxI {
  transition: var(--transition-slow);
  object-fit: cover;
}

.SorteioTpl_sorteioTpl__home:hover .SorteioTpl_imagem__2GXxI {
  transform: scale(1.05);
}

/* Badges modernos */
.badge {
  border-radius: var(--border-radius-md);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

.badge:hover::before {
  left: 100%;
}

.bg-azul-personalizado,
.badge.bg-success {
  background: var(--gradient-success) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.badge.bg-dark {
  background: var(--bg-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary) !important;
}

/* Efeito blink moderno */
.blink {
  animation: modern-pulse 2s ease-in-out infinite;
}

@keyframes modern-pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.02);
  }
}

/* Badge de status personalizado */
.custom-badge-display {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.custom-calendar-display {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: white;
  margin-top: 8px;
}

/* Menu mobile moderno */
.modal-content.bg-cor-primaria {
  background: var(--bg-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.nav-vertical ul {
  list-style: none;
  padding: 0;
}

.nav-vertical ul li {
  margin-bottom: 8px;
}

.nav-vertical ul li a {
  color: var(--text-secondary) !important;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nav-vertical ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
  z-index: -1;
}

.nav-vertical ul li a:hover {
  color: var(--text-primary) !important;
  transform: translateX(8px);
}

.nav-vertical ul li a:hover::before {
  left: 0;
}

.nav-vertical ul li a .icone {
  margin-right: 12px;
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.nav-vertical ul li a:hover .icone {
  transform: scale(1.1);
}

/* Card do usuário */
.card-usuario {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.img-perfil {
  border-radius: 50%;
  border: 3px solid;
  border-image: var(--gradient-primary) 1;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.card-usuario--informacoes h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-usuario--informacoes .email {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Seção de ganhadores */
.app-ganhadores {
  margin-top: 60px;
}

.app-ganhadores .app-title h1 {
  background: var(--gradient-warning);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading system moderno */
#loadingSystem {
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#loadingSystem::after {
  content: '';
  width: 60px;
  height: 60px;
  border: 4px solid rgba(102, 126, 234, 0.3);
  border-top: 4px solid #667EEA;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 1024px) {
  .app-main {
    padding: 16px;
  }
  
  .app-title h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .app-main {
    padding: 12px;
  }
  
  .app-title {
    margin-bottom: 30px;
    padding: 16px 0;
  }
  
  .app-title h1 {
    font-size: 2rem;
  }
  
  .app-title-desc {
    font-size: 1rem;
  }
  
  .SorteioTpl_info__t1BZr {
    padding: 20px;
  }
  
  .SorteioTpl_title__3RLtu {
    font-size: 1.2rem;
  }
  
  .SorteioTpl_descricao__1b7iL {
    font-size: 0.95rem;
  }
  
  .custom-badge-display {
    top: 16px;
    right: 16px;
  }
  
  .badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .app-main {
    padding: 8px;
  }
  
  .app-title h1 {
    font-size: 1.8rem;
  }
  
  .app-title-desc {
    font-size: 0.9rem;
  }
  
  .SorteioTpl_info__t1BZr {
    padding: 16px;
  }
  
  .SorteioTpl_title__3RLtu {
    font-size: 1.1rem;
  }
  
  .SorteioTpl_descricao__1b7iL {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .custom-badge-display {
    top: 12px;
    right: 12px;
  }
  
  .badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .custom-calendar-display {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/* Melhorias para formulários */
.form-control {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  padding: 12px 16px;
  transition: var(--transition-normal);
}

.form-control:focus {
  background: var(--bg-glass);
  border-color: #667EEA;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  color: var(--text-primary);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Animações de entrada */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* Efeitos de hover para links */
a {
  transition: var(--transition-normal);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Utilitários */
.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

