@use "tailwindcss/base" as *;
@use "tailwindcss/components" as *;
@use "tailwindcss/utilities" as *;

// imports
@use "./_keyframes" as *;

.arcm-transition-all {
    transition: all 0.3s ease;
}

.arcm-animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.arcm-btn-bounce {
    
    &:hover {
        
        .icon {
            animation: bounce 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
        }
    }
}

/* Shared checkbox styling for filters (used across admin and my-account) */
.arcm-filter-checkbox {
    background: transparent !important;
    border: 2px solid #d1d5db !important;
    position: relative !important;
    overflow: visible !important;
}
.arcm-filter-checkbox:checked {
    background: #3858e9 !important;
    border-color: #3858e9 !important;
    background-image: none !important;
}
.arcm-filter-checkbox:checked::before,
.arcm-filter-checkbox:checked::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
    background: none !important;
}
.arcm-filter-checkbox:focus {
    box-shadow: 0 0 0 2px rgba(56, 88, 233, 0.2) !important;
}

#archive-status-notice {
    z-index: 1;
    margin-bottom: 1px;
    position: relative;

    @media only screen and (max-width: 600px){
        padding-top: 46px;
        margin-bottom: -45px;
    }
}

#wooArchiveRoot {
    padding: 24px 24px;

    @media only screen and (max-width: 782px){
        padding: 24px 15px;
    }
}

.arcm-modal {

    .arcm-modal-container {
        display: flex;
    }

    .arcm-close-modal {

        svg {

            path {
                transition: all 0.3 ease;
            }
        }

        &:hover {
            
            svg {

                path {
                    fill: #EF4444;
                }
            }
        }
    }
  
    .arcm-modal-content {
        width: 100%;
        margin-top: auto;
        margin-left: 160px;
        margin-bottom: auto;
        padding: 52px 15px 30px;

        @media only screen and (max-width: 960px) {
            margin-left: 36px;
        }

        @media only screen and (max-width: 782px) {
            margin-left: 0px;
        }
    }

    &.arcm-eamil-preview {

        .arcm-modal-inner {
            overflow: hidden; 
            border: 0 !important;
            max-width: 600px !important;
        }

        .arcm-modal-header {
            background-color: #7956AD;

            .arcm-close-modal {
                display: none !important;
            }
        }
    }

    &.support-modal {

        .arcm-modal-inner {
            width: 100% !important;
            max-width: 512px !important;
    
            .arcm-modal-header {
                align-items: flex-start !important;

                @media only screen and (max-width: 575px){
                    padding: 20px !important;
                }

                .arcm-close-modal {
                    margin-bottom: 0 !important;
                }

            }
    
            .arcm-modal-body {
                padding-bottom: 20px !important;
                
                @media only screen and (max-width: 575px){
                    padding: 20px !important;
                }
            }
    
            .arcm-modal-footer {
                display: none !important;
            }
        }
    }
}

/* ModalTransitions.css */
.arcm-modal-enter {
  opacity: 0;
}
.arcm-modal-enter-active {
  opacity: 1;
  transition: opacity 300ms;
}
.arcm-modal-exit {
  opacity: 1;
}
.arcm-modal-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}

/* Modal content transitions */
.arcm-modal-inner-enter {
    opacity: 0;
    transform: scale(0.9);
}
.arcm-modal-inner-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 300ms, transform 300ms;
}
.arcm-modal-inner-exit {
    opacity: 1;
}
.arcm-modal-inner-exit-active {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 300ms, transform 300ms;
}

.archive-settings {

    &__navbar-menu {
        counter-reset: step;

        li {

            a {
                position: relative;

                &::after {
                    content: '';
                    left: 0;
                    right: 0;
                    height: 2px;
                    width: 0;
                    bottom: -10px;
                    position: absolute;
                    margin-left: auto;
                    margin-right: auto;
                    border-radius: 500px;
                    background-color: #3858E9;
                    transition: all 0.3s ease;
                }

                &::before {
                    width: 17px;
                    height: 17px;
                    color: #374151;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 17px;
                    border-radius: 500px;
                    margin-right: 8px;
                    align-items: center;
                    display: inline-flex;
                    content: counter(step);
                    counter-increment: step;
                    justify-content: center;
                    background-color: #F3F4F6;
                    transition: all 0.3s ease;
                }

                @media only screen and (max-width: 584px){
                    
                    &::after {
                        display: none;
                    }
                }
            }

            &.active {

                a {
                    color: #fff !important;
                    background-color: #3858E9 !important;

                    &::after {
                        width: 100%;
                    }
                    &::before {
                        color: #1F2937;
                        background-color: #ffffff;
                    }
                }
            }
        }
    }
}

.ant-select, .ant-picker {
    height: auto !important;

    .ant-select-selector {
        border: 1px solid #9CA3AF !important;
    
        .ant-select-selection-item {
            padding-top: 8px !important;
            padding-bottom: 8px !important;
            .btn-prolock {
                display: none !important;
            }
        }
    }
}
.arcm-select {

    .ant-select-selector {
    
        .ant-select-selection-item {
            padding-top: 3px !important;
            padding-bottom: 3px !important;
        }
    }
}

.ant-picker {
    border: 1px solid #9CA3AF !important;
    color: #9CA3AF !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.ant-picker {
    border: 1px solid #9CA3AF !important;
    color: #9CA3AF !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;

    .ant-picker-input {
        color: #111827 !important;
    }
}

.ant-tooltip {

    .ant-tooltip-content {

        .ant-tooltip-inner {
            color: #111827 !important;
        }
    }
}

.table-container {
    margin: auto;
    width: 100%;
    max-width: 1200px;

    .ant-select {
    
        .ant-select-selector {
        
            .ant-select-selection-item {
                padding-top: 3px !important;
                padding-bottom: 3px !important;
            }
        }
    }
}
  
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;

    thead {

        th {
            background-color: #f8f8f8;
            padding: 10px;
            border-bottom: 2px solid #e0e0e0;
            text-align: left;
        }
    }

    tbody {

        td {
            padding: 10px;
            border-bottom: 1px solid #e0e0e0;
        }
    }
}

.archived {
    background-color: #e0f7fa;
    padding: 5px 10px;
    border-radius: 4px;
    color: #00796b;
}
  
.unarchive-button {
    background-color: #29b6f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}
  
.unarchive-button:hover {
    background-color: #0288d1;
}
  
.bulk-action-container {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
  
.pagination button {
    margin: 0 5px;
    color: white;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #3858e9;
}
  
.pagination button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}
  
.pagination span {
    margin: 0 10px;
}

.ant-tooltip {
    z-index: 9999;
}

.arcm-table-loader, .dashboard-loader {
    svg {
        background-color: transparent !important;
    }
}

.arcm-date-picker {

    @media only screen and (max-width: 368px){
        width: 100%;
  }
}

.btn-prolock {
    transition: .2s;
    margin-left: auto;

    .icon-wrap {
        transition: .2s;
    }

    .text {
        max-width: 0;
        opacity: 0;
        white-space: nowrap;
        transition: .2s;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    &:hover {

        .text {
            max-width: 100px;
            margin-left: 5px;
            opacity: 1;
        }
    }
}

.ant-select-item {

    .ant-select-item-option-content {
        display: flex;
    }

    .btn-prolock {

        .text {
            transition: .3s;
        }
    }

    &:hover {

        .btn-prolock {

            .text {
                max-width: 96px;
                margin-left: 5px;
                opacity: 1;
            }
        }
    }
}

.help-documentation {
    display: grid;
    grid-template-columns: 1fr 1fr;

    &__item {

        &:hover {

            .btn-prolock {
    
                .text {
                    max-width: 96px;
                    margin-left: 5px;
                    opacity: 1;
                }
            }
        }
    }

    @media only screen and (max-width: 1199px){
        display: flex;
        flex-wrap: wrap;

        &__item {
            flex: 1 1 260px !important;
        }
    }
}
  