/* Estilos para Desktop (base) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: .5;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    align-items: center; /* Centraliza o conteúdo verticalmente */
/*    height: 100vh; Garante que o body ocupe a altura total da tela */
}

.container {
    width: 25%;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}
h1 {
    margin-bottom: 30px;    
}
h2, h3, h4 {
    color: #0056b3;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-top: 20px;
}

form {
    display: flex;
    flex-direction: column;
/*    gap: 5px;  Espaço entre os elementos do formulário */
    align-items: center;
}

input, select, button {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    width: 80%;

}

input {
    width: 95%;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.actions a {
    text-decoration: none;
    padding: 12px 20px;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.actions a:hover {
    background-color: #007bff;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    color: #495057;
}

/* Classes de mensagens */
.mensagem {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.erro {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Estilos específicos para o formulário de horários */
.horario-item, .telefone-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.horario-item select,
.horario-item input[type="time"] {
    flex: 1;
}

select {
    width: 110px;
}
/* MEDIA QUERIES para responsividade */

/* Telas de tablet (ex: 768px a 992px) */
@media (max-width: 992px) {
    .container {
        width: 40%;
        padding: 20px;
    }
    .actions {
        flex-direction: column;
    }
}

/* Telas de celular (ex: até 767px) */
@media (max-width: 767px) {
    body {
        padding: 10px;
    }
    .container {
        width: 60%;
        padding: 15px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .horario-item {
        flex-direction: column;
    }
    .actions a,
    button[type="submit"] {
        padding: 15px;
    }
}
