.table-container {
    height: 100%;
    background: #EFEFEF;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius is applied */
}

thead {
    background: rgba(0, 0, 0, 0.08);
}

th, td {
    border: 1px solid #DDDDDD;
    padding: 10px;
    text-align: center;
}

th {
    background: rgba(0, 0, 0, 0.05);
    position: relative;
}

th .sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

th .sort-icon::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000;
    margin-left: 5px;
}

th .sort-icon.ascending::after {
    border-bottom: none;
    border-top: 5px solid #000;
}

th .sort-icon.hidden {
    display: none;
}

tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.name-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 39px;
    height: 39px;
    background: #DDDDDD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 10px;
}

.name-details {
    text-align: left;
}

.fullname {
    font-weight: bold;
}

.username {
    color: #888;
}

.toggle-switch {
    width: 30px;
    height: 13px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
}

.toggle-slider {
    width: 17px;
    height: 17px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.3s;
}

.toggle-switch.active {
    background: #00BFAE;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(17px);
}

.actions-menu {
    cursor: pointer;
}

.popup {
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.popup button {
    padding: 10px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
}

.popup button:hover {
    background: #ddd;
}

/* Custom Checkbox Styles */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    -webkit-appearance: none;
    background: white;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

input[type="checkbox"]:checked {
    background: #00BFAE;
    border-color: #00BFAE;
}

input[type="checkbox"]:checked::after {
    content: "\2713"; /* Checkmark symbol */
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}
.table-wrapper {
    background: white;
    border-radius: 8px;
    padding: 16px;
}

.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    width: 20%;
}

.search-input {
    flex: 1 1;
    padding: 8px 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 14px;
    color: #939393;
}

.search-input::placeholder {
    color: #666;
}

.three-dots-button {
    margin-left: 8px;
    padding: 8px;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.three-dots-button:hover {
    background: #e0e0e0;
}
