/* Reset básico para remover margens e padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configurações de corpo */
body {
    font-family: 'Arial', sans-serif;
    background-image: url("./fundo.png");
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
h1{
    font-size: 25px;
    margin-bottom: 20px;
}
/* Container principal */
#app-screen {
    width: 70%;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

/* Tela de Login */
#login-screen {
    text-align: center;
    padding: 30px;
    background-color: #4e4e4e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

h2 {
    margin-bottom: 20px;
    font-size: 12px;
    color: #fff;
}

#login-button {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#login-button:hover {
    background-color: #3367d6;
}

/* Cabeçalho */
#app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Barra de pesquisa */
#search-bar {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    width: 60%;
    transition: background-color 0.3s ease;
    margin-bottom:10px;
}

#search-bar:focus {
    background-color: #555;
    outline: none;
}

#search-button {
    background-color: #4e9af1;
    color: #fff;
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 35%;
    margin-bottom:10px;
}

#search-button:hover {
    background-color: #3b80d0;
}

/* Botão de sair */
#logout-button {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    font-size: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 25%;
}

#logout-button:hover {
    background-color: #d32f2f;
}

/* Container das notas */
#notes-container {
    margin-bottom: 20px;
}

.note {
    background-color: #444;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.note h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.note p {
    margin: 5px 0;
    font-size: 14px;
}

button {
    background-color: #f1c40f;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #f39c12;
}

button:active {
    background-color: #e67e22;
}

/* Destacar notas perto do vencimento */
.highlighted {
    border: 2px solid #f39c12;
    background-color: #e67e22;
    color: #fff;
}

/* Formulário de adicionar nota */
#add-note-form {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    
}
#password-form {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

form label {
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

form input, form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    font-size: 18px;
}

form input:focus, form select:focus {
    outline: none;
    background-color: #444;
}

/* Botões de salvar e cancelar */
form button {
    width: 45%;
    margin: 10px 1%;
    background-color: #4e9af1;
    border-radius: 5px;
}

#cancel-button {
    background-color: #e74c3c;
}

#cancel-button:hover {
    background-color: #c0392b;
}

form button:hover {
    background-color: #3b80d0;
}

/* Button para adicionar nota */
#add-note-button {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-note-button:hover {
    background-color: #27ae60;
}

/* Animações de transição */
#add-note-form, #app-screen {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Restante do CSS */

/* Botão para adicionar nota */
#add-note-button {
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 20px; /* Espaçamento abaixo do botão */
    width: 100%;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
}

#add-note-button:hover {
    background-color: #27ae60;
}

/* Container das notas */
#notes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note {
    background-color: #444;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Destacar notas perto do vencimento */
.highlighted {
    border: 2px solid #f39c12;
    background-color: #e67e22;
    color: #fff;
}
.realHighlighted{
    border: 4px solid #890c0c;
    background-color: #e62222;
    color: #fff;
}
#delet-password-form {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#toggle-closed-notes-button{
    width: 100%;
    margin-bottom:10px;
}
.spa{
    padding: 10px;
    border-width: 2px;
    border-radius: 15px;
    margin: 10px;
}
legend{
    font-size: 22px;
}
/* Modal estilizado */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Conteúdo do modal */
.modal-content {
    background-color: #2c2c2c;
    padding: 25px;
    border-radius: 15px;
    width: 50%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
    animation: slideDown 0.3s ease-in-out;
}

/* Botão de fechar */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    background: #ff4b4b;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
}

.close-button:hover {
    background: #d43f3f;
}

/* Estilizando os títulos */
.modal-content h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Informações do cliente */
#modal-body p {
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Seção de indicações */
#modal-body h4 {
    font-size: 18px;
    margin-top: 15px;
    color: #4eb8f1;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
    }
    to {
        transform: translateY(0);
    }
}
/* Estilizando o formulário */
#add-note-form {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
    width: 90%;
    margin: auto;
    display: none;
    transition: all 0.3s ease-in-out;
}

/* Título do formulário */
#add-note-form h3 {
    text-align: center;
    font-size: 22px;
    color: #4eb8f1;
    margin-bottom: 15px;
}

/* Estilizando os grupos de campos */
fieldset {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #333;
}

/* Legenda dos fieldsets */
legend {
    font-size: 18px;
    font-weight: bold;
    color: #4eb8f1;
    padding: 5px 10px;
}

/* Estilizando labels */
form label {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Inputs e selects */
form input,
form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #222;
    color: white;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
    margin-bottom: 10px;
}

form input:focus,
form select:focus {
    outline: none;
    background-color: #333;
    border-color: #4eb8f1;
}

/* Botões */
form button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    margin-top: 10px;
}

/* Botão de salvar */
form button[type="submit"] {
    background-color: #2ecc71;
    color: white;
}

form button[type="submit"]:hover {
    background-color: #27ae60;
}

/* Botão de cancelar */
#cancel-button {
    background-color: #e74c3c;
    color: white;
}

#cancel-button:hover {
    background-color: #c0392b;
}

/* Botões para adicionar placas/emissores */
button.add-placa-button,
button.add-emissor-button {
    background-color: #3498db;
    color: white;
    width: auto;
    padding: 8px 15px;
    border-radius: 6px;
    margin-top: 5px;
}

button.add-placa-button:hover,
button.add-emissor-button:hover {
    background-color: #2980b9;
}

/* Lista de placas e emissores */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background-color: #444;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul li button {
    background-color: #e74c3c;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
}

ul li button:hover {
    background-color: #c0392b;
}

/* Animação de transição */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsividade para dispositivos com largura máxima de 768px (tablets e smartphones em modo paisagem) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #app-screen, #add-note-form, #login-screen {
        width: 100%;
        margin-top: 10px;
        padding: 15px;
    }

    #search-bar {
        width: 100%;
        margin-bottom: 10px;
    }

    #search-button {
        width: 100%;
        margin-bottom: 10px;
    }

    #logout-button {
        width: 100%;
    }

    .note {
        padding: 12px;
    }

    h1 {
        font-size: 20px;
    }

    #app-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Modificando a largura do botão de adicionar nota */
    #add-note-button {
        font-size: 14px;
    }

    /* Modificando o formulário */
    form input, form select, form button {
        font-size: 16px;
    }

    #modal-body p, #modal-body h4 {
        font-size: 14px;
    }
}

/* Responsividade para dispositivos com largura máxima de 480px (smartphones) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 18px;
    }

    #app-screen, #login-screen, #add-note-form {
        padding: 10px;
    }

    #app-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #search-bar {
        width: 100%;
    }

    #search-button {
        width: 100%;
    }

    #logout-button {
        width: 100%;
    }

    .note {
        padding: 10px;
    }

    button {
        font-size: 16px;
        padding: 8px 16px;
    }

    /* Alterando botões */
    #add-note-button {
        font-size: 12px;
        width: 100%;
    }

    form button {
        font-size: 14px;
    }
}

/* Responsividade para dispositivos com largura máxima de 320px (telas menores de smartphones) */
@media (max-width: 320px) {
    h1 {
        font-size: 16px;
    }

    #app-screen, #login-screen, #add-note-form {
        padding: 8px;
    }

    #search-bar, #search-button, #logout-button, #add-note-button {
        font-size: 14px;
    }

    .note {
        padding: 8px;
    }

    form button {
        font-size: 12px;
    }
}
/* Responsividade para dispositivos com largura máxima de 768px (tablets e smartphones em modo paisagem) */
@media (max-width: 768px) {
    .modal-content {
        width: 80%; /* Ajusta o modal para ocupar 80% da largura da tela */
        max-height: 70vh; /* Ajusta a altura máxima para 70% da altura da tela */
    }
}

/* Responsividade para dispositivos com largura máxima de 480px (smartphones) */
@media (max-width: 480px) {
    .modal-content {
        width: 90%; /* Ajusta o modal para ocupar 90% da largura da tela */
        max-height: 60vh; /* Ajusta a altura máxima para 60% da altura da tela */
    }

    .close-button {
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
}

/* Responsividade para dispositivos com largura máxima de 320px (telas menores de smartphones) */
@media (max-width: 320px) {
    .modal-content {
        width: 95%; /* Ajusta o modal para ocupar 95% da largura da tela */
        max-height: 50vh; /* Ajusta a altura máxima para 50% da altura da tela */
    }

    .close-button {
        top: 5px;
        right: 5px;
        font-size: 16px;
    }
}
/* Botão de sair */
#sair-button {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    font-size: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 25%;
}

#sair-button:hover {
    background-color: #d32f2f;
}
.pobtn{
    width: 8rem;
    height: 3rem;
    margin: 5px;
}