* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 400;
}



.loading {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #009739;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px 0;
    color: #e53e3e;
}

.results-container {
    display: grid;
    gap: 25px;
}

.regiao-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 1rem 0;
}

.regiao-card:hover {
    transform: translateY(-5px);
}

.regiao-header {
    background: linear-gradient(135deg, #009739 0%, #228B22 100%);
    color: white;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

.regiao-header:hover {
    background: linear-gradient(135deg, #228B22 0%, #009739 100%);
    transform: translateY(-2px);
}

.regiao-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.regiao-toggle.collapsed {
    transform: translateY(-50%) rotate(180deg);
}

.regiao-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.regiao-code {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.resultados-grid {
    display: grid;
    gap: 15px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.resultados-grid.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.resultado-item {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #FFD700;
    transition: all 0.3s ease;
}

.resultado-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.resultado-item.sem-resultado {
    opacity: 0.6;
    border-left-color: #cbd5e0;
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.loteria-info {
    font-weight: 500;
    color: #2d3748;
}

.hora-info {
    font-size: 0.9rem;
    color: #718096;
}

.resultado-numero {
    font-size: 1.5rem;
    font-weight: 700;
    color: #009739;
    text-align: center;
    margin: 15px 0;
}

.premios-section {
    margin: 15px 0;
}

.premios-title {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 10px;
}

.premios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.premio-item {
    background: white;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
}

.bichos-section {
    margin-top: 15px;
}

.bichos-title {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 10px;
}

.bichos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.bicho-item {
    background: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.bicho-item:hover {
    background: #f0fff0;
    border-color: #FFD700;
}

.bicho-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.bicho-nome {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5568;
}

.bicho-numero {
    font-size: 0.7rem;
    color: #718096;
}

.sem-resultado-text {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .regiao-header {
        padding: 15px;
    }
    
    .regiao-toggle {
        right: 15px;
        font-size: 1.3rem;
    }
    
    .premios-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    
    .bichos-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .resultado-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .resultado-item {
        padding: 15px;
    }
    
    .premios-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebf5a;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 30px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 22px;
        height: 22px;
    }
}