@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Rubik:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --accent-color: #6200ee;
    --accent-hover: #3700b3;
    --secondary-color: #018786;
    --error-color: #b00020;
    --button-bg: #e0e0e0;
    --button-hover: #d6d6d6;
    --border-radius: 12px;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
}

header a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--accent-hover);
}

nav {
    margin-bottom: 2rem;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-hover);
}

main {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 750px;
    text-align: center;
}

h2 {
    margin-top: 0;
    color: var(--secondary-color);
    font-weight: 500;
}

form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid #444;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button[type="submit"] {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    font-weight: 700;
}

button[type="submit"]:hover {
    background-color: var(--accent-hover);
}

#passphrase {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--secondary-color);
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    word-break: break-all;
    margin: 1rem 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

#pwbits {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

footer {
    margin-top: 3rem;
    color: #666;
    font-size: 0.8rem;
}

footer a {
    color: #888;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utility for the button group below passphrase */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}