/* style.css */
/* ead/assets/css/style.css */

:root {
    --cor-primaria: #2563eb;
    --cor-primaria-escura: #1d4ed8;
    --cor-fundo: #f4f6f9;
    --cor-texto: #1f2937;
    --sidebar-largura: 250px;
    --bottomnav-altura: 64px;
}

body {
    background: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    padding-bottom: var(--bottomnav-altura);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar (desktop) ---- */
.app-sidebar {
    width: var(--sidebar-largura);
    background: #111827;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 1rem 0.75rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.1rem;
    padding: .75rem .5rem 1.5rem;
}
.sidebar-brand-logo {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    border-radius: .5rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: .95rem;
    transition: background .15s;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.sidebar-link.active {
    background: var(--cor-primaria);
    color: #fff;
}

.app-content {
    flex: 1;
    margin-left: 0;
}

@media (min-width: 992px) {
    .app-content {
        margin-left: var(--sidebar-largura);
    }
}

/* ---- Bottom nav (mobile) ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottomnav-altura);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: .68rem;
    color: #6b7280;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.bottom-nav-link i {
    font-size: 1.25rem;
}

.bottom-nav-link.active {
    color: var(--cor-primaria);
}

/* ---- Componentes gerais ---- */
.card-curso img {
    height: 160px;
    object-fit: cover;
}

.progress-thin {
    height: 8px;
}

.lesson-item.completed {
    color: #16a34a;
}

.editor-toolbar-wrap .ql-toolbar {
    border-radius: .5rem .5rem 0 0;
}

.editor-toolbar-wrap .ql-container {
    border-radius: 0 0 .5rem .5rem;
    min-height: 400px;
}
.editor-toolbar-wrap .ql-editor {
    min-height: 400px;
    max-height: 700px;
    overflow-y: auto;
}
