/* PageSpark Plugin Builder — Admin Styles */

.pspb-wrap {
    max-width: 800px;
}

.pspb-mode-toggle {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.pspb-mode-toggle label {
    font-weight: 600;
    cursor: pointer;
}

.pspb-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pspb-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.pspb-section textarea {
    margin: 10px 0;
}

.pspb-section select {
    min-width: 300px;
    margin-right: 8px;
}

/* Status Feed */
.pspb-status-feed {
    margin: 20px 0;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.pspb-status-feed h3 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f1;
}

#pspb-status-messages {
    max-height: 400px;
    overflow-y: auto;
}

.pspb-status-msg {
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.5;
}

.pspb-status-msg .dashicons,
.pspb-status-msg .spinner {
    margin-right: 8px;
    flex-shrink: 0;
}

.pspb-status-info {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    color: #1d2327;
}

.pspb-status-loading {
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    color: #1d2327;
}

.pspb-status-success {
    background: #edfaef;
    border-left: 4px solid #00a32a;
    color: #1d2327;
}

.pspb-status-success .dashicons {
    color: #00a32a;
}

.pspb-status-error {
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #1d2327;
}

.pspb-status-error .dashicons {
    color: #d63638;
}

/* Disabled state */
.button-hero:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
