.twd-add-new-entity {
    display: flex;
    align-items: center;
    padding-left: 20px;
    gap: 30px;
}

.twd-add-new-entity form {
    flex-grow: 1;
    max-width: 600px;
}

.twd-add-new-entity form>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.twd-add-new-entity form input {
    margin: 0;
}

.twd-add-new-entity button {
    font-size: 16px;
    padding: 15px 20px;
    cursor: pointer;
}

.twd-entities-table {
    margin: 20px;
    overflow-x: auto;
    font-size: 18px;
}

.twd-entities-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.twd-entities-table th {
    background-color: var(--wp--preset--color--accent-1);
    color: white;
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.twd-entities-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.twd-entities-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.twd-entities-table tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 600px) {

    .twd-entities-table table,
    .twd-entities-table thead,
    .twd-entities-table tbody,
    .twd-entities-table th,
    .twd-entities-table td,
    .twd-entities-table tr {
        display: block;
    }

    .twd-entities-table th {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .twd-entities-table tr {
        margin-bottom: 15px;
    }

    .twd-entities-table td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .twd-entities-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

.twd-entities-table-pag {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.twd-entities-table-pag a,
.twd-entities-table-pag span {
    border: 1px solid var(--wp--preset--color--accent-1);
    color: var(--wp--preset--color--accent-1);
    padding: 8px 16px;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
}

.twd-entities-table-pag .current {
    background-color: var(--wp--preset--color--accent-1);
    color: white;
}

.twd-entities-table-pag a:hover {
    background-color: var(--wp--preset--color--accent-1);
    color: white;
    transition: all 0.3s ease-in-out;
}

.twd-dashboard-container {
    /* max-width: 1200px;
        margin: 0 auto; */
}

.twd-entities-table {
    margin: 0;
    padding: 20px;
}

/* Modal container */
.twd-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal content */
.twd-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 50px 20px 40px;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

/* Close button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.open-modal-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.open-modal-btn:hover {
    background-color: #45a049;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    box-sizing: border-box;
}

/* button[type="submit"] {
    padding: 10px 20px;
    background-color: #008CBA;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    }

    button[type="submit"]:hover {
    background-color: #005f8b;
    } */

#reviewForm .form_fields {
    display: flex;
    gap: 40px;
}

/* Button Loading Spinner */
.loading {
    position: relative;
    padding-right: 30px;
    /* Add padding for the spinner */
}

.loading::after {
    content: "";
    position: absolute;
    top: 33%;
    right: 10px;
    /* Place the spinner 10px from the right */
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* Spinner color */
    border-top-color: #fff;
    /* Spinner top color */
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
    transform: translateY(-50%);
}

/* Spinner animation */
@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}