body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

p {
    color: #666;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

button {
    background-color: #0070f3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0051a2;
}

.result-container {
    margin-top: 2rem;
    min-height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#result {
    font-size: 3rem;
    font-weight: bold;
    color: #0070f3;
}

.error {
    color: #d93025;
    font-size: 0.9rem;
    min-height: 1.2rem;
    margin-top: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Entropy Meter Styles */
.entropy-section {
    margin: 1.5rem 0;
    text-align: left;
}

.entropy-label {
    font-size: 0.9rem;
    color: #444;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.entropy-instruction {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    transition: width 0.1s ease-out, background 0.5s;
}

.progress-bar.full {
    background: linear-gradient(90deg, #56ab2f 0%, #a8e063 100%);
}
