﻿/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 10px;
}

h2 {
    text-align: center;
    color: rgb(36, 51, 80);
    font-size: 18px;
    margin-bottom: 10px;
}

/* Search Input */
#searchInput {
    margin-bottom: 15px;
    padding: 8px;
    width: 90%;
    max-width: 1000px; /* Aligns with the table width */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
table {
    width: 100%;
    max-width: 1000px; /* Matches the input field width */
    margin: 15px auto;
    border-collapse: collapse;
    background-color: #fff;
    table-layout: fixed; /* Enforces column widths from colgroup */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 10px;
    text-align: left;
    font-size: 13px;
    word-wrap: break-word; /* Ensures long text wraps when needed */
}
th {
    background-color: rgb(36, 51, 80);
    color: white;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid #ddd;
    padding: 10px;
    position: relative; /* Needed for indicator positioning */
}

    /* Pointer cursor for sortable headers */
    th.sortable {
        cursor: pointer; /* Changes cursor to pointer */
    }

    /* Style for the sort indicator */
    th .sort-indicator {
        font-size: 12px;
        margin-left: 5px; /* Adds spacing between text and indicator */
        color: #ccc; /* Lighter color for the indicator */
        display: inline-block;
        transition: transform 0.2s ease; /* Smooth rotation */
    }

    /* Highlight on hover */
    th.sortable:hover {
        background-color: rgb(28, 43, 68); /* Slightly darker background */
    }

    /* Change indicator direction when sorted */
    th[data-sort="asc"] .sort-indicator {
        transform: rotate(180deg); /* Rotates indicator for ascending */
        color: white; /* Matches header text color */
    }

    th[data-sort="desc"] .sort-indicator {
        transform: rotate(0deg); /* Normal direction for descending */
        color: white;
    }
td {
    vertical-align: top;
    border-bottom: 1px solid #ddd; /* Adds a subtle row separator */
}

/* Apply hover effect only to rows in tbody */
table tbody tr:hover {
    background-color: rgba(36, 51, 80, 0.1); /* Slight background highlight */
    cursor: pointer; /* Change cursor to pointer */
}

/* Row Styling */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Column Adjustments */

/* Board Name column (35%) */
td:nth-child(1), th:nth-child(1) {
    width: 35%; /* Matches colgroup */
    white-space: normal; /* Allows wrapping */
}

/* Address column (20%) */
td:nth-child(2), th:nth-child(2) {
    width: 20%; /* Matches colgroup */
    white-space: normal;
}

/* Phone column (15%) */
td:nth-child(3), th:nth-child(3) {
    width: 15%; /* Matches colgroup */
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contact column (15%) */
td:nth-child(4), th:nth-child(4) {
    width: 15%; /* Matches colgroup */
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contact Email column (25%) */
td:nth-child(5), th:nth-child(5) {
    width: 25%; /* Matches colgroup */
    white-space: normal; /* Allows wrapping for longer emails */
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    #searchInput {
        width: 100%; /* Full width for smaller screens */
        font-size: 12px;
    }

    th, td {
        font-size: 12px; /* Reduce font size for smaller screens */
        padding: 8px; /* Reduce padding */
    }

    table {
        max-width: 100%; /* Adjusts table width for smaller screens */
    }
}
/* Appointee Table Styles */
#appointeeTable {
    width: 100%; /* Full-width table */
    max-width: 1200px; /* Limit maximum width */
    margin: 15px auto; /* Center the table */
    border-collapse: collapse;
    background-color: #fff;
    table-layout: fixed; /* Enforce column widths */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#appointeeTable th, #appointeeTable td {
    padding: 10px;
    text-align: left;
    font-size: 14px;
    word-wrap: break-word; /* Prevent content overflow */
}

#appointeeTable th {
    background-color: rgb(36, 51, 80);
    color: white;
    border-bottom: 2px solid #ddd;
}

#appointeeTable td {
    border-bottom: 1px solid #ddd;
}

/* Adjusted widths for Effective Date and Required Appointment */
#appointeeTable td:nth-child(5), #appointeeTable th:nth-child(5) {
    width: 12%; /* Effective Date */
    white-space: nowrap; /* Prevent wrapping */
    text-overflow: ellipsis; /* Show ellipsis for overflow */
    overflow: hidden;
}

#appointeeTable td:nth-child(7), #appointeeTable th:nth-child(7) {
    width: 15%; /* Required Appointment */
    word-wrap: break-word; /* Allow wrapping for longer text */
}

#appointeeTable td:nth-child(8), #appointeeTable th:nth-child(8) {
    width: 8%; /* Term Years */
    text-align: center; /* Optional: Center align for numerical values */
}

/* Modern Button Styles */
#backButton {
    background-color: #243350; /* Dark blue background */
    color: white; /* White text */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 20px; /* Padding for a larger click area */
    font-size: 14px; /* Slightly larger text */
    font-weight: bold; /* Bold text for visibility */
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}

#backButton:hover {
    background-color: #1b2a42; /* Slightly darker background on hover */
    transform: translateY(-2px); /* Lift effect on hover */
}

#backButton:active {
    background-color: #162238; /* Even darker background on click */
    transform: translateY(1px); /* Pressed effect */
}
#disclaimer {
    font-size: 12px; /* Smaller text */
    font-style: italic; /* Italics for the text */
    color: #333; /* Neutral text color */
    padding: 10px; /* Optional spacing */
    text-align: center; /* Center the text */
    border: none; /* Remove the border */
}
#headerImage {
    text-align: center;
    margin-bottom: 10px; /* Add some spacing below the image */
}

#headerImage img {
    max-width: 100px; /* Set a maximum width for the image */
    height: auto; /* Maintain aspect ratio */
}


