/* Modal styles */
.modal-filter {

    max-width: 1140px;
    width: 90vw;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 0;
    margin: auto;

    &::backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

    /* Modal header */
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #dee2e6;
        background: #f8f9fa;
        border-radius: 8px 8px 0 0;
    }

    .modal-title {
        font-size: 1.25rem;
        font-weight: 500;
        color: #212529;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6c757d;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .modal-close:hover {
        color: #000;
        background: #e9ecef;
    }

    /* Modal navigation */
    .modal-navigation {
        display: flex;
        padding: 0 20px;
        border-bottom: 1px solid #dee2e6;
        background: white;
    }

    .nav-tab-main {
        padding: 15px 20px;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        color: #6c757d;
        font-weight: 500;
        transition: all 0.3s;
    }

    .nav-tab-main:hover {
        color: #007bff;
    }

    .nav-tab-main.active {
        color: #007bff;
        border-bottom-color: #007bff;
    }

    /* Modal body */
    .modal-body {
        padding: 20px;
    }

    .tab-content {
        display: none;
        /* padding: 20px 0; */
    }

    .tab-content.active {
        display: block;
    }

    /* Sub-tab navigation styles */
    .sub-tab-container {
        display: flex;
        height: 100%;
        min-height: 400px;
    }

    .sub-navigation {
        width: 30%;
        border-right: 1px solid #dee2e6;
        padding-right: 15px;
    }

    .nav-tab-sub {
        display: block;
        width: 100%;
        padding: 12px 15px;
        cursor: pointer;
        border: 1px solid #dee2e6;
        background: #f8f9fa;
        color: #6c757d;
        font-weight: 500;
        text-align: left;
        margin-bottom: 5px;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .nav-tab-sub:hover {
        background: #e9ecef;
        color: #007bff;
    }

    .nav-tab-sub.active {
        background: #007bff;
        color: white;
        border-color: #007bff;
    }

    .sub-content-area {
        width: 70%;
        padding-left: 15px;
    }

    /* Scrollable content class for both tab-content and sub-tab-content */
    .overflow-y-scroll-1 {
        height: calc(100vh - 350px);
        overflow-y: auto;
    }

    .overflow-y-scroll-2 {
        height: calc(100vh - 405px);
        overflow-y: auto;
    }

    .sub-tab-content {
        display: none;
    }

    .sub-tab-content.active {
        display: block;
    }

    /* Modal footer */
    .modal-footer {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        border-top: 1px solid #dee2e6;
        background: #f8f9fa;
        border-radius: 0 0 8px 8px;
    }

    .footer-left {
        display: flex;
        gap: 10px;
    }

    .footer-right {
        display: flex;
        gap: 10px;
    }

    .btn-cancel {
        background: #6c757d;
        color: white;
        border-color: #6c757d;
    }

    .btn-cancel:hover {
        background: #545b62;
    }

    .btn-submit {
        background: #28a745;
        color: white;
        border-color: #28a745;
    }

    .btn-submit:hover {
        background: #1e7e34;
    }

    .hidden {
        display: none;
    }

    /* Form Inputs */
    label:hover {
        background-color: #dfefff;
    }
    label {
        display: block;
        padding: 5px;
        cursor:pointer;
    }
    label:has(input:checked) {
        color: blue;
        background-color: #c2ffb3;
    }
    label input {
        display:none;
    }

    .multi-column-list {
        column-count: 3;
        column-gap: 20px;
        column-rule: 1px solid #ccc; 
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .inline-search {
        & .input-group-text {
            border-radius: 25px 0 0 25px;
        }
        & input {
            border-radius: 0 25px 25px 0;
        }
    }
}