body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #2e3740;
    color: white;
    padding: 1rem;
    text-align: center;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #284f79;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-weight: bold;
}

form input, form button {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

ul li a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

ul li a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    margin-top: 2rem;
}

.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #4CAF50, #2e3740);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: white;
}

.login-container h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: bold;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-container form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
}

.login-container form input,
.login-container form button {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.login-container form input {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.login-container form input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.login-container form button {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #ff5722;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-container form button:hover {
    background: #e64a19;
}

.login-container form .input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container form .input-group input {
    border: none;
    flex: 1;
    font-size: 1rem;
    color: #333;
}

.login-container form .input-group i {
    font-size: 1.2rem;
    color: #4CAF50;
}

.login-container p {
    font-size: 0.9rem;
    color: #ffcccb;
}

.btn-novo-cliente {
    display: inline-block;
    background-color: #3b56a1;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-novo-cliente:hover {
    background-color: #45a049;
}

/* Tela de produtos */
.produto-catalogo {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.produto-detalhes {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.produto-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.produto-fotos {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.produto-fotos {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.foto-principal img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.miniatura {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.miniatura.ativa {
    border-color: #007bff;
    transform: scale(1.1);
}

.miniatura:hover {
    transform: scale(1.1);
}

.foto {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.foto.ativa {
    display: block;
}

.input-data {
    width: 10rem;
}

/* Estilo geral para os selects */
.select-custom {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    appearance: none; /* Remove o estilo padrão do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.select-custom:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.select-custom option {
    padding: 10px;
}

/* Ajuste para selects menores */
.select-small {
    width: auto;
    min-width: 150px;
}

/* Ajuste para selects maiores */
.select-large {
    width: 100%;
    max-width: 400px;
}

.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}

.seta.esquerda {
    left: 10px;
}

.seta.direita {
    right: 10px;
}

.produto-info {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.produto-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.produto-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.produto-info .status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.status.disponivel {
    background-color: #28a745;
    color: #fff;
}

.status.alugado {
    background-color: #ffc107;
    color: #fff;
}

.status.vendido {
    background-color: #dc3545;
    color: #fff;
}

.botoes {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.btn-detalhes, .btn-editar {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.btn-voltar {
    background-color: #6c757d;
}

.btn-voltar:hover {
    background-color: #5a6268;
}

.btn-detalhes {
    background-color: #007bff;
}

.btn-editar {
    background-color: #28a745;
}

.filtro-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.filtro-produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-direction: row;
}

.filtro-produtos select, .filtro-produtos input {
    flex: 1;
    min-width: 150px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filtro-produtos button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-limpar-filtros {
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.filtro-produtos button, .btn-limpar-filtros {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-limpar-filtros:hover {
    background-color: #c82333;
}

/* pagina de Clientes */
.cliente-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cliente-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.botoes {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.cliente-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cliente-icone {
    font-size: 40px;
    color: #4CAF50;
}

.btn-detalhes, .btn-editar, .btn-voltar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-detalhes {
    background-color: #007bff;
}

.btn-detalhes:hover {
    background-color: #0056b3;
}

.btn-editar {
    background-color: #28a745;
}

.btn-editar:hover {
    background-color: #218838;
}

/* pagina de locacoes */
.locacoes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.locacao-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.locacoes-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.locacoes-card {
    background-color: #fff2d2;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.locacoes-card.atrasado {
    background-color: #ffcccc;
    border: 2px solid #ff0000;
    position: relative;
}

.locacoes-card.proxima-expirar {
    background-color: #fff8cc;
    border: 2px solid #ffcc00;
    position: relative;
}

.locacoes-card i {
    color: #661a1a;
    font-size: 13px;
}

.locacao-card h3 {
    margin: 0 0 8px;
}

.locacao-card .status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
}

.status-pago {
    background-color: green;
}

.status-pendente {
    background-color: orange;
}

.produtos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 4px;
    border-radius: 4px;
}

.locacao-card {
    position: relative;
}

.marca-dagua {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    transform: rotate(-15deg);
}

.produto {
    position: relative;
    display: inline-block;
}

.codigo-produto {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 70%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.detalhes-pagamento p {
    font-size: 1rem;
    margin: 10px 0;
    align-items: center;
    gap: 10px;
}

.detalhes-pagamento i {
    color: #003642;
    font-size: 1.2rem;
}

.btn-pagar, .btn-devolver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-acessar {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #881717;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-acessar i {
    color: #fff;
}

.btn-acessar:hover {
    background-color: #3a1313;
}

.btn-inativo {
    background-color: #ccc!important;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.input-custom, .select-custom {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-custom:focus, .select-custom:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.btn-confirmar {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.icone-pagamento {
    color: green;
    cursor: pointer;
    margin-left: 5px;
}

.btn-confirmar:hover {
    background-color: #45a049;
}

.btn-pagar {
    background-color: #28a745;
}

.btn-pagar:hover {
    background-color: #218838;
}

.btn-devolver {
    background-color: #dc3545;
}

.btn-devolver:hover {
    background-color: #c82333;
}

.btn-pagar i, .btn-devolver i {
    margin-right: 5px;
}

/* pagina detalhes do cliente */
.cliente-detalhes, .cliente-historico {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cliente-detalhes h3, .cliente-historico h3 {
    margin-bottom: 15px;
    color: #555;
}

.locacao-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff2d2;
}

.locacao-card.finalizada {
    background-color: #f0f0f0;
}

.locacoes-ativas {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.locacoes-ativas h4 {
    margin-bottom: 1rem;
    color: #284f79;
    font-size: 1.2rem;
    font-weight: bold;
}

.locacoes-ativas p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locacoes-ativas i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.link-sem-estilo {
    text-decoration: none; /* Remove o sublinhado */
    color: inherit; /* Mantém a cor do texto */
}

.link-sem-estilo:hover {
    color: #007bff; /* Cor ao passar o mouse */
}

.btn-novo-cliente {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #3b56a1;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-novo-cliente:hover {
    background-color: #45a049;
}

.btn-filtrar, .btn-limpar-filtros {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-filtrar {
    background-color: #17a2b8;
}

.btn-filtrar:hover {
    background-color: #138496;
}

.btn-limpar-filtros {
    background-color: #dc3545;
}

.btn-limpar-filtros:hover {
    background-color: #c82333;
}

i {
    margin-right: 5px;
}

.btn-novo-cliente:hover {
    background-color: #0056b3;
}

/* pagina de dashboard */
.controle-container, .locacoes-proximas-container, .pagamentos-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
}

.pagamentos-container h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.controle-container ul {
    list-style: none;
    padding: 0;
}

.controle-container ul li {
    margin: 10px 0;
}

.controle-container ul li a {
    text-decoration: none;
    color: #284f79;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.controle-container ul li a:hover {
    color: #0056b3;
}

.pagamentos-lista {
}

.pagamentos-lista li {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    gap: 8px;
}

.pagamentos-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #284f79;
}

.pagamento-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor:pointer;
}

.pagamento-detalhe {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagamento-detalhe i {
    color: #284f79;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    main {
        margin: 1rem;
        padding: 1rem;
    }

    header nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .login-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .login-container form div {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-container form label {
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .filtro-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .filtro-produtos {
        flex-direction: column;
        width: 100%;
    }

    .produto-detalhes {
        flex-direction: column;
        align-items: center;
    }

    .produto-info {
        margin-top: 20px;
    }
    .pagamentos-container h2 {
        font-size: 1.2rem; /* Reduz o tamanho da fonte */
        text-align: center;
    }

    .pagamento-item {
        flex-direction: column; /* Coloca as informações em coluna */
        align-items: flex-start;
    }

    .pagamento-detalhe {
        justify-content: flex-start;
        gap: 10px;
    }
}