body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    background: #111;
    color: #eee;
}
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #222;
    padding: 1em 0;
    color: orange;
    text-align: center;
}
header h1 {
    margin: 0.2em 0;
    font-size: 2em;
}
header p {
    font-size: 0.9em;
    color: #ccc;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding: 2%;
    gap: 1.5em;
}
fieldset {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #222;
    border: 1px solid #555;
    padding: 1em;
    border-radius: 8px;
    width: 300px;
}
input[type=text] {
    width: 100%;
    padding: 0.6em;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #555;
    background: #111;
    color: #eee;
}
#progress-container {
    color: #0f0;
    font-weight: bold;
}
#results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    padding: 1em;
    border-radius: 8px;
    border: 1px solid #555;
    width: 90%;
    max-width: 500px;
}
#results-container p {
    margin: 0.4em 0;
    word-break: break-all;
}
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #eee;
    border-bottom-color: #800080;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin: 1em 0;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    background: #222;
    color: #aaa;
}
footer a {
    color: #0af;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}