/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f0f4f8;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Heading */
h1 {
    font-size: 2.5em;
    color: #333;
    margin: 0;
    text-align: center;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 600px;
    margin: 10px 0;
}

/* Checked Count Container */
#checkedCountContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    font-size: 1em;
    color: white;
    padding: 10px;
    background-color: #000;
    border-radius: 10px;
}

/* Search Bar Styles */
#search {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add Button Styles */
#addButton {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addButton:hover {
    background-color: #333;
}

/* Add Form Styles */
#addForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

#addForm input[type="text"],
#addForm input[type="email"] {
    width: 80%;
    max-width: 600px;
    padding: 10px;
    margin: 10px 0;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#addForm input[type="submit"] {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addForm input[type="submit"]:hover {
    background-color: #333;
}

/* Main Content Styles */
main {
    margin-top: 200px; /* Adjust based on the height of the fixed header */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Table Styles */
table {
    width: 90%;
    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 th,
table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #000;
    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;
}

/* Checkbox Styles */
input[type="checkbox"] {
    transform: scale(1.5);
    margin: 10px;
}

/* Center the table */
table {
    margin-left: auto;
    margin-right: auto;
}

/* Export Button */
#exportButton {
    background-color: #000000;    /* Primary button color */
    color: #fff;                  /* White text */
    border: none;                 /* No border */
    border-radius: 5px;           /* Rounded corners */
    font-size: 1em;               /* Font size */
    font-weight: bold;            /* Bold text */
    cursor: pointer;              /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
    height: 45px;
    margin-top:10px;
}

/* Button hover effect */
#exportButton:hover {
    background-color: #fff;    
    color:#000000;  
}

/* Center the button */
#exportButton {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* General tablet responsiveness for iPads */
@media (min-width: 414px) and (max-width: 1400px) {
    h1 {
        font-size: 2.2em;
    }

    table {
        width: 95%;
        max-width: 1000px;  
    }

    table th, table td {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    #exportButton {
        display: none;
    }
}