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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

/* Header outside container - Match frequency.css exactly */
.header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

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

/* Form Section - Match frequency.css style */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.search-type-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background-color: #3498db;
    border-color: #2980b9;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.input-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.input-field input,
.input-field select {
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* Analysis Summary - Match frequency.css style */
.analysis-summary {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.analysis-summary h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

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

.analysis-item {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

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

.analysis-item .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

/* Generator Section - Match frequency.css style */
.generator-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.generator-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.strategy-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.strategy-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.1);
}

.strategy-card h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.strategy-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.strategy-options {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #3498db;
    border-radius: 3px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #3498db;
    border-color: #2980b9;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.strategy-info {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    margin-top: 1rem;
}

.btn-generate:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Generated Numbers Section - Match frequency.css style */
.generated-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.generated-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.generated-numbers {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Number balls to match frequency page exactly */
.number-ball {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2c3e50;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: bounce-in 0.6s ease-out;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Add these styles to your existing generator.css after the existing number-ball styles: */

.secondary-number-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.secondary-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.secondary-ball {
    background-color: #e74c3c !important;
    border: 3px solid #c0392b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secondary-number-section {
        margin-top: 0.5rem;
    }
    
    .secondary-label {
        font-size: 1rem;
    }
}

.number-analysis {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.number-analysis h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.generation-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Disclaimer - Match frequency.css style */
.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;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive Design - Match frequency.css */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .generated-numbers {
        gap: 0.5rem;
    }
    
    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .number-ball {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .analysis-item .value {
        font-size: 1.1rem;
    }
}