* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.disclaimer-content h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.disclaimer-content p {
    color: #856404;
    line-height: 1.6;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
}

header h1 {
    margin: 0;
}

.page-nav {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-nav a {
    color: white;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 0.3rem 0.9rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.page-nav a:hover {
    background: rgba(255,255,255,0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

form {
    display: grid;
    gap: 1rem;
}

label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

input, select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"] {
    width: 100%;
}

select {
    width: 100%;
}

.search-type-container {
    display: grid;
    gap: 0.5rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
    padding: 0;
    width: auto;
}

.range-inputs {
    display: grid;
    gap: 1rem;
}

.input-row {
    display: grid;
    gap: 0.5rem;
}

.input-row label {
    font-size: 0.9rem;
    color: #555;
}

.input-row input {
    width: 100%;
}

button {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #2980b9;
}

.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #3498db;
}

.results-list {
    display: grid;
    gap: 1rem;
}

.result-item {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.draw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.draw-header h4 {
    color: #2c3e50;
    margin: 0;
}

.draw-type {
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.result-item p {
    margin-bottom: 0.5rem;
}

.winning-numbers, .matching-numbers {
    margin: 1rem 0;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    color: white;
}

.number.primary {
    background-color: #2c3e50;
}

.number.secondary {
    background-color: #7f8c8d;
}

.number.matched {
    box-shadow: 0 0 0 3px #e74c3c;
    transform: scale(1.1);
}

.match-count {
    font-weight: bold;
    color: #e74c3c;
    margin-top: 0.5rem;
}

.prize-info {
    background-color: #d4edda;
    color: #155724;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 4px solid #28a745;
    margin-top: 1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.no-results h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.no-results p {
    color: #856404;
    margin-bottom: 1rem;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    color: #856404;
}

.filter-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.filter-section label {
    margin-right: 1rem;
    font-weight: bold;
}

.filter-section select {
    width: auto;
    min-width: 200px;
}

.summary-section {
    background-color: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-section h3 {
    color: #155724;
    margin-bottom: 1rem;
}

.best-match {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.summary-matches {
    margin-top: 0.5rem;
}

.summary-matches p {
    margin-bottom: 0.5rem;
}

.best-matches-list {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.best-matches-list p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Numbers Analysis Section */
#numbers-analysis {
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.analysis-container {
    display: grid;
    gap: 1.5rem;
}

.numbers-display-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#input-numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.number-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.number-ball.invalid {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #dc3545;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.analysis-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.analysis-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.analysis-item .value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

.analysis-item .value.warning {
    color: #e74c3c;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.insights-list {
    display: grid;
    gap: 0.75rem;
}

.insight {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.insight.popular-pattern {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.insight.good-pattern {
    background: #d1edff;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.insight.neutral-pattern {
    background: #e2e3e5;
    color: #383d41;
    border-left: 4px solid #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .numbers-display {
        justify-content: center;
    }
    
    .number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}