/* General Styles */
body {
    font-family: Arial, sans-serif; /* Consistent font across the application */
    margin: 0;
    padding: 0;
    background-color: #F5F5F5; /* Light gray background */
    color: #333333; /* Dark gray text */
}

/* Header Styles */
header {
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Vertically center items */
    justify-content: center; /* Center header content horizontally */
    background-color: #009FE3; /* Kumon Blue */
    color: white;
    padding: 15px;
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    gap: 15px; /* Space between logo and text */
}

header img {
    height: 50px; /* Logo size */
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
}

/* Responsive Adjustments for Header */
@media (max-width: 810px) {
    header {
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
        text-align: center;
    }

    header img {
        height: 40px; /* Smaller logo for small screens */
        margin-bottom: 5px;
    }

    header h1 {
        font-size: 1.5em; /* Slightly smaller text on small screens */
    }
}

/* Main Content Styling */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Table Styling */
.responsive-table {
    overflow-x: auto; /* Enable horizontal scrolling */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background-color: #009FE3; /* Kumon Blue */
    color: white;
}

thead th {
    padding: 10px;
    font-size: 1.1em;
}

tbody tr:nth-child(odd) {
    background-color: #F5F5F5; /* Light gray for alternate rows */
}

tbody tr:nth-child(even) {
    background-color: #FFFFFF; /* White for even rows */
}

tbody td {
    padding: 10px;
    font-size: 1em;
}

/* Button Styling */
tbody td button {
    padding: 10px 15px;
    font-size: 1em;
    background-color: #009FE3; /* Kumon Blue */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

tbody td button:hover {
    background-color: #007AB8; /* Darker blue on hover */
}

tbody td button.sign-out {
    background-color: #DC3545; /* Red for Sign Out */
}

tbody td button.sign-out:hover {
    background-color: #C82333; /* Darker red */
}

/* Disabled Button */
button.disabled {
    background-color: #cccccc; /* Light gray for disabled buttons */
    color: #666666; /* Dark gray text */
    cursor: not-allowed; /* Disabled cursor */
    border: none;
}

/* Larger Buttons for Touch Screens */
@media (max-width: 768px) {
    tbody td button {
        font-size: 1.2em;
        padding: 15px;
    }

    thead th {
        font-size: 1em;
    }

    tbody td {
        font-size: 0.9em;
    }
}

/* Hide table columns on smaller screens */
@media (max-width: 480px) {
    table th:nth-child(2), table td:nth-child(2) {
        display: none; /* Hide status column */
    }

    table th:nth-child(3), table td:nth-child(3) {
        text-align: center;
    }
}

/* Adjustments for Larger Tablets (iPad 10 and Similar) */
@media (min-width: 810px) {
    main {
        max-width: 80%; /* Use more screen width */
        margin: 0 auto;
    }

    table {
        font-size: 1.1em; /* Larger font size for better visibility */
    }

    tbody td {
        padding: 12px;
    }

    tbody td button {
        font-size: 1em;
        padding: 12px 20px;
    }
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 10px;
    font-size: 1.8em;
    color: #333;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.login-container button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background: #0056b3;
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 5px; /* Spacing between letters */
    flex-wrap: wrap;
}

.alphabet-filter button {
    padding: 10px 15px;
    font-size: 1em;
    background-color: #009FE3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.alphabet-filter button:hover {
    background-color: #007AB8;
}

.alphabet-filter button.disabled {
    background-color: #CCCCCC; /* Disabled style */
    color: #666666;
    cursor: not-allowed;
}

/* Payment Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex; /* Display active modal */
}

.modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal for Mobile */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
    }
}

/* Modal Form Styling */
.modal-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}
.modal-content select, 
.modal-content input, 
.modal-content textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
