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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.input-group button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.input-group button:hover {
    background: #5a67d8;
}

.participants-list {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
}

.participants-list.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.participant-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.participant-tag:hover {
    background: #e53e3e;
}

.count-display {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.count-display span {
    font-weight: bold;
    color: #667eea;
    font-size: 24px;
}

.draw-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.draw-button-container {
    position: relative;
    display: inline-block;
}

.draw-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 1;
}

.draw-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.draw-button:active {
    transform: scale(0.95);
}

.draw-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.draw-count {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #e53e3e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
    z-index: 2;
}

.result {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.result .winner {
    color: #667eea;
    font-size: 28px;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear {
    background: #e53e3e;
    color: white;
}

.btn-clear:hover {
    background: #c53030;
}

.btn-reset {
    background: #48bb78;
    color: white;
}

.btn-reset:hover {
    background: #38a169;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .draw-button {
        width: 120px;
        height: 120px;
        font-size: 20px;
    }

    .draw-count {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: -15px;
        right: -15px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
    }
}
/* Adicione ao final do style.css */

/* Efeito de roleta */
.roulette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.roulette-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.roulette-container {
    background: white;
    border-radius: 30px;
    padding: 50px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.roulette-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.roulette-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Roleta giratória */
.roulette-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.roulette-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #667eea;
    position: relative;
    overflow: hidden;
    animation: spin 0.1s linear infinite;
}

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

/* Versão melhorada da roleta com segmentos */
.roulette-segments {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.roulette-segments canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    z-index: 2;
}

.roulette-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #e53e3e;
    z-index: 3;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Nomes na roleta */
.roulette-names {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Lista de nomes rolando */
.name-scroll {
    height: 200px;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    background: #f7f7f7;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.name-scroll-inner {
    animation: scrollNames 0.05s linear infinite;
}

@keyframes scrollNames {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.name-item {
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.name-item.highlight {
    background: #667eea;
    color: white;
}

/* Efeito de confete */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Resultado animado */
.result-winner {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    animation: winnerPulse 0.8s ease infinite;
    margin: 20px 0;
}

@keyframes winnerPulse {
    0%, 100% { 
        transform: scale(1);
        color: #667eea;
    }
    50% { 
        transform: scale(1.1);
        color: #764ba2;
    }
}

.winner-emoji {
    font-size: 64px;
    display: block;
    margin-bottom: 10px;
    animation: bounce 0.8s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Botão de fechar */
.roulette-close {
    margin-top: 20px;
    padding: 12px 40px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
}

.roulette-close:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.roulette-close.show {
    display: inline-block;
}

/* Loading dots */
.loading-dots {
    display: inline-block;
}

.loading-dots span {
    animation: dotPulse 1.4s infinite both;
    display: inline-block;
    font-size: 30px;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}
/* Último adicionado */
.last-added {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.last-added span {
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

.last-added .empty {
    color: #999;
    font-weight: normal;
}

/* Mensagem quando não há participantes */
.no-participants {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Ajustes para o contador */
.count-display {
    text-align: center;
    font-size: 20px;
    color: #555;
    margin-bottom: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
}

.count-display span {
    font-weight: bold;
    color: #667eea;
    font-size: 28px;
}

/* Pequeno badge de quantidade no botão */
.draw-count {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #e53e3e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(229, 62, 62, 0.3);
    z-index: 2;
}
/* ===== LOGO COM GRADIENTE ===== */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 20px;
}

.logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
    transition: all 0.4s ease;
    object-fit: cover;
    aspect-ratio: 1/1;
    padding: 4px;
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* Responsivo */
@media (max-width: 480px) {
    .logo {
        max-width: 90px;
    }
    .logo-container {
        padding: 8px 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 360px) {
    .logo {
        max-width: 70px;
    }
}
/* ===== CONFIGURAÇÃO DE PRÊMIOS ===== */
.prize-config {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.prize-group {
    background: #f7f7f7;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 120px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s;
}

.prize-group:has(.prize-status.zero) {
    opacity: 0.5;
    border-color: #e53e3e;
}

.prize-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
}

.prize-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.prize-control span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    min-width: 30px;
}

.prize-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-btn.minus {
    background: #e53e3e;
    color: white;
}

.prize-btn.minus:hover {
    background: #c53030;
    transform: scale(1.1);
}

.prize-btn.plus {
    background: #48bb78;
    color: white;
}

.prize-btn.plus:hover {
    background: #38a169;
    transform: scale(1.1);
}

.prize-status {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-weight: 500;
}

.prize-status.zero {
    color: #e53e3e;
    font-weight: bold;
}

/* Total de prêmios */
.total-prizes {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 10px;
}

.total-prizes span {
    font-weight: bold;
    color: #667eea;
    font-size: 20px;
}

/* ===== HISTÓRICO ===== */
.history {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.history h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

.history-item .winner-name {
    font-weight: bold;
    color: #333;
}

.history-item .winner-prize {
    color: #667eea;
    font-weight: 500;
}

.history-item .winner-number {
    color: #999;
    font-size: 12px;
}

.empty-history {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .prize-config {
        flex-direction: column;
        gap: 10px;
    }
    
    .prize-group {
        min-width: auto;
    }
}

/* ===== CONFIGURAÇÃO DE SORTEIOS ===== */
.draws-config {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.draws-group {
    background: #f7f7f7;
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e8e8e8;
    min-width: 200px;
}

.draws-group label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.draws-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.draws-control span {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.draws-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draws-btn.minus {
    background: #e53e3e;
    color: white;
}

.draws-btn.minus:hover {
    background: #c53030;
    transform: scale(1.1);
}

.draws-btn.plus {
    background: #48bb78;
    color: white;
}

.draws-btn.plus:hover {
    background: #38a169;
    transform: scale(1.1);
}

.draws-status {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

.draws-status.zero {
    color: #e53e3e;
    font-weight: bold;
}

/* Total de sorteios */
.total-draws {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f4ff;
    border-radius: 10px;
}

.total-draws span {
    font-weight: bold;
    color: #667eea;
    font-size: 20px;
}

/* ===== HISTÓRICO ===== */
.history {
    margin-top: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.history h3 {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

.history-item .winner-number {
    color: #999;
    font-size: 12px;
}

.history-item .winner-name {
    font-weight: bold;
    color: #333;
}

.history-item .winner-date {
    color: #999;
    font-size: 12px;
}

.empty-history {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .draws-group {
        min-width: auto;
        width: 100%;
        padding: 12px 15px;
    }
}