* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1400px; margin: 0 auto; padding: 2rem; }
h1 { margin-bottom: 1.5rem; }
h2 { margin-bottom: 1rem; }

/* Login */
.login-container { max-width: 400px; margin-top: 10vh; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.login-container h1 { text-align: center; font-size: 1.4rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 0.6rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
button { width: 100%; padding: 0.7rem; background: #2563eb; color: #fff; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; }
button:hover { background: #1d4ed8; }
.error { background: #fee2e2; color: #991b1b; padding: 0.6rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }

/* Header bar */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #ddd; }
.header-links a { margin-left: 1rem; color: #2563eb; text-decoration: none; }
.header-links a:hover { text-decoration: underline; }

/* Content list */
.content-list { list-style: none; }
.content-item { background: #fff; padding: 1rem 1.2rem; margin-bottom: 0.5rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.content-item a { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.content-item a:hover { text-decoration: underline; }
.content-item .meta { font-size: 0.85rem; color: #666; margin-top: 0.3rem; }

/* Dashboard */
.dashboard-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.dashboard-table th, .dashboard-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
.dashboard-table th { background: #f8fafc; font-size: 0.85rem; text-transform: uppercase; color: #64748b; }
.dashboard-table tr:last-child td { border-bottom: none; }
.export-btn { display: inline-block; padding: 0.5rem 1.2rem; background: #059669; color: #fff; border-radius: 4px; text-decoration: none; font-size: 0.9rem; margin-bottom: 1rem; }
.export-btn:hover { background: #047857; }
.badge-yes { color: #059669; font-weight: 600; }
.badge-no { color: #dc2626; }
.filter-input { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 1rem; width: 300px; font-size: 0.9rem; }

/* Phase 2.5 additions */
.success { background: #d1fae5; color: #065f46; padding: 0.6rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }
.role-badge { display: inline-block; font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: #e0e7ff; color: #3730a3; margin-left: 0.5rem; vertical-align: middle; }
.course-section { background: #fff; border-radius: 6px; padding: 1.2rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.course-section h2 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.course-section .course-desc { color: #666; font-size: 0.9rem; margin-bottom: 0.8rem; }
.course-section .content-list { padding-left: 0; }
.course-section .content-item { padding: 0.5rem 0.8rem; margin-bottom: 0.3rem; background: #f8fafc; }
.manage-link { font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 4px; background: #2563eb; color: #fff; text-decoration: none; margin-left: 0.5rem; vertical-align: middle; }
.manage-link:hover { background: #1d4ed8; }
.inline-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.inline-form input, .inline-form select { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; }
.inline-form button { width: auto; padding: 0.5rem 1rem; }
.btn-danger-inline { width: auto; padding: 0.3rem 0.7rem; font-size: 0.8rem; background: #dc2626; }
.btn-danger-inline:hover { background: #b91c1c; }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 0.8rem; margin-right: 0.3rem; }
