/* Container Principal */
.rifa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.rifa-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.rifa-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: white;
}

.rifa-subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    margin-bottom: 10px;
    color: white;
}

.rifa-premio {
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.rifa-info-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.info-icon {
    font-size: 2em;
}

.info-card strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.info-card p {
    margin: 0;
    font-size: 1.2em;
    color: #000 !important;
    font-weight: bold !important;
}

/* Legenda */
.rifa-legenda {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.rifa-legenda h3 {
    margin-top: 0;
    color: #333;
}

.legenda-itens {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legenda-icone {
    font-size: 1.5em;
}

.legenda-texto {
    font-size: 0.95em;
    color: #555;
}

/* Grid de Números */
.rifa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

/* Cards de Números */
.rifa-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.rifa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.rifa-card.status-disponivel {
    border-color: #28a745;
}

.rifa-card.status-reservado {
    border-color: #ffc107;
    opacity: 0.9;
}

.rifa-card.status-pago {
    border-color: #007bff;
    opacity: 0.8;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.card-numero {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}

.card-tamanho {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.card-body {
    text-align: center;
    margin: 15px 0;
}

.card-descricao {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.card-valor {
    font-weight: bold;
    color: #28a745;
    font-size: 1.2em;
    margin: 10px 0;
}

.card-checkbox {
    display: block;
    cursor: pointer;
    margin-top: 10px;
}

.card-checkbox input {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s;
}

.card-checkbox input:checked + .checkmark {
    background: #28a745;
    border-color: #28a745;
}

.card-checkbox input:checked + .checkmark:after {
    content: '✓';
    color: white;
    display: block;
    text-align: center;
    line-height: 16px;
}

.card-reservado {
    background: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.card-comprador {
    margin: 0;
    font-size: 0.9em;
    color: #856404;
}

.card-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 8px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-disponivel { background: #d4edda; color: #155724; }
.status-reservado { background: #fff3cd; color: #856404; }
.status-pago { background: #cce5ff; color: #004085; }

/* Carrinho */
.rifa-carrinho {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

.rifa-carrinho h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.carrinho-vazio {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

.carrinho-itens {
    animation: fadeIn 0.5s;
}

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

#listaNumeros {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    max-height: 200px;
    overflow-y: auto;
}

#listaNumeros li {
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrinho-total {
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
    margin: 20px 0;
}

/* Formulário de Reserva */
.form-reserva {
    animation: slideUp 0.5s;
}

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

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-principal, .btn-secundario {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-principal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secundario {
    background: #6c757d;
    color: white;
}

.btn-secundario:hover {
    background: #5a6268;
}

/* Informações de Pagamento */
.rifa-pagamento {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.rifa-pagamento h3 {
    margin-top: 0;
    color: #333;
}

.pagamento-info p {
    margin: 10px 0;
}

.copiar-pix-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.pix-key-display {
    flex: 1;
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    border: 2px dashed #28a745;
    font-weight: bold;
    word-break: break-all;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.btn-copiar {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-copiar:hover {
    background: #218838;
}

.pagamento-info ol {
    margin: 15px 0;
    padding-left: 20px;
}

.pagamento-info li {
    margin-bottom: 8px;
}

.nota-importante {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin-top: 20px !important;
}

/* Modal */
.rifa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.btn-whatsapp {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Alertas */
.rifa-alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.rifa-alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.rifa-alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Responsividade */
@media (max-width: 768px) {
    .rifa-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .rifa-info-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        width: 100%;
        max-width: 300px;
    }
    
    .legenda-itens {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .copiar-pix-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copiar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rifa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rifa-header {
        padding: 20px 15px;
    }
    
    .rifa-header h2 {
        font-size: 2em;
    }
    
    .rifa-subtitle {
        font-size: 1.1em;
    }
}