* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: #5865F2;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
}

main {
    padding: 30px;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    margin-bottom: 30px;
    text-align: center;
    color: #5865F2;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
textarea:focus {
    outline: none;
    border-color: #5865F2;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #5865F2;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
    background: #747F8D;
    color: white;
}

.btn-secondary:hover {
    background: #5E6775;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Editor Container */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .editor-container {
        grid-template-columns: 1fr;
    }
}

.editor-section,
.preview-section {
    display: flex;
    flex-direction: column;
}

.editor-section label,
.preview-section label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.preview-box {
    background: #2F3136;
    color: #DCDDDE;
    padding: 15px;
    border-radius: 6px;
    min-height: 200px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    word-wrap: break-word;
}

.preview-placeholder {
    color: #72767D;
    font-style: italic;
}

.preview-box strong {
    color: #FFFFFF;
    font-weight: 600;
}

.preview-box em {
    font-style: italic;
    color: #DCDDDE;
}

.preview-box del {
    text-decoration: line-through;
    color: #72767D;
}

.preview-box code {
    background: #202225;
    color: #FAA61A;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.preview-box pre {
    background: #202225;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
}

.preview-box pre code {
    background: transparent;
    padding: 0;
    color: #DCDDDE;
}

.formatting-hint {
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

/* Options Section */
.options-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #F7F7F7;
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Action Section */
.action-section {
    text-align: center;
}

.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
}

.status-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.status-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Alert */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

