﻿/* General Styles for the Page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
table.dataTable tbody tr {
    white-space: nowrap;
    background-color: transparent;
}
    table.dataTable tbody tr td {
        text-align: center;
    }
/* Stylish Grid */
#membersTable {
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    /*min-width: 1200px;*/ /* Adjust as needed */
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
    #membersTable #headtStyle thead input {
        width: 100%;
        /* padding: 4px; */
        box-sizing: border-box;
        color: white;
    }
.dataTables_wrapper {
    padding-top:10px;
}
    .dataTables_wrapper .dataTables_filter{
        padding-bottom: 5px;
    }
table.dataTable thead > tr > th.sorting:before {
    color: #4CAF50;
    opacity: 10.125;
}
table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:after {
    color: #4CAF50;
    opacity: 10.125;
}
#membersTable #headtStyle th {
    background: linear-gradient(90deg, #4CAF50, #008CBA);
    color: #fff;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #c7abab;
}

    #membersTable #headtStyle th, #membersTable #headtStyle td {
        padding: 6px 5px;
        border: 1px solid #ddd;
    }

    #membersTable #headtStyle tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    #membersTable #headtStyle tr:hover {
        background-color: #f1f1f1;
        transition: background-color 0.3s ease;
    }

    #membersTable #headtStyle th {
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* Filter Form Styles */
#filterForm {
    position: absolute;
    top: 80px; /* Adjust as per header height in layout */
    right: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 37-px;
    font-size: 14px;
}

    #filterForm label {
        margin-right: 10px;
    }

    #filterForm select, #filterForm button {
        padding: 5px 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        outline: none;
    }

    #filterForm button {
        background-color: #4CAF50;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        #filterForm button:hover {
            background-color: #45a049;
        }

/* Ensure the table wrapper has horizontal scrolling */
/*#membersTable_wrapper {
    overflow-x: auto;
    width: 100%;
}
*/
/* Ensure the table doesn't shrink and has a minimum width */
/*#membersTable {*/
    /*width: 100% !important;*/
   /* min-width: 1200px;*/ /* Adjust this value based on your column widths */
/*}*/

/* Style the horizontal scrollbar */
#membersTable_wrapper::-webkit-scrollbar {
    height: 8px;
}

#membersTable_wrapper::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

#membersTable_wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}
/* Keep pagination and search box fixed */
.dataTables_length, .dataTables_filter, .dataTables_paginate {
    position: sticky;
    left: 0;
    background: white; /* Prevent overlap issues */
    z-index: 10;
    padding: 5px;
}
/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    #filterForm {
        position: static; /* Change position to static */
        margin: 10px auto; /* Center it if needed */
        width: 90%; /* Make it responsive */
        box-shadow: none; /* Remove box-shadow for simplicity */
    }
    #divAddMemberBtn {
        text-align: center;
    }
    #addMemberDiv {
        height:0px !important;
    }
    .dataTables_wrapper {
        width: 100%;
        overflow: hidden; /* Prevent unwanted scrolling */
    }
    #filter-summary{
        text-align:center;
    }

    .dataTables_wrapper {
        padding-top: 0px;
    }
}
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
