.pointer {
    cursor: pointer;
}
.dw-checker-divider {
    margin: 1rem 0;
    border-style: solid;
}
/** Preview **/
.dw-checker-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.dw-checker-wrapper {
    background-color: #ccc;
    padding: 1em;
    border-radius: 1em;
    width: 500px;
    max-width: 100%;
    box-shadow: 0px 5px 15px -5px #333333;
    margin-bottom: 2em;
}
.dw-checker-title {
    font-size: 24px;
    font-weight: bold;
}
.dw-checker-field {
    display: flex;
    flex-direction: column;
    margin: 0.5em 0;
}
.dw-checker-field > label {
    font-weight: 600;
}
.dw-checker-field > input,
.dw-checker-field > select {
    height: 48px;
    border-radius: 0.5em;
    border: 1px solid #ccc;
    padding-left: 1em;
    padding-right: 1em;
}
.dw-checker-buttons {
    display: flex;
    gap: 0.5em;
}
.dw-checker-buttons button {
    padding: 0.65em 0.75em;
    border: none;
    border-radius: 0.5em;
}

/* DataTables specific styling for frontend */
table.dataTable {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #ffffff;
}

/* Table headers */
table.dataTable thead th {
    text-align: left !important;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 15px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    width: auto !important;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Table body cells */
table.dataTable tbody td {
    text-align: left !important;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    white-space: nowrap;
    width: auto !important;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Table container overflow handling */
.dw-checker-results-container,
.dw-checker-results {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* DataTables container styling */
.dt-container {
    width: 100%;
    overflow: hidden;
    border-collapse: collapse;
}

/* Column alignment classes */
table.dataTable th.dt-left,
table.dataTable td.dt-left {
    text-align: left !important;
}

table.dataTable th.dt-center,
table.dataTable td.dt-center {
    text-align: center !important;
}

table.dataTable th.dt-right,
table.dataTable td.dt-right {
    text-align: right !important;
}

/* Row styling */
table.dataTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

table.dataTable tbody tr:hover {
    background-color: #e9ecef;
}

/* Empty state styling */
table.dataTable td.dataTables_empty {
    text-align: center;
    padding: 1em;
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 8px 10px;
        font-size: 14px;
    }

    .dt-container {
        width: 100%;
        overflow-x: auto;
    }
}

/* Table pagination styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5em 1em;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Table search input styling */
.dataTables_wrapper .dataTables_filter input {
    padding: 0.5em;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-left: 0.5em;
}

/* Table length menu styling */
.dataTables_wrapper .dataTables_length select {
    padding: 0.5em;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Table info styling */
.dataTables_wrapper .dataTables_info {
    padding: 0.5em;
    color: #6c757d;
}
.card-buttons {
    top: 1em;
    right: -1em;
}
input[type="color"] {
    height: 34px;
}
li.list-group-item.option-nav-menu.mb-0.pointer.active {
    background-color: white;
    color: var(--bs-bg-secondary);
    font-weight: 800;
}
li.list-group-item.option-nav-menu.mb-0.pointer {
    background-color: var(--bs-bg-secondary);
    color: white;
}
.form-check {
    display: flex !important;
    align-items: center;
    gap: 0.5em;
}

.form-check-input:checked {
    background-color: unset;
}

/** result **/
.dw-checker-input-validator {
    color: red;
}
.dw-checker-input-validator-border {
    border-color: red;
}
.dw-checker-result-value {
    word-break: break-word;
}
table.dw-checker-result-table {
    width: 100%;
}
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results td {
    border-style: solid;
}
.dw-checker-results th,
.dw-checker-results td {
    padding: 0.75em 0.5em;
}
.dw-checker-value-button {
    border: none;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    text-decoration: none;
}
.result-header {
    font-weight: bold;
}
.dw-checker-result-div {
    border-bottom-style: solid;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0.75em 0;
}
.dw-checker-result-div:last-child {
    border: none;
}
button.dw-checker-result-pagination-button {
    background-color: #ffffff;
    color: #333333;
    font-weight: bold;
    padding: 1em 1.25em;
    border: 1px solid #ddd;
    box-shadow: 0px 3px 7px -5px grey;
    border-radius: 0.5em;
}
.dw-checker-result-pagination {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    gap: 0.5em;
    padding-bottom: 1em;
}
button.dw-checker-result-pagination-button.active {
    filter: invert(1);
}
.dw-checker-card-container {
    display: grid;
    gap: 0.5em;
}
.dw-checker-single-card {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    border-radius: 0.5em;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.dw-checker-single-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.dw-checker-single-card > *:first-child {
    font-size: smaller;
}
.dw-checker-single-card > *:last-child {
    font-size: larger;
    font-weight: bold;
}

/* Loading state */
.dw-checker-loading {
    text-align: center;
    padding: 2rem;
}

/* Empty state */
.dw-checker-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* Pagination improvements */
.dw-checker-pagination {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dw-checker-result-table {
        font-size: 14px;
    }

    .dw-checker-result-table th {
        width: 40%;
    }

    .dw-checker-result-table td {
        width: 60%;
    }

    .dw-checker-card-container {
        gap: 0.5rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
.dw-checker-bottom-results {
    padding: 0.5em;
    max-width: 100% !important;
}
table.dw-checker-result-container,
table.dw-checker-result-container th,
table.dw-checker-result-container td {
    border: 1px solid #ccc !important;
    border-collapse: collapse;
}

.dw-checker-results th {
    width: fit-content !important;
    max-width: 50% !important;
}

.has-not-found-message {
    text-align: center;
    margin-bottom: 1em;
}

span.dw-checker-result-header,
span.dw-checker-result-value {
    float: left;
}
