/* Estilo básico para o corpo */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* Estilizando o título */
h1 {
    text-align: center;
    color: #2c3e50;
}
h2 {
    text-align: center;
    color: #2c3e50;
}

/* Estilizando a lista de carros */
ul {
    list-style-type: none;
    padding: 0;
}

/* Estilizando cada item da lista */
li {
    margin: 10px 0;
    text-align: center;
    
}

/* Estilizando os botões */
.salvar {
    width:200px;
    height:60px;
    background-color: #3498db;
}


.btn-cancelar {
        /* padding: 10px 20px; */
    background-color: #000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 23px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 220px;
    height: 40px;
}

button.btn-salvar {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button.btn-salvar:hover {
    background-color: #45a049;
}

button {
        /* padding: 10px 20px; */
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 23px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 150px;
    height: 40px;
}

button p{
    margin-top:15px;
    text-transform: uppercase;
}

#alerta{ text-transform: uppercase;
    
}

/* Efeito ao passar o mouse sobre os botões */
/*button:hover {
    background-color: #2980b9;
}*/

/* Estilizando a área de alertas */
#alerta {
    margin-top: 20px;
    padding: 15px;
    background-color: #e74c3c;
    color: white;
    border-radius: 5px;
    text-align: center;
}

/* Estilizando o botão de cancelar */
#cancelarAlerta {
    margin-top: 10px;
    background-color: #e67e22;
}

#cancelarAlerta:hover {
    background-color: #d35400;
}

/* Estilos gerais */

/* Container geral para os carros */
.carros-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Estilos individuais para cada carro (formato de cartão) */
.carro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px; /* Ajuste a largura conforme necessário */
    padding: 10px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Efeito ao passar o mouse */
.carro-item:hover {
    transform: scale(1.05);
}

/* Estilos para o nome e modelo */
.carro-nome, .carro-modelo {
   font-size: 18px;
    margin: 5px 0;
    font-weight: 700;
    text-transform: uppercase;
}

/* Estilos específicos para a placa */
.carro-placa {
    background-image: url(https://portariaiff.flaviodavila.com/img/placa.png);
    /*background-size: 140px 60px;*/
    background-size: cover;
    color: #000;
    font-weight: bold;
    font-size: 23px;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    text-transform: uppercase;
}

/* Formulário de cadastro */
form {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
    font-size: 38px; /* Aumenta o tamanho da fonte */
}

form input[type="text"] {
    width: 100%;
    height: 80px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 35px; /* Aumenta o tamanho da fonte */
    
}

form .btn-salvar {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 65px;
    height: 110px;
}

form .btn-salvar:hover {
    background-color: #218838;
}

/* Lista de carros */
#lista-carros {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 90%;

}

#lista-carros li {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 45px;
}

#lista-carros li:hover {
    background-color: #f9f9f9;
}

#lista-carros li p {
    margin: 0;
    font-size: 35px; /* Aumenta o tamanho da fonte */
    font-weight: bold;
    color: #333;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    form label, form input[type="text"], form .btn-salvar {
        font-size: 40px; /* Aumenta o tamanho da fonte do formulário no mobile */
    }

    #lista-carros li p {
        font-size: 35px; /* Aumenta o tamanho da fonte na lista no mobile */
    }

    #lista-carros li {
        flex-direction: column;
        text-align: center;
        padding: 20px; /* Aumenta o espaçamento no mobile */
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background-color: #4CAF50;
    color: white;
    font-size: 25px;
}

td {
    background-color: #f9f9f9;
    font-size: 32px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

a {
    text-decoration: none;
    color: #2196F3;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Mensagens de sucesso e erro */
p {
    text-align: center;
    font-size: 18px;
}

p[style*="color: green;"] {
    color: #28a745;
}

p[style*="color: red;"] {
    color: #dc3545;
}

/* Responsividade */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        background-color: #4CAF50;
        font-size: 16px;
        text-align: left;
    }

    td {
        font-size: 14px;
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }

    td[data-label="Ações"] {
        text-align: center;
    }

    tr {
        margin-bottom: 20px;
    }
}


/* Estilo para botões de ação */
.btn-acao {
    padding: 8px 12px;
    margin: 0 5px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.btn-editar {
    background-color: #4CAF50; /* Verde para editar */
}

.btn-excluir {
    background-color: #f44336; /* Vermelho para excluir */
}

.btn-ver {
    background-color: #2196F3; /* Azul para ver página */
}

.btn-acao:hover {
    opacity: 0.8;
}