/* NexaLMS Frontend Styles */
.nxa-container { max-width: 1100px; margin: 0 auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.nxa-auth-box { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 40px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.nxa-auth-box h2 { text-align: center; margin: 0 0 8px; font-size: 24px; color: #1e293b; }
.nxa-auth-box .nxa-subtitle { text-align: center; color: #64748b; margin-bottom: 24px; font-size: 14px; }
.nxa-form-group { margin-bottom: 16px; }
.nxa-form-group label { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 4px; }
.nxa-input { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: border-color 0.2s; }
.nxa-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.nxa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.nxa-btn:hover { background: #f8fafc; }
.nxa-btn-primary { width: 100%; background: #2563eb; color: #fff; border-color: #2563eb; padding: 12px; font-size: 15px; }
.nxa-btn-primary:hover { background: #1d4ed8; }
.nxa-btn-outline { border: 2px solid #2563eb; color: #2563eb; background: transparent; }
.nxa-btn-outline:hover { background: #eff6ff; }
.nxa-link { color: #2563eb; text-decoration: none; font-size: 14px; }
.nxa-link:hover { text-decoration: underline; }
.nxa-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #94a3b8; font-size: 13px; }
.nxa-divider::before, .nxa-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.nxa-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.nxa-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.nxa-role-selector { display: flex; gap: 12px; margin-bottom: 20px; }
.nxa-role-option { flex: 1; padding: 16px; border: 2px solid #e2e8f0; border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.2s; }
.nxa-role-option:hover { border-color: #93c5fd; }
.nxa-role-option.active { border-color: #2563eb; background: #eff6ff; }
.nxa-role-option .icon { font-size: 28px; display: block; margin-bottom: 6px; }
.nxa-role-option .label { font-size: 14px; font-weight: 500; color: #334155; }

/* Course Catalog */
.nxa-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.nxa-course-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.nxa-course-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.nxa-course-card img { width: 100%; height: 160px; object-fit: cover; background: #f1f5f9; }
.nxa-course-card-body { padding: 16px; }
.nxa-course-card h3 { margin: 0 0 8px; font-size: 16px; color: #1e293b; }
.nxa-course-card .nxa-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.nxa-course-card .nxa-price { font-size: 18px; font-weight: 700; color: #2563eb; }
.nxa-course-card .nxa-price.free { color: #10b981; }
.nxa-course-card .nxa-students { font-size: 12px; color: #94a3b8; }
.nxa-badge-sm { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: #64748b; }
.nxa-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.nxa-filters input, .nxa-filters select { padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }

/* Student Dashboard */
.nxa-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nxa-dash-header h1 { margin: 0; font-size: 22px; color: #1e293b; }
.nxa-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.nxa-dash-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; text-align: center; }
.nxa-dash-stat .value { font-size: 24px; font-weight: 700; color: #1e293b; }
.nxa-dash-stat .label { font-size: 12px; color: #64748b; margin-top: 4px; }
.nxa-my-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.nxa-my-course { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.nxa-my-course .nxa-progress-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.nxa-my-course .nxa-progress-fill { height: 100%; background: #2563eb; border-radius: 4px; transition: width 0.3s; }
