/* Archivo: styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically if needed */
    min-height: 100vh;
    background-color: #f4f4f4; /* Light background for better visibility */
}

header {
    background-color: #333;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form horizontally */
    justify-content: center; /* Center content vertically */
    padding: 20px;
    width: 100%;
    max-width: 800px; /* Limit content width for larger screens */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for better appearance */
    margin-top: 20px; /* Add space below the header */
}

.hidden {
    display: none;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center; /* Center the form elements */
    text-align: center;
}

label {
    font-weight: bold;
}

input, select, button {
    width: 100%;
    max-width: 400px; /* Set a reasonable width limit */
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
}

#error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center; /* Center buttons horizontally */
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.btn-clear {
    background-color: #f44336;
    color: white;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    input, select, button {
        max-width: 100%; /* Use full width on smaller screens */
    }

    table, th, td {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}
