:root { --primary: #2563eb; --bg: #fcfcfd; --text: #111827; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background-color: var(--bg); color: var(--text); padding-bottom: 50px; }
.navbar { padding: 15px 8%; background: white; border-bottom: 1px solid #e5e7eb; font-weight: 800; }
.navbar span { color: var(--primary); }

.container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
h1 { font-size: 2.2rem; text-align: center; margin-bottom: 8px; font-weight: 800; }
.subtitle { text-align: center; color: #6b7280; margin-bottom: 30px; }

.main-card { background: white; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); overflow: hidden; }
textarea { width: 100%; height: 260px; padding: 20px; border: none; outline: none; font-size: 1.05rem; line-height: 1.6; resize: none; background: transparent; }

.card-footer { padding: 12px 20px; background: #f9fafb; border-top: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; }
#checkBtn { background: #111827; color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
#checkBtn:hover { background: var(--primary); }

.results-area { margin-top: 25px; animation: slideUp 0.4s ease-out; }
.hidden { display: none; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.stat-box { background: white; padding: 18px; border-radius: 12px; border: 1px solid #e5e7eb; text-align: center; }
.stat-label { display: block; font-size: 0.75rem; font-weight: 700; color: #6b7280; text-transform: uppercase; margin-bottom: 4px; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }

.analysis-box { background: white; padding: 25px; border-radius: 12px; border: 1px solid #e5e7eb; }
.text-content { line-height: 1.8; font-size: 1.1rem; color: #374151; margin-bottom: 15px; }
.ai-highlight { background-color: #fef08a; border-radius: 4px; padding: 1px 0; border-bottom: 2px solid #facc15; }

.legend { font-size: 0.85rem; color: #6b7280; display: flex; align-items: center; gap: 8px; }
.marker { width: 12px; height: 12px; background: #fef08a; border: 1px solid #facc15; display: inline-block; }

@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }