.wpfalconsldqa-admin-wrap {
    background: #fff;
    padding: 20px 40px 40px 40px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);

    h1 {
        color: #044F4D !important;
        font-weight: 800;
        font-size: 28px;
        margin-bottom: 30px;
    }
}

.wpfalconsldqa-app {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    .wpfalconsldqa-tabs {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

        .components-tab-panel__tabs {
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            padding: 0 10px;

            .components-button {
                height: 50px;
                padding: 0 20px;
                font-weight: 600;
                color: #64748b;
                border: none;
                border-bottom: 3px solid transparent;
                background: transparent;
                transition: all 0.2s;

                &:hover {
                    color: #044F4D;
                }

                &.is-active {
                    color: #044F4D;
                    border-bottom-color: #044F4D;
                    background: #fff;
                }
            }
        }

        .components-tab-panel__tab-content {
            padding: 0;
        }
    }

    .wpfalconsldqa-tab-container {
        display: flex;
        flex-direction: column;
    }

    .wpfalconsldqa-bulk-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-bottom: 1px solid #e2e8f0;

        .wpfalconsldqa-layout-col {
            padding: 30px;
            &:first-child {
                border-right: 1px solid #e2e8f0;
            }
        }
    }

    .wpfalconsldqa-card {
        h3 {
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 18px;
            color: #1e293b;
        }

        .wpfalconsldqa-filter-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }
    }

    .wpfalconsldqa-results.wpfalconsldqa-bulk-list {
        height: 400px;
        overflow-y: auto;
        border: 1px solid #e2e8f0;
        border-radius: 8px;

        .wpfalconsldqa-result-item.wpfalconsldqa-checkbox-item {
            padding: 12px 18px;
            border-bottom: 1px solid #f1f5f9;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 15px;

            &:hover { background: #f8fafc; }
            &.is-selected { background: #f0fdfa; }

            .components-checkbox-control__input-container {
                margin: 0;
                margin-right: 5px; // Add specific spacing after checkbox
            }

            .wpfalconsldqa-item-details, .wpfalconsldqa-target-info {
                display: flex;
                flex-direction: column;
                gap: 2px;
                flex: 1;

                strong { font-size: 14px; color: #1e293b; }
                small { font-size: 12px; color: #64748b; }
                
                .wpfalconsldqa-roles {
                    display: flex;
                    gap: 5px;
                    margin-top: 4px;
                }
            }
        }

        .wpfalconsldqa-no-results {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            padding: 40px 20px;
            text-align: center;
            gap: 12px;

            svg {
                width: 48px;
                height: 48px;
                fill: #cbd5e1;
                margin-bottom: 10px;
            }

            span {
                font-size: 15px;
                font-weight: 500;
                color: #64748b;
            }
        }
    }

    .wpfalconsldqa-badge {
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 10px;
        font-weight: 600;
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;

        &.wpfalconsldqa-role-badge { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
        &.wpfalconsldqa-status-publish { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
        &.wpfalconsldqa-status-draft { background: #fef9c3; color: #854d0e; border-color: #fef08a; }
        &.wpfalconsldqa-status-private { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
    }

    .wpfalconsldqa-pagination-footer {
        margin-top: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .wpfalconsldqa-selection-count {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 600;
        }

        .wpfalconsldqa-pagination-controls {
            display: flex;
            align-items: center;
            gap: 10px;

            .wpfalconsldqa-page-info {
                font-size: 12px;
                color: #64748b;
                font-weight: 600;
            }

            .components-button {
                background: #f1f5f9;
                border: 1px solid #e2e8f0;
                color: #475569;
                &:hover:not(:disabled) {
                    background: #e2e8f0;
                    color: #044F4D;
                }
            }
        }
    }

    .wpfalconsldqa-bulk-action-footer {
        padding: 20px 30px;
        background: #f8fafc;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .wpfalconsldqa-action-info {
            font-size: 14px;
            color: #64748b;
            strong { color: #1e293b; font-size: 16px; }
        }

        .wpfalconsldqa-action-btns {
            display: flex;
            gap: 10px;
            align-items: center;
            
            .components-button.is-primary {
                background: #044F4D !important;
                border-radius: 6px;
                &:hover { background: #033B39 !important; }
            }
        }
    }

    // Skeleton Loader Styles
    .wpfalconsldqa-skeleton-item {
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        gap: 15px;

        .wpfalconsldqa-skeleton-checkbox {
            width: 20px;
            height: 20px;
            background: #e2e8f0;
            border-radius: 4px;
        }

        .wpfalconsldqa-skeleton-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;

            .wpfalconsldqa-skeleton-line {
                height: 12px;
                background: #e2e8f0;
                border-radius: 4px;
                &.wpfalconsldqa-short { width: 40%; }
                &.wpfalconsldqa-medium { width: 60%; }
                &.wpfalconsldqa-long { width: 85%; }
            }
        }

        .wpfalconsldqa-shimmer {
            background: linear-gradient(
                90deg,
                #f1f5f9 25%,
                #f8fafc 50%,
                #f1f5f9 75%
            );
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite linear;
        }
    }

    @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
}
