/* Estilos Gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn.lixeira {
    background: #e74c3c;
    margin-top: auto;
}

/* Lista de Notas */
.lista-notas {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

.nota-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nota-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.nota-titulo {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.nota-meta {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.nota-conteudo-resumo {
    font-size: 13px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.2);
    opacity: 0.9;
    line-height: 1.4;
}

/* Área de Conteúdo */
.conteudo {
    flex: 1;
    padding: 30px;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

/* Formulário */
#form-nota {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#nota-titulo {
    font-size: 24px;
    padding: 15px;
    border: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-weight: 600;
    outline: none;
}

#nota-conteudo {
    flex: 1;
    padding: 15px;
    border: none;
    resize: none;
    line-height: 1.6;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

/* Botões */
.botoes {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.botoes .btn {
    margin-bottom: 0;
    flex: 1;
}

.btn.salvar {
    background: #3498db;
}

.btn.salvar-novo {
    background: #f39c12;
}

.btn.historico {
    background: #9b59b6;
}

.btn.lixeira {
    background: #e74c3c;
}

.btn.restaurar {
    background: #2ecc71;
}

/* Lixeira */
#nota-view {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

#nota-titulo-view {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 22px;
}

#nota-conteudo-view {
    white-space: pre-wrap;
    line-height: 1.6;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.login-container button:hover {
    background: #2980b9;
}

.erro {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .botoes {
        flex-wrap: wrap;
    }
    .botoes .btn {
        min-width: 45%;
    }
}