* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.odds-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.odds-info ul {
    margin-left: 20px;
    margin-top: 10px;
}

.odds-info li {
    margin: 5px 0;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 50px;
    display: none;
}

.result.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.result p {
    margin: 8px 0;
    line-height: 1.6;
}

.odds-number {
    font-size: 1.3em;
    font-weight: bold;
    color: #764ba2;
    font-family: 'Courier New', monospace;
}

.probability {
    font-size: 1.2em;
    color: #667eea;
    font-weight: bold;
}

.numbers-display {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.number-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.number-ball.white {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.number-ball.red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.8;
    font-size: 0.9em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
}

.box-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.box-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.boxes-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.boxes-list::-webkit-scrollbar {
    width: 8px;
}

.boxes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.boxes-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.boxes-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.recent-draws-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-draw-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.recent-draw-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.frequency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frequency-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
}

.frequency-number {
    min-width: 40px;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1em;
}

.frequency-count {
    min-width: 80px;
    font-size: 0.9em;
    color: #666;
}

.frequency-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 6px;
    z-index: 0;
}

.frequency-bar.red {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.2) 100%);
}

.frequency-item > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    
    .card {
        padding: 20px;
    }
    
    .number-ball {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }
    
    .frequency-list {
        gap: 6px;
    }
    
    .frequency-item {
        font-size: 0.9em;
        padding: 6px;
    }
    
    .frequency-number {
        min-width: 35px;
        font-size: 1em;
    }
    
    .frequency-count {
        min-width: 70px;
        font-size: 0.85em;
    }
    
    .recent-draw-item {
        padding: 12px;
    }
    
    .result > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}


