/* Basic styling for the Academy Undermarket platform */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f8fa;
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: #202b3b;
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar .logo img {
    max-width: 140px;
    height: auto;
}

.sidebar .user-info {
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.sidebar .nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sidebar .nav a {
    padding: 12px 20px;
    color: #f4f4f4;
    display: block;
}

.sidebar .nav a:hover, .sidebar .nav a.active {
    background-color: #0d6efd;
    color: #fff;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    overflow-y: auto;
}

.header {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

/* Forms */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0b5ed7;
}

.question {
    margin-bottom: 15px;
}

.question h4 {
    margin: 0 0 5px 0;
}

.question .options label {
    display: block;
    margin-bottom: 5px;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
/* Plataforma ampliada */
main.content { box-sizing: border-box; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:18px; margin-bottom:18px; box-shadow:0 8px 20px rgba(15,23,42,.06); }
.form-card input, .form-card textarea, .form-card select, .datatable select, .chat-feedback textarea, input[type="email"], input[type="url"], input[type="number"], textarea, select { width:100%; padding:9px; border:1px solid #cfd6df; border-radius:8px; box-sizing:border-box; font-family:inherit; }
.grid-form { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; align-items:end; }
.grid-form.wide { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-form .full { grid-column: 1 / -1; }
.btn.secondary { background:#64748b; }
.btn.small { padding:6px 10px; font-size:13px; }
.pill { display:inline-block; background:#eef2ff; color:#1e3a8a; border-radius:999px; padding:4px 9px; margin:2px; font-size:12px; }
.pill.ok { background:#dcfce7; color:#166534; }
.pill.bad { background:#fee2e2; color:#991b1b; }
.datatable th { background:#f8fafc; }
.inline-form { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; margin:2px 0; }
.link-danger { background:none; border:0; color:#dc2626; cursor:pointer; }
.course-hero { display:flex; gap:18px; align-items:flex-start; background:linear-gradient(135deg,#f8fafc,#eff6ff); border-radius:16px; padding:18px; }
.course-cover { width:180px; max-height:130px; object-fit:cover; border-radius:14px; border:1px solid #dbeafe; }
.resource-pre { white-space:pre-wrap; background:#f8fafc; padding:12px; border-radius:10px; }
.timeline { display:grid; gap:14px; }
.timeline-item { display:flex; gap:14px; }
.timeline-number { min-width:42px; height:42px; border-radius:50%; background:#0d6efd; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:bold; }
.dynamic-row { display:grid; grid-template-columns: 1.2fr .8fr 2fr; gap:10px; margin-bottom:10px; }
.question-editor { border:1px dashed #cbd5e1; padding:14px; border-radius:12px; margin:12px 0; background:#f8fafc; }
.muted { color:#64748b; }
.course-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:18px; }
.course-card { border:1px solid #e5e7eb; border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.08); }
.course-thumb { height:110px; background:linear-gradient(135deg,#0d6efd,#38bdf8); background-size:cover; background-position:center; }
.course-card-body { padding:16px; }
.progressbar { height:10px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.progressbar span { display:block; height:100%; background:#0d6efd; }
.learning-path { display:grid; gap:18px; }
.module-card { border-radius:18px; border:1px solid #e2e8f0; padding:18px; background:#fff; box-shadow:0 8px 18px rgba(15,23,42,.06); position:relative; }
.module-card.completed { border-color:#86efac; background:#f0fdf4; }
.module-card.locked { opacity:.65; background:#f8fafc; }
.module-status { float:right; font-weight:bold; }
.material-grid { display:grid; gap:10px; margin:14px 0; }
.material-link { display:flex; gap:10px; align-items:center; padding:10px; border:1px solid #dbeafe; border-radius:12px; background:#eff6ff; color:#0f172a; }
.material-link:hover { text-decoration:none; background:#dbeafe; }
.material-icon { font-size:26px; }
.material-link small { display:block; color:#475569; margin-top:2px; }
.progress-module { border-left:4px solid #0d6efd; margin:14px 0; padding-left:14px; }
.attempt-box { background:#f1f5f9; border-radius:10px; padding:10px; margin:8px 0; }
.chat-feedback { border-radius:16px; padding:12px 14px; margin:10px 0; max-width:920px; }
.chat-feedback.right { background:#ecfdf5; border:1px solid #bbf7d0; }
.chat-feedback.wrong { background:#fff7ed; border:1px solid #fed7aa; }
.teacher-note { background:#fff; border-radius:12px; padding:10px; border:1px solid #e2e8f0; }
@media (max-width: 900px) { .container{display:block}.sidebar{width:100%}.grid-form,.grid-form.wide,.dynamic-row{grid-template-columns:1fr}.course-hero{display:block}.course-cover{width:100%;max-height:220px;margin-bottom:12px} }
