:root {
    --bg-color: #1a1a2e;
    --container-bg: #16213e;
    --primary-color: #0f3460;
    --secondary-color: #e94560;
    --text-color: #dcdcdc;
    --highlight-color: #5372f0;
    --word-bg: #0f3460;
    --border-color: #5372f0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

h1 {
    color: white;
    margin-bottom: 5px;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    color: #a9a9a9;
}

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

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-item label {
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.option-item input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: var(--highlight-color);
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
    cursor: pointer;
}

.option-item input[type="radio"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--highlight-color);
}

.option-item input[type="radio"]:checked::before {
    transform: scale(1);
}

.seed-phrase-container {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    max-height: 320px;
    overflow-y: auto;
    transition: max-height 0.3s ease-in-out;
}

.seed-phrase-container.bulk-mode {
    max-height: 60vh;
}

.seed-phrase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
}

#seed-phrase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
}

#seed-phrase.bulk-list {
    display: block;
}

#seed-phrase.bulk-list ol {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 16px;
}

#seed-phrase.bulk-list li {
    display: flex;
    padding: 8px 5px;
    line-height: 1.4;
    border-bottom: 1px solid #2a2a4e;
}

#seed-phrase.bulk-list li:last-child {
    border-bottom: none;
}

.list-number {
    color: #888;
    min-width: 40px;
    text-align: right;
    padding-right: 10px;
    flex-shrink: 0;
}

.list-phrase {
    color: white;
    word-break: break-word;
}

.word-item {
    background-color: var(--word-bg);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.word-number {
    color: #888;
    margin-right: 10px;
    font-size: 14px;
    min-width: 25px;
    text-align: right;
}

.word-text {
    color: white;
    font-weight: bold;
}

.progress-container {
    position: relative;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 8px;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 400px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--highlight-color);
    border-radius: 8px;
    transition: width 0.2s linear;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

button {
    background-color: var(--highlight-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: #405de6;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
     background-color: #555;
}

#copy-btn {
    background-color: var(--secondary-color);
}

#copy-btn:hover {
    background-color: #d83a54;
}

.warning {
    background-color: rgba(233, 69, 96, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
    padding: 5px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
}

.warning p {
    line-height: 1.6;
}

.warning strong {
    color: var(--secondary-color);
}