@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --bg: #f8fafc;
    --primary: #0f172a;
    --accent: #4f46e5;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 20px 50px rgba(0,0,0,0.05);
}

body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--primary); margin: 0; padding: 40px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }

.container { width: 100%; max-width: 900px; }
h1 { font-weight: 900; font-size: 2.5rem; margin-bottom: 5px; background: linear-gradient(90deg, #4f46e5, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
p.sub { opacity: 0.6; margin-bottom: 30px; }

.editor-box { background: white; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; border: 1px solid #e2e8f0; }

textarea { width: 100%; border: 2px solid #e2e8f0; border-radius: 15px; padding: 20px; font-family: inherit; font-size: 1rem; resize: vertical; min-height: 200px; outline: none; transition: 0.3s; background: #f8fafc; }
textarea:focus { border-color: var(--accent); background: white; }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media(max-width: 768px){ .options-grid { grid-template-columns: 1fr; } }

input { width: 100%; padding: 15px; border-radius: 12px; border: 2px solid #e2e8f0; font-family: inherit; outline: none; }
input:focus { border-color: var(--accent); }

.levels { display: flex; gap: 10px; flex-direction: column; }
.level-opt { padding: 15px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.level-opt:hover { background: #f1f5f9; }
.level-opt input { width: auto; margin: 0; }

button.btn-main { background: var(--primary); color: white; width: 100%; padding: 18px; border-radius: 15px; border: none; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 20px; transition: 0.2s; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2); }
button.btn-main:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(15, 23, 42, 0.3); }

#resultArea { margin-top: 40px; background: white; padding: 40px; border-radius: 20px; box-shadow: var(--shadow); display: none; line-height: 1.8; }
#resultArea h2 { margin-top: 0; }

/* Markdown Styles */
#mdContent h1, #mdContent h2, #mdContent h3 { color: var(--accent); }
#mdContent ul { padding-left: 20px; }
#mdContent li { margin-bottom: 5px; }
#mdContent strong { color: #be185d; }

.loader { display: none; text-align: center; margin-top: 20px; font-weight: bold; color: var(--accent); }
