/**
 * Acumenpopup Admin List Styles
 * Styles for Status toggle and Action buttons in campaigns list
 */

/* Status Toggle Switch */
.acumenpopup-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

.acumenpopup-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.acumenpopup-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.acumenpopup-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.acumenpopup-toggle-switch input:checked + .acumenpopup-toggle-slider {
    background-color: #2271b1;
}

.acumenpopup-toggle-switch input:checked + .acumenpopup-toggle-slider:before {
    transform: translateX(26px);
}

.acumenpopup-toggle-switch input:disabled + .acumenpopup-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stats Column */
.acumenpopup-stats {
    font-size: 12px;
    line-height: 1.6;
}

.acumenpopup-stats div {
    margin: 2px 0;
}

.acumenpopup-stats strong {
    color: #1d2327;
    font-weight: 600;
}

/* Actions Column */
.acumenpopup-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acumenpopup-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dcdcde;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.acumenpopup-action-btn:hover {
    background: #f6f7f7;
    border-color: #2271b1;
    transform: translateY(-1px);
}

.acumenpopup-action-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #50575e;
}

.acumenpopup-action-btn:hover .dashicons {
    color: #2271b1;
}

.acumenpopup-action-btn.acumenpopup-delete-btn:hover {
    border-color: #d63638;
    background: #fff5f5;
}

.acumenpopup-action-btn.acumenpopup-delete-btn:hover .dashicons {
    color: #d63638;
}

/* Column widths */
.column-status {
    width: 80px;
}

.column-stats {
    width: 180px;
}

.column-actions {
    width: 160px;
}

/* Loading state */
.acumenpopup-toggle-switch.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .acumenpopup-actions {
        flex-wrap: wrap;
    }
    
    .column-status,
    .column-stats,
    .column-actions {
        width: auto;
    }
}
