/* --- RESET / GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #141e30, #243b55);
    color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CONTAINER PRINCIPAL --- */
.container {
    background: rgba(0, 0, 0, 0.75);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    width: 95%;
    max-width: 500px;
    margin: 20px auto;

    /* ALINHAMENTO */
    display: flex;
    flex-direction: column;
    align-items: center;   /* <- CENTRALIZA HORIZONTAL */
    text-align: center;
}

/* --- INPUTS & BOTÕES CENTRALIZADOS --- */
input, textarea, button {
    width: 80%;             /* <- pega 80% do container */
    max-width: 400px;       /* <- limite pra não ficar gigante em tela grande */
    display: block;
    margin: 10px auto;
}

/* --- TITULOS --- */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #fff;
}

/* --- INPUTS & TEXTAREA --- */
input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border 0.3s ease, background 0.3s ease;
}

input:focus, textarea:focus {
    border: 1px solid #ff416c;
    background: rgba(255, 255, 255, 0.12);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- BOTÕES --- */
button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- HEADER DO DIÁRIO --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* --- LISTA DE NOTAS --- */
#listaNotas {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

#listaNotas li {
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

#listaNotas li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

#listaNotas span {
    flex: 1;
    text-align: left;
    word-break: break-word;
}

/* --- BOTÃO DELETAR --- */
#listaNotas button {
    width: auto;
    margin: 0;
    margin-left: 15px;
    background: #ff4d4d;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.3s ease;
}

#listaNotas button:hover {
    background: #ff1a1a;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }
}

