/* Estilo geral do corpo */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #7b2cbf, #9d4edd, #c77dff);
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Containers principais */
.index-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo {
    width: 300px;
    margin: 30px auto;
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
}

/* Rodapé */
.footer {
    margin-top: 20px;
    font-size: 16px;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Campos de entrada e botões */
input, button {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
}

input {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #ddd;
}

input::placeholder {
    color: #888;
}

button {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s, transform 0.2s, box-shadow 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #6a0dad, #8a2be2);
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
}

/* Tabela de dados */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    text-align: left;
    font-size: 16px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

th {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

td {
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

td:hover {
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* Barra de pesquisa */
#search {
    width: 80%;
    padding: 15px;
    margin: 20px auto;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

#search::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Mensagens de sucesso e erro */
.success {
    color: #4CAF50;
    font-weight: bold;
    margin: 15px 0;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.error {
    color: #F44336;
    font-weight: bold;
    margin: 15px 0;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botão de logout */
.logout-container {
    text-align: right;
    padding: 10px 20px;
}

.logout-button {
    background: #FF4C4C;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.logout-button:hover {
    background: #E63C3C;
    transform: scale(1.05);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

/* Transição suave ao clicar */
button, input {
    transition: all 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .index-container {
        padding: 20px;
    }

    th, td {
        font-size: 14px;
        padding: 10px;
    }

    #search {
        width: 100%;
    }

    .logo {
        width: 200px;
    }
}
