* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1d24;
    color: #d4d4d8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #24272f;
    border-radius: 8px;
    padding: 35px;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #2f3339;
}

h1 {
    font-size: 26px;
    margin-bottom: 28px;
    color: #e4e4e7;
    font-weight: 600;
}

.section-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #a1a1aa;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    background: #1a1d24;
    color: #e4e4e7;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #6366f1;
}

.char-section {
    margin-bottom: 22px;
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    background: #1a1d24;
    color: #e4e4e7;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.input-section {
    margin-bottom: 20px;
}

.input-section textarea {
    min-height: 140px;
}

.output-section {
    margin-top: 22px;
}

.output-section textarea {
    min-height: 140px;
    background: #16181d;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.preview-section {
    margin-top: 22px;
}

.discord-preview {
    min-height: 140px;
    padding: 16px;
    background: #313338;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    color: #dbdee1;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.375;
    overflow-wrap: break-word;
}

.preview-placeholder {
    color: #6d6f78;
    font-style: italic;
}

.discord-bold {
    font-weight: 700;
}

.discord-underline {
    text-decoration: underline;
}

.discord-underline-bold {
    font-weight: 700;
    text-decoration: underline;
}

.discord-quote {
    position: relative;
    padding-left: 12px;
    margin: 4px 0;
    border-left: 4px solid #4e505a;
    color: #b5bac1;
}

button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin: 8px 0;
}

.send-btn {
    background: #22c55e;
    color: white;
}

.send-btn:hover:not(:disabled) {
    background: #16a34a;
}

.send-btn:disabled {
    background: #52525b;
    cursor: not-allowed;
}

.copy-btn {
    background: #3b82f6;
    color: white;
}

.copy-btn:hover {
    background: #2563eb;
}

.status {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #71717a;
    min-height: 18px;
}

.status.success {
    color: #22c55e;
}

.status.error {
    color: #ef4444;
}

.status.sending {
    color: #f59e0b;
}

