body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7f2;
    color: #1f2937;
}

.container {
    max-width: 820px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 24px;
    font-size: 38px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    width: 220px;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card span {
    display: block;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 8px;
}

.card p {
    margin: 0;
    color: #4b5563;
}

.box {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

input {
    width: 100%;
    max-width: 640px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

.buttons {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: #4caf50;
    color: white;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s ease;
}

button:hover:enabled {
    background: #43a047;
}

button:disabled {
    background: #b7c7b8;
    cursor: not-allowed;
    opacity: 0.85;
}

.status {
    margin-top: 18px;
    min-height: 24px;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    display: none;
}

.status.info {
    display: block;
    background: #eef6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status.success {
    display: block;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

#result {
    margin-top: 16px;
}

.download-link {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    background: #4caf50;
    color: white;
    text-decoration: none;
}

.download-link:hover {
    background: #43a047;
}