/* ========== TELA DE LOGIN ========== */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.login-header p {
    color: #888;
    margin-top: 8px;
    font-size: 14px;
}

.campo-form {
    margin-bottom: 20px;
}

.campo-form label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}

.campo-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.3s;
}

.campo-form input:focus {
    border-color: #6C5CE7;
}

.btn-entrar {
    width: 100%;
    padding: 14px;
    background: #6C5CE7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-entrar:hover {
    background: #5A4BD1;
}

.link-registro {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

.link-registro a {
    color: #6C5CE7;
    text-decoration: none;
}

.mensagem {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

/* ========== DASHBOARD ========== */
#telaDashboard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f5f6fa;
    z-index: 9999;
    overflow-y: auto; /* scroll na página toda */
}

.topbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar-logo {
    font-size: 22px;
    font-weight: 600;
    color: #6C5CE7;
}

.topbar-direita {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.btn-sair {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-sair:hover {
    background: #f5f5f5;
    color: #e74c3c;
    border-color: #e74c3c;
}

.dashboard-corpo {
    display: flex;
    height: auto; /* remove a altura fixa */
    min-height: calc(100vh - 62px);
}

.area-principal {
    flex: 1;
    padding: 30px;
    overflow-y: visible; /* remove o scroll interno */
}

.sidebar {
    width: 220px;
    background: #fff;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 62px; /* altura da topbar */
    height: fit-content;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar nav a:hover {
    background: #f5f6fa;
    color: #6C5CE7;
    border-left: 3px solid #6C5CE7;
}


.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sidebar {
    position: sticky;
    top: 62px;
    height: fit-content;
}

.area-principal {
    overflow-x: auto;
}


.conteudo-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
}

.conteudo-card h3 {
    color: #333;
    margin-top: 0;
}

.conteudo-card p {
    color: #888;
}

/* ========== SITE ESCONDIDO ========== */
body.rwl-logado .main-header,
body.rwl-logado .main-footer {
    display: none !important;
}

body.rwl-logado {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.rwl-logado .projetos-container {
    padding: 0 !important;
}