/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center;    /* Centers content horizontally */
    justify-content: flex-start; /* Aligns items at the top */
    min-height: 100vh;      /* Full screen height */
    width: 100%;            /* Ensures body takes full width */
}

/* Main Heading */
h1 {
    font-size: 2.5em;
    color: #333;
    margin-top: 20px;
    text-align: center;
}

/* Subheading for each table */
h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

/* Confirmação Table (one-row status summary) */
table.confirmacao {
    width: 90%; /* Table takes up 90% of the width */
    max-width: 1200px;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

table.confirmacao th,
table.confirmacao td {
    padding: 12px 15px;
    text-align: center; /* Center the content inside table cells */
    border-bottom: 1px solid #ddd;
}

table.confirmacao th {
    background-color: #000;
    color: #fff;
    font-size: 1.1em;
}

table.confirmacao td {
    font-size: 1.1em;
    color: #333;
}

/* Set equal column widths for the "Confirmação" table */
table.confirmacao th, table.confirmacao td {
    width: 33.33%; /* Equal width for 3 columns */
}

/* Table Styles for the Presença tables */
table {
    width: 90%;              /* Table takes up 90% of the width of the body */
    max-width: 1200px;       /* Prevent tables from growing too large */
    margin: 20px 0;          /* Add spacing between tables */
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Table header and data cell styling */
table th,
table td {
    padding: 12px 15px;
    text-align: center; /* Center the content inside table cells */
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #000000;
    color: #fff;
    font-size: 1.1em;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td {
    font-size: 1em;
    color: #333;
}

table td[colspan="4"] {
    text-align: center;
    font-style: italic;
    color: #000;
    font-size: 1.1em;
    font-weight: bold;
}

/* Center "No Confirmed Presence" or other similar messages */
table td[colspan="4"] {
    text-align: center;
    font-style: italic;
    color: #000;
    font-size: 1.1em;
    font-weight: bold;
}

/* Status Indicators */
table td:last-child {
    font-weight: bold;
}

table td:nth-child(3) {
    text-transform: uppercase;
    color: black; /* Black text in the third column */
    padding: 5px;
    border-radius: 5px;
}

/* Set consistent width for the "Nome" column in other tables */
table.presencas th:nth-child(1), table.presencas td:nth-child(1),
table.rejeitadas th:nth-child(1), table.rejeitadas td:nth-child(1),
table.pendentes th:nth-child(1), table.pendentes td:nth-child(1) {
    width: 30%; /* Adjust as necessary */
}

/* Set consistent width for the "Email" column in other tables */
table.presencas th:nth-child(2), table.presencas td:nth-child(2),
table.rejeitadas th:nth-child(2), table.rejeitadas td:nth-child(2),
table.pendentes th:nth-child(2), table.pendentes td:nth-child(2) {
    width: 40%; /* Adjust as necessary */
}

/* Set consistent width for the "Presenca" column in other tables */
table.presencas th:nth-child(3), table.presencas td:nth-child(3),
table.rejeitadas th:nth-child(3), table.rejeitadas td:nth-child(3),
table.pendentes th:nth-child(3), table.pendentes td:nth-child(3) {
    width: 30%; /* Adjust as necessary */
}

/* Export Button */
button {
    background-color: #000000;    /* Primary button color */
    color: #fff;                  /* White text */
    border: none;                 /* No border */
    border-radius: 5px;           /* Rounded corners */
    padding: 12px 20px;           /* Button padding */
    font-size: 1em;               /* Font size */
    font-weight: bold;            /* Bold text */
    cursor: pointer;              /* Pointer cursor on hover */
    margin: 20px 0;               /* Spacing above and below */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

/* Button hover effect */
button:hover {
    background-color: #fff;    
    color:#000000;  
}

/* Center the button */
button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* General tablet responsiveness for iPads */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust font sizes for better readability on tablet */
    h1 {
        font-size: 2.2em; /* Slightly smaller heading */
    }

    h2 {
        font-size: 1.6em; /* Slightly smaller subheading */
    }

    /* Adjust table width for better alignment on iPad screens */
    table, table.confirmacao {
        width: 95%;         /* Increase width for tablet layout */
        max-width: 1000px;  /* Constrain max-width for tablet */
    }

    /* Reduce padding in cells to fit screen better */
    table th, table td, table.confirmacao th, table.confirmacao td {
        padding: 10px 12px; /* Slightly less padding */
        font-size: 0.95em;   /* Slightly smaller font for tables */
    }

    /* Increase button size for easier touch interaction */
    button {
        padding: 14px 24px;   /* Slightly larger button padding */
        font-size: 1.1em;     /* Slightly larger font */
        max-width: 300px;     /* Constrain button width */
    }

    /* Adjust button and table alignment to center */
    button, table, table.confirmacao {
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjust spacing between tables and headings */
    h2 {
        margin-top: 25px;      /* Reduce top margin */
        margin-bottom: 10px;   /* Reduce bottom margin */
    }

    /* Ensure tables take up more space on iPad screens */
    table {
        margin-top: 15px;
    }
}
