/* ===== RESET ===== */
* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #333;
}

/* ===== LOGIN ===== */
.login-page {
    background: #f4f6f8;
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.login-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.login-box img {
    max-width: 260px;
    margin-bottom: 30px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #8fb1ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background: #6f97ff;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

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

.sidebar .logo img {
    max-width: 200px;
}

.sidebar nav a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.ativo {
    background: #e8efff;
    font-weight: bold;
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-footer a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

/* ===== CONTEÚDO ===== */
.conteudo {
    flex: 1;
    padding: 40px;
}

/* ===== BOX ===== */
.box {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    max-width: 720px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.box + .box {
    margin-top: 30px;
}

.box h2,
.box h3 {
    margin-top: 0;
}

/* ===== FORMULÁRIOS ===== */
label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}

select {
    width: 100%;
    max-width: 360px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===== INPUTS (ADMIN E USUÁRIO) ===== */
.conteudo input[type="text"],
.conteudo input[type="password"] {
    width: 100%;
    max-width: 360px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* espaçamento entre formulários */
.conteudo form {
    margin-bottom: 10px;
}

/* ===== BOTÕES PADRÃO ===== */
button {
    padding: 10px 14px;
    background: #8fb1ff;
    border: none;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #6f97ff;
}

/* ===== UPLOAD SIMPLES ===== */
.file-picker {
    display: inline-block;
    margin-bottom: 15px;
    cursor: pointer;
}

.btn-file {
    display: inline-block;
    padding: 10px 16px;
    background: #e9eefc;
    color: #2a4cff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #d6ddff;
}

.btn-file:hover {
    background: #dbe4ff;
}

/* ===== LISTA DE ARQUIVOS ===== */
.lista-arquivos {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.lista-arquivos li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.lista-arquivos span {
    word-break: break-all;
}

/* ===== BOTÕES PEQUENOS ===== */
.lista-arquivos li > div {
    display: flex;
    gap: 6px;
}

.lista-arquivos .botao-download {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: #e9eefc;
    color: #2a4cff;
    text-decoration: none;
}

.lista-arquivos .botao-download:hover {
    background: #dbe4ff;
}

/* excluir (neutro, sem vermelho) */
.lista-arquivos button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: #ececec;
    color: #333;
}

.lista-arquivos button:hover {
    background: #dedede;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 15px;
    }

    .sidebar nav {
        display: flex;
        gap: 10px;
        margin-left: auto;
    }

    .sidebar-footer {
        display: none;
    }

    .conteudo {
        padding: 20px;
    }

    .box {
        max-width: 100%;
    }

    .conteudo input[type="text"],
    .conteudo input[type="password"],
    select {
        max-width: 100%;
    }
}
