.lottery-card {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lottery-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.lottery-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.lottery-title {
    text-align: center;
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.lottery-info {
    color: #666;
}

.lottery-contest {
    margin-bottom: 15px;
}

.lottery-contest p {
    margin: 5px 0;
}

.lottery-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.lottery-numbers-federal {
    display: block;
    margin: 20px 0;
    padding: 0 10px;
}

.federal-number {
    background: #f2f2f2;
    color: #222;
    font-weight: bold;
    font-size: 20px;
    padding: 8px 16px;
    margin-bottom: 6px;
    border-radius: 6px;
    border-left: 5px solid #009688;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    width: fit-content;
}

.number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

.lottery-prizes {
    margin: 20px 0;
}

.lottery-prizes h3 {
    text-align: center;
    color: #333;
    margin: 15px 0 10px;
    font-size: 16px;
}

.prizes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.prizes-table th,
.prizes-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.prizes-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.prizes-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.prizes-table tr:hover {
    background-color: #f0f0f0;
}

.lottery-additional {
    text-align: center;
    margin-top: 20px;
}

.acumulou {
    font-size: 20px;
    margin: 10px 0;
}

.next-prize {
    color: #28a745;
    font-size: 18px;
    margin: 10px 0;
}

.lottery-error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border-radius: 5px;
    margin: 20px 0;
}

.lottery-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background: #0056b3;
}

.nav-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.concurso-info {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.lottery-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.lottery-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Cores específicas para cada loteria */
.lottery-card[data-lottery="megasena"] {
    border-left: 5px solid #209869;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.lottery-card[data-lottery="lotofacil"] {
    border-left: 5px solid #930089;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5f5 100%);
}

.lottery-card[data-lottery="quina"] {
    border-left: 5px solid #260085;
    background: linear-gradient(135deg, #ffffff 0%, #e8eaf6 100%);
}

.lottery-card[data-lottery="lotomania"] {
    border-left: 5px solid #f78100;
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
}

.lottery-card[data-lottery="timemania"] {
    border-left: 5px solid #00ff48;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.lottery-card[data-lottery="duplasena"] {
    border-left: 5px solid #a61324;
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
}

.lottery-card[data-lottery="diadesorte"] {
    border-left: 5px solid #cb8e24;
    background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
}

/* Estilo para detalhes dos ganhadores */
.winners-details {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.winners-details h4 {
    color: #444;
    margin-bottom: 15px;
    font-size: 18px;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.winner-location {
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.winner-city {
    font-weight: bold;
    color: #333;
}

.winner-count {
    color: #2196F3;
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 600px) {
    .lottery-numbers {
        gap: 5px;
    }
    
    .number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .prizes-table th,
    .prizes-table td {
        padding: 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .winners-grid {
        grid-template-columns: 1fr;
    }

    .winners-details {
        padding: 10px;
    }

    .winner-location {
        padding: 8px;
    }
}
