/* css/swipes.css - 500+ Swipes View */

.sa-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 4px 0;
}

.sa-filter-select,
.sa-filter-input {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.sa-filter-input {
    flex: 1;
    min-width: 180px;
    background: var(--bg-dark);
}

.sa-table-container {
    width: 100%;
    height: 550px;
    overflow-y: auto;
    background: #000000;
    border: 1px solid #1e293b;
    border-radius: 8px;
}

#sa-swipe-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #cbd5e1;
}

#sa-swipe-table th {
    position: sticky;
    top: 0;
    background: #0f172a;
    color: #94a3b8;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    z-index: 10;
    border-bottom: 1px solid #334155;
}

#sa-swipe-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e293b;
}

#sa-swipe-table tr:hover {
    background: rgba(30, 41, 59, 0.5);
    cursor: pointer;
}

.sa-loading-row {
    padding: 2rem !important;
    text-align: center;
    color: var(--text-dim);
}

/* --- MODULE-SPECIFIC AI ASSISTANT (Pixel-Perfect & Scoped) --- */
.sa-swipe-chat-helper.prompt-assistant-container {
    background: rgba(15, 17, 26, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-top: 30px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.sa-swipe-chat-helper .custom-textarea {
    width: 100% !important;
    background: #0a0b10 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 15px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    resize: vertical !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    min-height: 180px;
}

/* Neon Focus Effect */
.sa-swipe-chat-helper .custom-textarea:focus {
    border-color: #a78bfa !important;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4) !important;
}

.sa-assistant-header {
    text-align: left;
    margin-bottom: 15px;
    width: 100%;
}

.sa-assistant-title {
    margin: 0;
    font-size: 1.1rem;
    color: #f8fafc;
    font-weight: 600;
}

.sa-assistant-subtitle {
    margin: 4px 0 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.sa-swipe-helper-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

@media (max-width: 900px) {
    .sa-filters {
        flex-wrap: wrap;
    }

    .sa-filter-select {
        flex: 1 1 45%;
    }

    #filter-search {
        flex: 1 1 100%;
        order: 10;
        margin-top: 4px;
    }

    /* Expand Button Logic (Mobile Only) */
    #sa-swipe-expand-btn {
        display: flex !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 500 !important;
        background: transparent !important;
        border: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        padding: 5px !important;
        transition: all 0.3s ease !important;
    }

    #sa-swipe-expand-btn.sa-visible {
        opacity: 0.8 !important;
        pointer-events: auto !important;
    }

    /* Expansion Mode Overlay */
    body.sa-prompt-expanded-mode .sa-swipe-chat-helper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 60000 !important;
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: blur(10px) !important;
        padding: 40px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.sa-prompt-expanded-mode .sa-chat-input-wrapper {
        width: 100% !important;
        max-width: 600px !important;
    }

    body.sa-prompt-expanded-mode #sa-swipe-chat-textarea {
        height: 70vh !important;
        width: 100% !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        background: #000 !important;
        border: 1px solid #a78bfa !important;
        padding: 20px !important;
        padding-top: 50px !important;
    }

    body.sa-prompt-expanded-mode #sa-swipe-expand-btn {
        top: 55px !important;
        right: 35px !important;
        opacity: 0.8 !important;
        pointer-events: auto !important;
    }
}

/* --- Badge Styles for Swipes Table --- */

/* Base refinement for badges in the table */
#sa-swipe-table .sa-badge {
    border-radius: 6px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Status (READY) */
#sa-swipe-table .sa-badge--status-ready {
    background: rgba(20, 184, 166, 0.2);
    color: #14b8a6;
}

/* Platform (LINKEDIN/X) */
#sa-swipe-table .sa-badge--platform {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

/* Format */
#sa-swipe-table .sa-badge--format {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Niche */
#sa-swipe-table .sa-badge--niche {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}