* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0f1117;
    color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #181b24;
    border: 1px solid #2a2f3d;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 6px;
}

header p {
    font-size: 0.9rem;
    color: #9ba1b0;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #d1d5db;
}

.mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #10131a;
    border: 1px solid #2e3444;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.88rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.mode-option:has(input:checked) {
    border-color: #5865F2;
    background-color: #1e2336;
    color: #ffffff;
}

.mode-option input[type="radio"] {
    width: auto;
    accent-color: #5865F2;
    cursor: pointer;
}

.hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #9ba1b0;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #10131a;
    border: 1px solid #2e3444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #5865F2;
}

textarea {
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #7c8290;
    margin-top: 4px;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #5865F2;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #4752c4;
}

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

button:disabled {
    background-color: #3b427a;
    cursor: not-allowed;
}

.status-message {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
}

.status-success {
    color: #43b581;
}

.status-error {
    color: #f04747;
}
