:root {
    --bg-color: #0b0f19;
    --card-bg: #111827;
    --border-color: #1f2937;
    --border-focus: #3b82f6;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.app-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.token-group, .input-group, .output-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
}

.hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

textarea, input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #030712;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
    height: 120px;
    resize: vertical;
}

input[type="text"], input[type="password"] {
    height: 45px;
}

button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 5px;
}

button:hover {
    background-color: var(--accent-hover);
}

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

.output {
    padding: 16px;
    background: #030712;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 80px;
    color: #e5e7eb;
    font-size: 0.95rem;
    white-space: pre-wrap;
    line-height: 1.5;
}