.lotto-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.lotto-game-row {
    margin-bottom: 30px;
}

.game-number {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.selected-numbers {
    margin-bottom: 15px;
    min-height: 40px;
}

.selected-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 20px;
    background-color: #007bff;
    color: white;
    margin-right: 8px;
    font-weight: bold;
}

.number-buttons {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.number-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.number-button:hover {
    background-color: #e9ecef;
}

.number-button.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.game-controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.game-controls button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.game-controls button:hover {
    background-color: #0056b3;
}

.simulation-controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

#simulationType {
    padding: 8px;
    border-radius: 5px;
}

#simulationValue {
    padding: 8px;
    width: 100px;
    border-radius: 5px;
}

#startSimulation {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
}

#startSimulation:hover {
    background-color: #218838;
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.result-box h3 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 15px;
}

.result-box h4 {
    color: #28a745;
    margin: 15px 0 10px;
}

.result-box p {
    margin: 8px 0;
    font-size: 16px;
}

.winning-stats, .winning-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-controls-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.auto-select-btn, .number-clear-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.auto-select-btn:hover, .number-clear-btn:hover {
    background-color: #e9ecef;
}

.global-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.global-controls button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #6c757d;
    color: white;
    cursor: pointer;
}

.global-controls button:hover {
    background-color: #5a6268;
}

.rank-info {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.rank-title {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.winning-numbers {
    padding-left: 15px;
    color: #666;
}

@media (max-width: 768px) {
    .number-buttons {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .number-button {
        width: 35px;
        height: 35px;
    }
    
    .game-controls-row {
        flex-direction: column;
    }
    
    .global-controls {
        flex-direction: column;
    }
}

.loading-box {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 18px;
    color: #007bff;
    margin-bottom: 10px;
}

.loading-status {
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.winning-preview, .winning-full {
    margin-left: 15px;
}

.more-wins {
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

.show-all-btn, .show-less-btn {
    padding: 5px 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.show-all-btn:hover, .show-less-btn:hover {
    background-color: #e9ecef;
}

.winning-full {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.loading-log {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    line-height: 1.4;
}

.stop-btn {
    padding: 8px 15px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: #dc3545;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stop-btn:hover {
    background-color: #c82333;
} 