/* Extracted inline styles - centralized stylesheet */

/* Validation messages */
.validation-message {
  font-size: 0.8em;
  margin-top: 4px;
  display: none;
}
.validation-message.success { color: #4ade80; display: block; }
.validation-message.error { color: #ff6b6b; display: block; }

/* Password strength */
.password-strength { margin-top: 8px; height: 4px; background: #444; border-radius: 2px; overflow: hidden; }
.strength-bar { height: 100%; width: 0%; transition: width 0.3s ease, background-color 0.3s ease; }
.strength-text { font-size: 0.8em; margin-top: 4px; color: #aaa; }

/* Input validation states */
.input-group input.invalid { border-color: #ff6b6b !important; background: rgba(255, 107, 107, 0.1) !important; }
.input-group input.valid { border-color: #4ade80 !important; }

/* Form layout helpers */
.top-divider { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }
.small { font-size: 0.9em; }
.muted { color: #aaa; }
.link-primary { color: #8ab4f8; text-decoration: none; }
.role-select { width: 100%; padding: 10px; border: none; border-radius: 4px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.role-select option { background: #333; }
.options { margin-bottom: 20px; }
.options-label { width: 100%; font-size: 0.85em; display: block; }
.spinner { display: none; margin: 8px auto; }
.full-width { width: 100%; padding: 0.5rem; margin-bottom: 0.5rem; }

/* Footer */
.site-footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 2px solid #ddd; text-align: center; color: #666; background: #f9f9f9; }
.site-footer p { margin: 0.5rem 0; }
.site-footer p.bold { font-weight: bold; }

/* Small utilities */
.hidden { display: none !important; }

/* Messages shown in JS-inserted HTML */
.msg { text-align: center; }
.msg.success { color: #4ade80; }
.msg.error { color: #ff6b6b; }

/* Utility alignment and card */
.centered { text-align: center; margin-top: 1.5rem; }
.card { border: 1px solid #ddd; padding: 12px; margin: 8px 0; border-radius: 4px; }
.right { float: right; color: #888; }

/* Assignment / Lesson styles (migrated from lessons.html) */
.lesson-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.lesson-card h2 { margin: 0 0 0.5rem; }
.lesson-card p { margin: 0.5rem 0; }
.video { margin-top: 0.5rem; }
.assignment-list { margin-top: 1rem; padding: 0.5rem; background: #f5f5f5; border-radius: 4px; }

.assignment-section { margin-top: 2rem; padding: 1.5rem; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #667eea; }
.assignment-form { margin-top: 1rem; }
.assignment-form textarea { width: 100%; min-height: 150px; padding: 1rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; resize: vertical; }
.submission-status { display: inline-block; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: bold; margin-top: 1rem; }
.status-pending { background: #fff3cd; color: #856404; }
.status-graded { background: #d4edda; color: #155724; }
.grade-display { font-size: 1.5rem; font-weight: bold; color: #28a745; margin-top: 0.5rem; }
.btn-submit { background: #28a745; color: white; padding: 0.75rem 2rem; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; margin-top: 1rem; transition: background 0.3s; }
.btn-submit:hover { background: #218838; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }
.upload-row { margin-top: 0.5rem; }

/* AI chat */
.ai-chat { display: none; }
.ai-response { margin-top: 0.5rem; padding: 0.5rem; background: #f1f1f1; border-radius: 4px; }


