/* ── Copia do estilo original do EAD – style-c27fcaa4.css ── */

/* --- VARIÁVEIS GLOBAIS --- */
:root {
    --cor-primaria: #0056b3;
    --cor-primaria-hover: #004494;
    --cor-fundo-dark: #1a1a2e;
    --cor-sidebar-dark: #161625;
    --cor-fundo-claro: #f4f7fa;
    --cor-texto-escuro: #333;
    --cor-texto-claro: #fff;
    --cor-texto-cinza: #6c757d;
    --border-radius-card: 12px;
    --border-radius-btn: 6px;
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background-color: var(--cor-fundo-claro); color: var(--cor-texto-escuro); }
a { text-decoration: none; }

/* --- COMPONENTES --- */
.btn-primary { background-color: var(--cor-primaria); color: white; padding: 12px 20px; border: none; border-radius: var(--border-radius-btn); font-weight: 600; cursor: pointer; display: inline-block; text-align: center; transition: 0.3s; }
.btn-primary:hover { background-color: var(--cor-primaria-hover); }
.btn-full { width: 100%; }

.card-white { background: white; padding: 30px; border-radius: var(--border-radius-card); box-shadow: var(--sombra-suave); border: 1px solid #e9ecef; }

/* --- LAYOUT DASHBOARD (PC) --- */
.wrapper { display: flex; width: 100%; min-height: 100vh; }

/* Sidebar (Menu Lateral) */
.sidebar {
    width: 260px;
    background-color: var(--cor-sidebar-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header { text-align: center; margin-bottom: 30px; }
.sidebar-logo-img { max-width: 120px; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }
.sidebar-brand-text { font-size: 1.1rem; font-weight: bold; color: #fff; letter-spacing: 0.5px; }

.sidebar-menu { list-style: none; padding: 0; }
.sidebar-menu li { margin-bottom: 5px; }
.menu-category { color: #6c757d; font-size: 0.75rem; text-transform: uppercase; font-weight: bold; margin: 20px 0 10px 15px; letter-spacing: 1px; }

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #adb5bd;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}
.sidebar-link:hover { background-color: rgba(255,255,255,0.05); color: #fff; padding-left: 20px; }
.sidebar-link i { margin-right: 12px; width: 20px; text-align: center; font-size: 1.1rem; }

/* Área Principal */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px;
    background-color: var(--cor-fundo-claro);
}

.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.user-profile { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 40px; height: 40px; background: var(--cor-primaria); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Estilo para Inputs */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* --- RESPONSIVIDADE (CELULAR E TABLET) --- */
@media (max-width: 768px) {
    .wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; padding: 15px; }
    .sidebar-logo-img { max-width: 80px; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .top-header { flex-direction: column; align-items: flex-start; }
    .user-profile { margin-top: 10px; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .card, .card-white { width: 100%; max-width: 100%; }
    .video-container { aspect-ratio: 16/9; height: auto; }
}
