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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #4facfe;
    margin-bottom: 10px;
    font-size: 2em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.input-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9em;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #4facfe;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add {
    background: #4facfe;
    color: white;
}

.btn-add:hover {
    background: #00c6fb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn-reset {
    background: #e74c3c;
    color: white;
}

.btn-reset:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.suggestion-section {
    background: #fff3cd;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #ffc107;
}

.suggestion-section h3 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-numbers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.suggestion-number {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #4facfe;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #ffc107;
}

.suggestion-number:hover {
    background: #4facfe;
    color: white;
    transform: scale(1.05);
}

.history-section {
    margin-top: 25px;
}

.history-section h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #4facfe;
    transition: all 0.3s;
    gap: 15px;
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.history-numbers {
    font-size: 1.2em;
    font-weight: 700;
    color: #4facfe;
    letter-spacing: 8px;
}

.history-result {
    display: flex;
    gap: 15px;
    flex: 1;
}

.history-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    min-width: 40px;
}

.btn-edit:hover {
    background: #e3f2fd;
    color: #2196f3;
    transform: scale(1.1);
}

.btn-delete:hover {
    background: #ffebee;
    color: #f44336;
    transform: scale(1.1);
}

.result-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.correct-position {
    background: #d4edda;
    color: #155724;
}

.correct-number {
    background: #cce5ff;
    color: #004085;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.icon {
    font-size: 1.2em;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }

    .history-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .stats {
        flex-direction: column;
    }
}