body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Dark background to match the modal background */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-container {
    position: fixed;
    top: 0;
    right: 0;
    background-color: #2a2a2a; /* Slightly lighter dark for the form container */
    padding: 20px 30px 30px;
    border-radius: 0 0 0 24px;
    width: 520px; /* Adjust width as needed */
    color: white;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push back button to the left */
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.back-btn {
    background: #3a3a3a; /* Darker background for button */
    border: none;
    color: #ccc;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    flex-shrink: 0; /* Prevent shrinking */
}

.back-btn:hover {
    background: #4a4a4a;
}

.form-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    flex-grow: 1; /* Allow heading to take available space */
    text-align: center; /* Center the heading */
    padding-right: 30px; /* Add padding to compensate for back button space */
}


.form-description {
    color: #888;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 25px 0;
    text-align: center;
    font-weight: 400;
}

.seed-phrase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 10px; /* Space between grid items */
    margin-bottom: 20px;
    width: 100%;
}

.seed-input-group {
    background: #3a3a3a; /* Darker background for input group */
    border-radius: 8px;
    padding: 10px 12px; /* Adjust padding */
    display: flex;
    align-items: center;
    gap: 3px; /* Space between elements in the group */
    border: 1px solid #4a4a4a; /* Border color */
    transition: border-color 0.2s;
    height: 30px; /* Adjust height */
    box-sizing: border-box;
}

.seed-input-group:focus-within {
    border-color: #0066ff; /* Highlight on focus */
}

.seed-input-group.highlighted {
    border-color: #0066ff; /* Highlight for word 12 */
    background: #1a2a3a; /* Different background for highlighted */
}


.word-number {
    color: #666; /* Color of the word number */
    font-size: 12px; /* Font size of the word number */
    font-weight: 400;
    min-width: 16px; /* Ensure minimum width */
    flex-shrink: 0; /* Prevent shrinking */
}

.seed-input {
    background: transparent;
    border: none;
    color: white; /* Text color in input */
    font-size: 14px; /* Font size of input text */
    flex: 1; /* Allow input to fill space */
    outline: none;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.seed-input::placeholder {
    color: #555; /* Placeholder color */
}

.toggle-visibility {
    background: none;
    border: none;
    color: #666; /* Color of the eye icon */
    cursor: pointer;
    font-size: 13px; /* Size of the eye icon */
    padding: 1px;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0; /* Prevent shrinking */
    width: 18px; /* Adjust width/height as needed */
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-visibility:hover {
    background: #444;
    color: #999;
}

.word-count-toggle {
    text-align: center;
    margin-bottom: 25px;
}

.word-count-toggle a {
    color: #0066ff; /* Link color */
    text-decoration: none;
    font-size: 14px; /* Font size of the link */
    font-weight: 400;
}

.word-count-toggle a:hover {
    text-decoration: underline;
}

.import-wallet-btn {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%); /* Gradient background */
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px; /* Adjust padding */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    height: 45px; /* Adjust height */
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3); /* Subtle shadow */
}

.import-wallet-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003f99 100%);
}

.btn-icon {
    font-size: 15px; /* Icon size */
}