/* public/css/historico.css */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e;
    color: #e0e0e0;
    padding-top: 80px; /* Space for the fixed header */
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #2a2a4e;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

h1 {
    color: #e94560;
    text-align: center;
    margin-bottom: 30px;
}

#history-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading-message, .error-message {
    text-align: center;
    font-size: 1.2em;
    padding: 40px;
    color: #ffc107;
}

.round-item {
    background-color: #161625;
    border-radius: 8px;
    border: 1px solid #3a3a5e;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.round-item:hover {
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.round-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #1f1f3a;
}

.round-header h3 {
    margin: 0;
    color: #e94560;
}

.round-header span {
    font-size: 0.9em;
    color: #aaa;
}

.round-header .toggle-icon {
    font-weight: bold;
    transition: transform 0.3s;
}

.round-details {
    padding: 20px;
    background-color: #222240;
    display: none; /* Hidden by default */
}

.round-item.open .round-details {
    display: block;
}

.round-item.open .toggle-icon {
    transform: rotate(90deg);
}

.called-numbers-history {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3a3a5e;
}

.called-numbers-history h4, .winners-list h4 {
    color: #e94560;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.numbers-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.called-number-item {
    background-color: #3a3a5e;
    color: #e0e0e0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid #4a4a6e;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.winner-item {
    border-left: 3px solid #e94560;
    padding-left: 15px;
}

.winner-item p {
    margin: 5px 0;
}

.winner-item strong {
    color: #ffc107;
}

/* Card Grid Styling (copied and adapted from style.css) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 10px;
    max-width: 250px; /* Limit card size */
    background-color: #0f0c29;
    padding: 10px;
    border-radius: 5px;
}

.card-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3a3a5e;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s, color 0.3s;
}

.card-number.called {
    background-color: #f8c537;
    color: #ffe7e7;
    transform: scale(1.1);
    box-shadow: 0 0 10px #04a04a;
}

.summary-winning-card {
    margin: 10px auto 0;
    width: fit-content;
}
.summary-winning-card .card-grid {
    border: 2px solid #f8c537;
    border-radius: 6px;
    padding: 4px;
    background-color: #1a1a2e;
}
.card-number.winning-highlight {
    background-color: #f8c537;
    border: 1px solid #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px #f8c537;
}

.card-number.winning-highlight {
    background-color: #097e3a; /* Verde escuro para destaque */
    color: #fff;
    border: 1px solid #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}
