#wpbody-content>div:not(.wrap):not([class*="wbls-"]) {
    display: none;
}

.wbls-form-count {
    width: 200px;
}

.wbls-form-type {
    width: 200px;
}

.wbls-subm-table {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    text-align: left;
    border-collapse: collapse;
}

.wbls-subm-table tr,
.wbls-subm-table thead,
.wbls-subm-table tbody {
    width: 100%;
    border-bottom: 1px solid #d8d8d8;
    height: 50px;
    font-family: Poppins, sans-serif;
}

.wbls-subm-table thead tr th {
    border-bottom: 1px solid #c3c4c7;
    color: #2c3338;
    line-height: 1.4em;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}

.wbls-subm-table>tbody>:nth-child(odd) {
    background-color: #f6f7f7;
}

.wbls-subm-table td, .wbls-subm-table th {
    padding: 8px 10px;
}

.wbls-chat-icon {
    color: #4ebb2f;
    cursor: pointer;
}

.wbls-access-chat-column {
    width: 30px;
    box-sizing: border-box;
}

.wbls-subm-table tbody tr td.wbls-access-key-column {
    position: relative;
    width: 60px;
    box-sizing: border-box;
}

.wbls-subm-table tbody tr td.wbls-status-column {
    position: unset;
}

.wbls-access-key-column .wbls-access-key-container {
    display: none;
    position: absolute;
    width: 380px;
    height: auto;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 15px;
    box-sizing: border-box;
    top: 30px;
    right: 0;
    background-color: #FFFFFF;
    z-index: 1;
    -webkit-box-shadow: 0px 0px 9px -3px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 0px 9px -3px rgba(66, 68, 90, 1);
    box-shadow: 0px 0px 9px -3px rgba(66, 68, 90, 1);

}


.wbls-access-key-container .wbls-access-key-item {
    margin-bottom: 8px;
}

.wbls-access-key-container .wbls-access-key-item:nth-child(2) {
    margin-bottom: 0px;
}

.wbls-access-key-container .wbls-access-key-item label {
    margin-bottom: 3px;
}

.wbls-token-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.wbls-token-input {
    width: 100%;
    max-width: 300px;
    padding: 6px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}

.wbls-access-key-container span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
}


.wbls-token-toggle {
    cursor: pointer;
    background: none;
}

.wbls-token-copy {
    cursor: pointer;
    background: none;
}

a.wbls-access-key-user-enable-link {
    font-size: 11px;
    margin-top: 25px;
    color: #000000;
    display: block;
}

.wbls-chats-content {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 999999;
}

.wbls-chats-content .wbls-chats-section{
    padding: 35px 30px;
}

.wbls-chat-container {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wbls-new-reply {
    width: 100%;
    height: 60px;
    min-height: 60px;
    resize: none;
    overflow: auto;
    background-color: rgba(245, 245, 247, 1);
    padding: 0;
    text-align: left;
    box-sizing: border-box;
    scrollbar-width: none;
    color: #000000;
    max-height: 180px;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    border: none;
    margin-bottom: 5px;
    font-family: Poppins, sans-serif;
}

.wbls-new-reply:focus{
    border: none;
    outline: none;
    box-shadow: none;
}

.wbls-chats-close {
    cursor: pointer;
    width: 25px;
    height: 25px;
    background: url(../images/close_dark.svg) no-repeat center;
    background-size: 25px;
}

.wbls-submission-chat-header{
    height: 45px;
    box-shadow: 0px 0px 2px 1px rgba(217, 217, 217, 0.7);
    display: flex;
    color: #000000;
    padding: 17px;
    box-sizing: border-box;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.wbls-submission-chat-header-title{
    flex-grow: 1;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 0px;
}

.wbls-reply-attachement-cont{
    line-height: 0;
}

.wbls-subm-table .wbls-row-actions {
    position: absolute !important;
    left: 10px;
    bottom: 5px;
    z-index: 99999;
}

.wbls-subm-table tbody tr:hover .wbls-row-actions {
    display: flex;
    gap: 5px;
    padding-top: 14px;
    height: 12px;
    line-height: 12px;
    align-items: center;
}

.wbls-subm-table tbody tr td {
    vertical-align: middle;
    position: relative;
}

.wbls-subm-table tbody tr td:first-child {
    width: 20px;
}

.wbls-subm-table tbody tr td > a {
    display: inline-block;
}

.wbls-reply-button.wbls-button-loading::before {
    animation: rotation 1s infinite linear;
    position: absolute;
    content: '';
    width: 18px;
    height: 18px;
    background: url(../images/loader.svg) no-repeat;
    background-size: 18px;
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    display: inline-block;
}

td.wbls-textarea {
    max-width: 200px;
}

.wbls-hide-overflow {
    overflow: hidden!important;
}

.wbls-access-key-column .wbls-access-icon::before{
    background: url("../images/wbls_key.svg") no-repeat center;
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
}
.wbls-access-chat-column .wbls-chat-icon::before{
    background: url("../images/wbls_chat.svg") no-repeat center;
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
}

.wbls-token-wrapper .wbls-token-copy{
    background: url("../images/wbls_copy.svg") no-repeat center;
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
}

.wbls-token-wrapper .wbls-token-toggle{
    background: url("../images/wbls_hide.svg") no-repeat center;
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
}

.wbls-token-wrapper .wbls-token-toggle_show{
    background: url("../images/wbls_show.svg") no-repeat center;
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
}

p.wbls-field-error-msg {
    width: 100%;
    color: #ec0808;
    margin: 0 0 15px 0;
    padding: 5px 10px;
    text-align: right;
    font-size: 12px;
}

.wbls-button.wbls-export-csv {
    font-size: 16px;
    font-weight: 600;
    width: auto;
    min-width: 85px;
    height: 42px;
    line-height: 40px;
    margin: 0 20px 0 0;
    padding: 0 15px;
    text-decoration: none;
    text-transform: capitalize;
    background-color: #0d9ad6;
    border-color: #0d9ad6;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.wbls-button.wbls-export-csv:hover {
    color: #FFFFFF;
    background-color: #0578a9;
}

.wbls-loading {
    position: relative;
}

.wbls-loading:after {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background: #e8e8e8;
    opacity: 0.8;
}

.wbls-delete-all-submission,
.wbls-delete-submission {
    cursor: pointer;
    color: #ff0000;
    font-size: 12px;
}

.wbls-edit-submission {
    border-left: 1px solid #000000;
    padding-left: 5px;
}

.wbls-edit-submission > a {
    cursor: pointer;
    color: #000000;
    text-decoration: none;
    font-size: 12px;
}

.wbls-response-message {
    font-size: 13px;
    line-height: 25px;
    padding: 0 10px;
    box-sizing: border-box;
    width: 95%;
    margin: 0 auto 10px auto;
    display: block;
    background-color: #ffffff;
}

.wbls-error-message {
    border-left: 4px solid #ff0000;
}

.wbls-success-message {
    border-left: 4px solid #4ebb2f;
}

.wbls-hidden {
    display: none!important;
}

.wbls-status-column {
    width: 90px;
}

.wbls-status-button {
    padding: 3px 10px;
    border-radius: 5px;
    background-color: #d2cfcf;
    cursor: pointer;
    color: #000000;
    position: relative;
    width: 80px;
    display: block;
    text-align: center;
    font-family: Poppins, sans-serif;
}

.wbls-status-active {
    background-color: #2196f3;
    color: white;
}

.wbls-status-completed {
    background-color: #4caf50;
    color: white;
}

.wbls-status-blocked {
    background-color: #f1b94c;
    color: white;
}

.wbls-status-button:hover {
    background-color: #8a8a8a;
}

.wbls-status-dropdown {
    position: absolute;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: #d2cfcf;
    color: #ffffff;
    padding: 10px 6px;
    top: 25px;
    right: 0;
    border-radius: 5px;
    z-index:9;
    gap: 3px;
}

.wbls-status-item {
    cursor: pointer;
    color: #000000;
    padding: 5px 8px;
    background: #fff;
    border-radius: 4px;
}

.wbls-status-item:hover {
    background-color: #ffffff70;
}

.wbls-bulk-action-row {
    display: flex;
    margin: 0 auto 10px 2.5%;
    padding: 0px;
}

.wbls-bulk-action-row .wbls-bulk-actions{
    margin-right: 10px;
    border-color: #0d9ad6;
}

.wbls-bulk-action-row span.wbls-bulk-action-apply {
    min-width: 60px;
    text-align: center;
    background: #0d9ad6;
    color: #fff;
    border: none;
    font-family: Poppins, sans-serif;
}
.wbls-bulk-action-row span.wbls-bulk-action-apply:hover {
    background-color: #0578a9;
    color: #fff;
}
.wbls-bulk-actions{
    font-family: Poppins, sans-serif;
}


.wbls-bulk-action-row span.wbls-bulk-action-apply.wbls-button-loading::before {
    background: url("../images/loader_dark.svg") no-repeat center;
}

a.wbls-sort-link {
    text-decoration: none;
}

.wbls-submission-edit-content.wrap.wbls-content {
    padding: 50px 100px;
    box-sizing: border-box;
}

.wbls-submission-edit-content.wrap.wbls-content form {
    max-width: 800px;
    margin: auto;
}

.wbls-submission-edit-content.wrap.wbls-content > h2 {
    margin-bottom: 50px;
    font-size: 19px;
    font-weight: 600;
}

.wbls-submission-edit-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.wbls-submission-edit-row-description {
    font-size: 12px;
    font-style: italic;
    margin: 0;
    padding: 0;
}

.wbls-submission-edit-row input {
    width: 100%;
    height: 40px;
    border-radius: 5px;
}

.wbls-submission-edit-row textarea {
    width: 100%;
    height: 150px;
    border-radius: 5px;
}

.wbls-submission-edit-row label {
    font-weight: 500;
    margin-bottom: 5px;
}

.wbls-mini-label {
    font-weight: 500;
    margin-right: 10px;
    font-size: 14px;
}

.wbls-submission-edit-content input[type='submit'] {
    width: 150px;
    height: 40px;
    border-radius: 5px;
    background: #0f2d87;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.wbls-submission-edit-content input[type='submit']:hover {
    opacity: 0.8;
}

/* Files column style */

.wbls-file-item {
    margin-bottom: 8px;
    max-width: 300px;
}

.wbls-file-item .wbls-file-item-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wbls-file-icon-col {
    position: relative;
}

.wbls-file-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbls-file-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wbls-file-icon.wbls-file-icon-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.wbls-file-icon .dashicons-format-image {
    font-size: 20px;
    color: #ffffff;
}

.wbls-file-icon .dashicons-media-default {
    font-size: 20px;
    color: #6b7280;
}

.wbls-file-icon .dashicons-media-pdf {
    font-size: 20px;
    color: #dc2626;
}

.wbls-file-icon .dashicons-media-audio {
    font-size: 20px;
    color: #1d4ed8;
}

.wbls-file-info-col {
    flex-grow: 1;
}

.wbls-file-info-col .wbls-file-name-row {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    line-height: 1.3;
}

.wbls-file-info-col .wbls-file-meta-row {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
}

.wbls-file-info-col .wbls-file-meta-row > span {
    display: flex;
    align-items: center;
    color: #10b981;
    margin-left: 5px;
}

.wbls-file-info-col .wbls-file-meta-row > span .dashicons-lock {
    font-size: 11px;
    height: 11px;
}

.wbls-file-action-col {
    display: flex;
    gap: 5px;
}

.wbls-file-action-col .wbls-icon-button {
    display: flex;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.wbls-file-action-col .wbls-icon-button .dashicons {
    font-size: 16px;
    height: 16px;
}

/* Image preview styles */
#wbls-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.wbls-image-modal-container {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.wbls-image-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#wbls-modal-title {
    margin: 0;
}

.wbls-image-modal-header button.wbls-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.wbls-image-modal-content {
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.wbls-image-modal-content .wbls-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: wbls-spin 1s linear infinite;
    margin: 0 auto;
}

#wbls-modal-loading {
    display: none;
    padding: 40px;
}

#wbls-modal-loading small {
    color: #6b7280;
}

#wbls-modal-loading > div {
    margin-bottom: 15px;
}

#wbls-modal-image {
    max-width: 100%;
    max-height: 59vh;
    display: none;
}

#wbls-modal-error {
    display: none;
    color: #dc2626;
    padding: 40px;
}

#wbls-modal-error .dashicons-warning {
    font-size: 48px;
    margin-bottom: 15px;
}

.wbls-image-modal-footer {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wbls-image-modal-footer #wbls-modal-filename {
    font-weight: 500;
}

.wbls-image-modal-footer #wbls-modal-filesize {
    color: #6b7280;
    margin-left: 10px;
}

.wbls-image-modal-footer #wbls-modal-download {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes wbls-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat-specific styles */
.wbls-chat-file-item {
    margin: 8px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.wbls-chat-file-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wbls-chat-file-icon {
    flex-shrink: 0;
    position: relative;
}

.wbls-chat-file-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wbls-chat-file-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wbls-chat-file-image .dashicons-format-image {
    font-size: 24px;
    color: #6c757d;
}

.wbls-chat-file-icon-default,
.wbls-chat-file-icon-pdf,
.wbls-chat-file-icon-audio {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #e9ecef;
}

.wbls-chat-file-icon-pdf .dashicons-pdf {
    color: #dc3545;
    font-size: 24px;
}

.wbls-chat-file-icon-audio .dashicons-media-audio {
    color: #0d6efd;
    font-size: 24px;
}

.wbls-chat-file-icon-default .dashicons-media-default {
    color: #6c757d;
    font-size: 24px;
}

.wbls-encrypted-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.wbls-encrypted-badge span.dashicons-lock {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wbls-encrypted-badge span.dashicons-lock::before {
    font-size: 16px;
}

.wbls-chat-file-info {
    flex: 1;
    min-width: 0;
}

.wbls-chat-file-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wbls-chat-file-name a {
    text-decoration: none;
    color: inherit;
}

.wbls-chat-file-name a:hover {
    color: #0d6efd;
}

.wbls-chat-file-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}

.wbls-chat-file-actions {
    display: flex;
    gap: 6px;
}

.wbls-chat-action-btn {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #6c757d;
}

.wbls-chat-action-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.wbls-chat-action-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Modal styles */
#wbls-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wbls-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.wbls-modal-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wbls-modal-body {
    padding: 20px;
    text-align: center;
}

.wbls-modal-footer {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}