:root {
    --primary: #3498db;
    --success: #27ae60;
    --dark: #2c3e50;
    --bg: #f4f7f6;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); padding: 20px; color: #333; }
.container { max-width: 850px; margin: auto; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.full-width { grid-column: span 2; }
textarea { width: 100%; height: 50px; border: 1px solid #ddd; border-radius: 6px; padding: 8px; box-sizing: border-box; }

.vital-signs { background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #e9ecef; }
.vitals-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.vitals-row input { padding: 5px; border: 1px solid #ccc; border-radius: 4px; width: 70px; }

.exam-card { border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.card-header { background: #fdfdfd; padding: 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; font-weight: bold; }

.abnormal-panel { padding: 15px; background: #fffaf0; display: flex; flex-direction: column; gap: 8px; }
.hidden { display: none !important; }

button { padding: 15px; border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer; width: 100%; margin-top: 10px; font-size: 1rem; transition: opacity 0.2s; }
#generateBtn { background: var(--success); }
#output { margin-top: 20px; padding: 20px; background: var(--dark); color: #fff; border-radius: 8px; white-space: pre-wrap; line-height: 1.4; font-size: 0.9rem; }