* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
}


/* Table Styling */

.custom_table {
    width: 100%;
    float: left;
}

.tableScroll {
    width: 100%;
    float: left;
    overflow: hidden;
    overflow-x: auto;
}


/* Dropdown Filter */


/* Toolbar container */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 10px;
    width: 100%;
}


/* Export buttons */

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-buttons button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.export-buttons button:hover {
    background-color: #45a049;
}


/* Rows per page dropdown */

.dropdown_filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#statusFilter,
#rowsPerPageSelect {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

#postsPerPageSelect,#membersPerPageSelect,#requestsPerPageSelect,#ratingsPerPageSelect {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

/* Search bar */

.search-wrapper {
    position: relative;
}

.search-wrapper label {
    line-height: 50px;
}

#searchInput {
    padding: 8px 30px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
    outline: none;
    margin-left: 10px;
}

.searchInputs {
     padding: 8px 30px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
    outline: none;
    margin-left: 10px;
}

.clear-icon {
    position: absolute;
    right: 11px;
    top: 41%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
    color: #999;
    display: none;
    user-select: none;
}

.clear-icon:hover {
    color: #333;
}

.custom_table table {
    width: 100%;
    /* border: 1px solid #7B7B7B; */
}

.custom_table table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.custom_table table thead {
    background-color: #F17575;
    color: #101010;
}

.custom_table table th {
    padding: 20px;
    border-bottom: 1px solid #e3e3e3;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #fff;
    white-space: nowrap;
}

.custom_table table td {
    padding: 20px;
    border-bottom: 1px solid #e3e3e3;
    text-align: left;
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    color: #101010;
    white-space: nowrap;
    vertical-align: middle;
}

.custom_table table td>p {
    width: 287px;
    white-space: normal;
}

.custom_table table tbody tr:nth-child(even) {
    background-color: #fff;
}

.custom_table table tbody tr:hover {
    background-color: #f9f9f9;
}


/* Pagination Styling */

#pagination {
    text-align: center;
    float: right;
}

#pagination .page-btn {
    background: #EDF3F2;
    display: inline-block;
    vertical-align: top;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    font-size: 15px;
    line-height: 37px;
    text-align: center;
    color: #000;
    outline: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

#pagination .page-btn:hover:not(:disabled) {
    background-color: #FFEAEA;
    /* color: white; */
}


/* #pagination .page-btn:hover:not(:disabled) img {
    filter: brightness(1) invert(1);
    -webkit-filter: brightness(1) invert(1);
} */

#pagination .page-btn.active {
    background-color: #FFEAEA;
    /* color: white; */
    font-weight: bold;
}

#pagination .page-btn:disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
    font-size: 24px;
    padding: 0;
    line-height: normal;
}

#pagination .page-btn:disabled img {
    filter: opacity(0.3);
}

#pagination #prevBtn {
    font-size: 24px;
    padding: 0;
    line-height: normal;
    transition: all ease-in-out 0.2s;
    -webkit-transition: all ease-in-out 0.2s;
    -moz-transition: all ease-in-out 0.2s;
    -ms-transition: all ease-in-out 0.2s;
    -o-transition: all ease-in-out 0.2s;
}

#pagination #prevBtn img {
    width: 14px;
    height: auto;
    margin: 0 auto;
    transition: all ease-in-out 0.2s;
    -webkit-transition: all ease-in-out 0.2s;
    -moz-transition: all ease-in-out 0.2s;
    -ms-transition: all ease-in-out 0.2s;
    -o-transition: all ease-in-out 0.2s;
}

#pagination #nextBtn {
    font-size: 24px;
    padding: 0;
    line-height: normal;
    transition: all ease-in-out 0.2s;
    -webkit-transition: all ease-in-out 0.2s;
    -moz-transition: all ease-in-out 0.2s;
    -ms-transition: all ease-in-out 0.2s;
    -o-transition: all ease-in-out 0.2s;
}

#pagination #nextBtn img {
    width: 14px;
    height: auto;
    margin: 0 auto;
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transition: all ease-in-out 0.2s;
    -webkit-transition: all ease-in-out 0.2s;
    -moz-transition: all ease-in-out 0.2s;
    -ms-transition: all ease-in-out 0.2s;
    -o-transition: all ease-in-out 0.2s;
}

#rowInfo {
    float: left;
    font-size: 16px;
    line-height: 37px;
}

.custom_table table thead th {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    /* space for arrow */
}


/* Storing css */

th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 1;
    color: #fff;
}

th.asc .sort-icon::before {
    content: '▲';
    opacity: 1;
}

th.desc .sort-icon::before {
    content: '▼';
    opacity: 1;
}


/* toggle-details */

.toggle-details {
    background: transparent;
    outline: none;
    color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    font-size: 0;
    display: inline-block;
    margin: 0 6px 0 0;
}

.toggle-details:before {
    margin-right: .5em;
    display: inline-block;
    box-sizing: border-box;
    content: "";
    border-top: 5px solid transparent;
    border-left: 10px solid #F17575;
    border-bottom: 5px solid transparent;
    border-right: 0px solid transparent;
}

.toggle-details.open:before {
    border-top: 10px solid #F17575;
    border-left: 5px solid transparent;
    border-bottom: 0px solid transparent;
    border-right: 5px solid transparent;
}

.details-row td {
    background-color: #f9f9f9;
    font-size: 14px;
    vertical-align: middle;
    white-space: normal !important;
}

.details-row td strong {
    display: inline-block;
    padding-right: 5px;
}

.details-row td .actionBox {
    top: 9px;
    position: relative;
}

.table_bottom {
    width: 100%;
    float: left;
    padding-top: 20px;
}