.lotto-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.lotto-toolbar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.lotto-toolbar label {
    font-weight: 600;
    color: #2c3e50;
}

.lotto-toolbar input[type="number"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 80px;
}

.lotto-toolbar input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

.lotto-btn {
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.lotto-btn:hover {
    background: #2980b9;
}

.lotto-btn-primary {
    background: #e67e22;
}

.lotto-btn-primary:hover {
    background: #d35400;
}

.lotto-table-wrap {
    background: white;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.lotto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 400px;
}

.lotto-table thead {
    background: #2c3e50;
    color: white;
}

.lotto-table th {
    padding: 12px 15px;
    text-align: center;
}

.lotto-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.lotto-table tbody tr:hover {
    background: #f8f9fa;
}

.numbers-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.lotto-ball {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    min-width: 28px;
    text-align: center;
    background: #ecf0f1;
    color: #2c3e50;
}

.lotto-ball.hot {
    background: #e74c3c;
    color: white;
}

.lotto-ball.cold {
    background: #3498db;
    color: white;
}

.lotto-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.lotto-stat-card {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.lotto-stat-card .stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #7f8c8d;
    font-weight: 600;
}

.lotto-stat-card .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 5px;
}

.lotto-stat-card .stat-sub {
    font-size: 13px;
    color: #7f8c8d;
}

.lotto-hot-cold {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.lotto-hot-cold-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lotto-hot-cold-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.lotto-predictions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.lotto-prediction-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid #f39c12;
}

.lotto-prediction-card .pred-method {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.lotto-prediction-card .pred-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin: 5px 0 10px;
}

.lotto-prediction-card .pred-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lotto-prediction-card .pred-ball {
    background: #f39c12;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.lotto-source {
    margin: 10px 0 20px;
    padding: 12px 18px;
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    font-size: 14px;
}

.lotto-source a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.lotto-source a:hover {
    text-decoration: underline;
}

.lotto-loading {
    text-align: center;
    padding: 40px;
}

.lotto-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .lotto-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lotto-hot-cold {
        grid-template-columns: 1fr;
    }
    
    .lotto-table {
        font-size: 12px;
        min-width: 300px;
    }
    
    .lotto-ball {
        font-size: 11px;
        padding: 3px 8px;
        min-width: 22px;
    }
}