/**
 * Domaise Dashboard Styles
 *
 * @format
 */

.domaise-dashboard-container {
    display: flex;
    min-height: 400px;
    background: #fff;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #fff;
    height: 100%;
}
.domaise-dashboard-sidebar {
    width: 220px;
    background: #0c0e10;
    color: #fff;
    padding: 0;
    min-height: 100%;
}
.domaise-dashboard-sidebar h3 {
    margin: 0;
    padding: 20px;
    font-size: 1.2em;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 8px;
}
.domaise-dashboard-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.domaise-dashboard-menu li {
    border-bottom: 1px solid #333;
}
.domaise-dashboard-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background 0.2s;
    font-weight: 600;
}
.domaise-dashboard-menu a.active,
.domaise-dashboard-menu a:hover {
    background: #c7e76c;
    color: #0c0e10;
}
.domaise-dashboard-content {
    flex: 1;
    padding: 30px 40px;
    background: #f9f9f9;
}
.domaise-switch {
    position: relative;
    display: inline-block;
    width: auto;
    height: 24px;
}
.domaise-switch input ~ strong {
    position: relative;
    z-index: 2;
    font-size: 12px;
    padding-left: 27px;
    padding-right: 8px;
    line-height: 24px;
    text-transform: capitalize;
    width: 80px;
    text-align: center;
}
.domaise-switch input ~ strong.option-select {
    display: block;
}
.domaise-switch input ~ strong.option-text {
    display: none;
}
.domaise-switch input:checked ~ strong.option-select {
    display: none;
}
.domaise-switch input:checked ~ strong {
    padding-right: 27px;
    padding-left: 8px;
    color: #fff;
}
.domaise-switch input:checked ~ strong.option-text {
    display: block;
}
.domaise-switch input {
    display: none;
}
.domaise-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e0e0e0;
    border-radius: 28px;
    transition: background 0.2s;
    width: 100%;
}
.domaise-switch input:checked ~ .domaise-slider {
    background: #4a90e2;
}
.domaise-switch input ~ .domaise-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    margin: 0;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s;
    left: 1px;
    top: 1px;
    z-index: 3;
}
.domaise-switch input:checked ~ .domaise-slider:before {
    left: 100%;
    transform: translateX(calc(-100% - 1px));
}

.domaise-search-form-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 50px;
}
.domaise-search-form-row label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.domaise-search-form-row input[type="text"],
.domaise-search-form-row input[type="date"],
.domaise-search-form-row select {
    width: 100%;
    font-size: 0.8rem;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    outline: none;
    height: 41px;
}
.flex {
    flex: 1;
}
.flex {
    display: flex;
    align-items: center;
    gap: 12px;
}
.domaise-search-inputs {
    flex: 1;
    display: flex;
    width: 100%;
}
.domaise-search-inputs.select-mode .domaise-search-select {
    display: block;
}
.domaise-search-inputs.select-mode .domaise-search-text {
    display: none;
}
.domaise-search-inputs.text-mode .domaise-search-select {
    display: none;
}
.domaise-search-inputs.text-mode .domaise-search-text {
    display: block;
}
.domaise-search-select,
.domaise-search-text {
    flex: 1;
}
.domaise-search-form-ui {
    max-width: 900px;
    margin-top: 30px;
}

.d-flex {
    display: flex;
}
.d-block {
    display: block;
}
.align-center {
    align-items: center;
}
.gap-2 {
    gap: 8px;
}
.mb-5 {
    margin-bottom: 20px;
}
.select2-container {
    width: auto !important;
}
.select2-container--default .select2-selection--single {
    border-color: #dfdfdf;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 41px;
    font-size: 0.8rem;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    outline: none;
}
.select2-container .select2-selection--single {
    height: 41px;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 39px;
}
.three-fields {
    flex: 1;
}
.three-fields input[type="text"] {
    flex: 0.7;
}
.three-fields .select2:nth-child(2) {
    flex: 1;
}
.three-fields .select2:nth-child(4) {
    flex: 0.5;
}
/* Radio group for advanced search */
.radio-buttons {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: 8px;
}
.domaise-radio {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
    color: #222;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.domaise-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.domaise-checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: #f3f3f3;
    border: 2px solid rgba(12, 14, 16, 0.5);
    border-radius: 50%;
    transition: border-color 0.2s;
}
.domaise-radio input[type="radio"]:checked ~ .domaise-checkmark {
    background: #fff;
    border-color: #0c0e10;
}
.domaise-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.domaise-radio input[type="radio"]:checked ~ .domaise-checkmark:after {
    display: block;
}
.domaise-radio .domaise-checkmark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0c0e10;
    content: "";
    position: absolute;
}

/* Dates fields */
.dates-filters .dates {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}
.dates-filters .dates .date {
    flex: 1;
}
.dates-filters .dates .date .date-field {
    margin-bottom: 15px;
}
.dates-filters .dates .date .date-field label {
    margin-bottom: 8px;
}

/* Buttons styles */
.button {
    background-color: #0c0e10;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}
.button.button-primary {
    background-color: #0c0e10;
    border: 1px solid #0c0e10;
    color: #fff;
}
.button.button-primary:hover {
    background-color: #c7e76c;
    border-color: #c7e76c;
    color: #0c0e10;
}
.action {
    max-width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action .domaise-loader {
    height: 22px;
}
.action .domaise-loader svg {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.domaise-search-results {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}
.domaise-search-results h4 {
    margin: 0 0 15px;
    font-size: 1.1rem;
}
.domaise-search-results-summary {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #333;
}
.domaise-search-results-summary p {
    margin: 0 0 8px;
}
.domaise-search-results-summary strong {
    font-weight: 600;
}
.domaise-search-results .placeholder {
    color: #666;
    margin: 0;
}
.domaise-search-results .placeholder.error {
    color: #b32d2e;
}
.domaise-hidden {
    display: none !important;
}
.domaise-hidden-column {
    display: none !important;
}
.domaise-search-results .domaise-results-table {
    width: 100% !important;
    border-collapse: collapse;
}
.domaise-search-results .domaise-results-table th,
.domaise-search-results .domaise-results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9e9e9;
    text-align: left;
    font-size: 0.95rem;
}
.domaise-search-results .domaise-results-table tbody tr:last-child td {
    border-bottom: none;
}
.domaise-search-results .dataTables_wrapper {
    width: 100%;
}
.domaise-search-results .dataTables_filter {
    margin-bottom: 12px;
}
.domaise-search-results .dataTables_filter input {
    margin-left: 8px;
}
.domaise-search-results .dataTables_paginate {
    margin-top: 12px;
}
.domaise-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9990;
}
.domaise-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.domaise-modal .domaise-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(12, 14, 16, 0.2);
    text-align: left;
}
.domaise-modal h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.domaise-modal p {
    margin: 0 0 22px;
    font-size: 1rem;
    color: #222;
}
.domaise-modal-body {
    margin-bottom: 22px;
}
.domaise-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.domaise-modal-actions .button {
    min-width: 110px;
    text-align: center;
}
.button.button-secondary {
    background: #f3f3f3;
    border: 1px solid #d0d0d0;
    color: #222;
}
.button.button-secondary:hover {
    background: #e0e0e0;
    border-color: #c5c5c5;
}
