/**
 * Promio Sync Admin Styles
 * 
 * @package Promio_Sync
 * @since 1.0.0
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --ps-primary: #00843D;
    --ps-primary-dark: #006830;
    --ps-accent: #FFD100;
    --ps-success: #00843D;
    --ps-warning: #f0ad4e;
    --ps-danger: #dc3545;
    --ps-text: #1d2327;
    --ps-text-light: #666;
    --ps-border: #c3c4c7;
    --ps-bg-light: #f9f9f9;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

.ps-wrap {
    max-width: 1400px;
}

.ps-dashboard {
    padding-top: 0;
}

/* ==========================================================================
   Dashboard Header
   ========================================================================== */

.ps-dashboard-header {
    margin: 15px 0 25px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

/* Ensure WordPress notices appear above the header */
.ps-wrap .notice,
.ps-wrap .updated,
.ps-wrap .error,
.ps-wrap .update-nag {
    margin: 5px 0 15px 0;
}

.ps-dashboard-header__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ps-dashboard-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-dashboard-header__actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ps-dashboard-header__actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.ps-dashboard-header__icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard header logo (stacked version) */
.ps-dashboard-header__logo {
    height: 48px;
    width: auto;
    display: block;
    margin-top: 5px;
}

/* Dashboard header icon (smaller, for sub-pages) */
.ps-dashboard-header__icon-img {
    height: 32px;
    width: auto;
    display: block;
}

.ps-dashboard-header__title h1 {
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.ps-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.ps-mode-badge--parent {
    background: var(--ps-primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 132, 61, 0.3);
}

.ps-mode-badge--child {
    background: #3182ce;
    color: #fff;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
}

/* License Badge */
.ps-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    text-decoration: none;
}

.ps-license-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ps-license-badge--active {
    background: rgba(0, 163, 42, 0.2);
    color: #98fb98;
    cursor: default;
}

.ps-license-badge--inactive {
    background: rgba(214, 54, 56, 0.3);
    color: #ffb3b3;
    transition: all 0.2s ease;
}

.ps-license-badge--inactive:hover {
    background: rgba(214, 54, 56, 0.5);
    color: #fff;
}

/* License Notice Banner */
.ps-license-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 25px;
}

.ps-license-notice__icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ps-license-notice__icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #856404;
}

.ps-license-notice__content {
    flex: 1;
}

.ps-license-notice__content h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #856404;
}

.ps-license-notice__content p {
    margin: 0;
    font-size: 14px;
    color: #664d03;
}

.ps-license-notice__action .button-primary {
    background: #856404;
    border-color: #6c5303;
}

.ps-license-notice__action .button-primary:hover {
    background: #6c5303;
    border-color: #533f02;
}

/* ==========================================================================
   Stats Grid - Modern Cards
   ========================================================================== */

.ps-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .ps-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ps-stats-grid {
        grid-template-columns: 1fr;
    }
}

.ps-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.ps-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ps-stat-card--alert {
    border-color: #feb2b2;
    background: #fff5f5;
}

.ps-stat-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-stat-card__icon-wrap .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.ps-stat-card__icon-wrap--primary {
    background: linear-gradient(135deg, var(--ps-primary) 0%, #00a94f 100%);
}

.ps-stat-card__icon-wrap--success {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
}

.ps-stat-card__icon-wrap--info {
    background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
}

.ps-stat-card__icon-wrap--danger {
    background: linear-gradient(135deg, #e53e3e 0%, #fc8181 100%);
}

.ps-stat-card__icon-wrap--muted {
    background: linear-gradient(135deg, #a0aec0 0%, #cbd5e0 100%);
}

.ps-stat-card__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-stat-card__number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a202c;
}

.ps-stat-card__label {
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    text-transform: none;
}

/* ==========================================================================
   Dashboard Grid
   ========================================================================== */

.ps-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 1100px) {
    .ps-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Panels - Modern Card Style
   ========================================================================== */

.ps-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ps-panel--full-width {
    grid-column: 1 / -1;
}

.ps-panel--highlight {
    border-color: var(--ps-primary);
    border-width: 2px;
}

.ps-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.ps-panel__header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}

.ps-panel__header .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.ps-panel__header .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ps-panel__header .button-primary {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    box-shadow: 0 2px 4px rgba(0, 132, 61, 0.2);
}

.ps-panel__header .button-primary:hover {
    background: var(--ps-primary-dark);
    border-color: var(--ps-primary-dark);
}

.ps-panel__body {
    padding: 24px;
}

.ps-panel__footer {
    padding: 16px 24px;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.ps-empty-state {
    text-align: center;
    padding: 50px 30px;
    color: #718096;
}

.ps-empty-state .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: #cbd5e0;
    margin-bottom: 20px;
    display: block;
}

.ps-empty-state p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #4a5568;
}

.ps-empty-state .description {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 20px;
}

.ps-empty-state .button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 8px;
}

/* ==========================================================================
   Promos List
   ========================================================================== */

.ps-promos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-promos-list--saved {
    animation: ps-pulse 0.3s ease;
}

@keyframes ps-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.ps-promo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ps-promo-item:hover {
    border-color: var(--ps-primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ps-promo-item--ghost {
    opacity: 0.5;
    background: #e8f5e9;
}

.ps-promo-item__handle {
    cursor: grab;
    color: #a0aec0;
    font-size: 18px;
}

.ps-promo-item__handle:active {
    cursor: grabbing;
}

.ps-promo-item__thumb {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ps-promo-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-promo-item__content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-promo-item__content strong {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
}

.ps-promo-item__badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--ps-primary) 0%, #00a94f 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.ps-promo-item__actions .button {
    border-radius: 6px;
    font-size: 12px;
}

.ps-promo-item__shortcode {
    flex-shrink: 0;
}

.ps-promo-item__shortcode code {
    font-size: 11px;
}

.ps-promo-item__meta {
    color: #718096;
    font-size: 12px;
}

/* ==========================================================================
   Modal - Modern Style
   ========================================================================== */

.ps-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ps-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.ps-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: ps-modal-in 0.2s ease-out;
}

@keyframes ps-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ps-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #edf2f7;
}

.ps-modal__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.ps-modal__close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ps-modal__close:hover {
    background: #fee2e2;
    color: var(--ps-danger);
}

.ps-modal__body {
    padding: 24px;
}

.ps-modal__body p {
    color: #4a5568;
    margin-bottom: 16px;
}

.ps-modal__body .button {
    margin-top: 8px;
}

/* ==========================================================================
   Connection Info
   ========================================================================== */

.ps-connection-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.ps-connection-info label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.ps-connection-info code {
    display: block;
    background: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    word-break: break-all;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    color: #1a202c;
}

.ps-connection-info code:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Notice
   ========================================================================== */

.ps-notice {
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.ps-notice--info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.ps-notice--success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.ps-notice--error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.ps-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 100001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ps-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.ps-toast--success {
    background: var(--ps-success);
}

.ps-toast--error {
    background: var(--ps-danger);
}

/* ==========================================================================
   Ad Editor
   ========================================================================== */

.ps-ad-editor__row--two-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .ps-ad-editor__row--two-cols {
        grid-template-columns: 1fr;
    }
}

.ps-ad-editor__section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ps-section-title {
    margin: 0 0 20px;
    font-size: 14px;
}

/* WYSIWYG Editor Enhancements */
.ps-field .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.ps-field .wp-editor-tools {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.ps-field .mce-toolbar-grp {
    background: #fafafa !important;
    border-bottom: 1px solid #eee !important;
}

/* Dark Mode Toggle for Editor Preview */
.ps-editor-dark-mode {
    margin-bottom: 10px;
}

.ps-editor-dark-mode label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

/* When dark mode is enabled */
.ps-editor-dark-mode-active .mce-edit-area iframe {
    background: #333 !important;
}

.ps-editor-dark-mode-active .wp-editor-area {
    background: #333 !important;
    color: #fff !important;
}

/* Better visibility of color indicator in editor */
.ps-field .mce-colorbutton .mce-preview {
    height: 4px;
}

/* Make editor taller for better editing */
.ps-field .wp-editor-container textarea {
    min-height: 150px;
}

/* Quicktags styling */
.ps-field .quicktags-toolbar {
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

/* ==========================================================================
   Overlay Settings
   ========================================================================== */

.ps-overlay-settings {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.ps-field__row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ps-field__col {
    flex: 1;
}

.ps-field__col label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.ps-range-slider {
    width: 100%;
    max-width: 200px;
    vertical-align: middle;
}

.ps-range-value {
    display: inline-block;
    min-width: 45px;
    text-align: center;
    font-weight: bold;
    color: var(--ps-primary, #00843D);
}

.ps-overlay-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.ps-field {
    margin-bottom: 20px;
}

.ps-field__label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ps-field__inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* ==========================================================================
   Image Upload
   ========================================================================== */

.ps-image-upload__preview {
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.ps-image-upload__preview img {
    max-width: 200px;
    max-height: 120px;
    border-radius: 4px;
    display: block;
}

.ps-image-upload__preview--logo img {
    max-width: 150px;
    max-height: 80px;
}

.ps-image-upload__remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ps-danger);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* ==========================================================================
   Shortcode Info
   ========================================================================== */

.ps-shortcode-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ps-shortcode-code {
    background: var(--ps-bg-light);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

/* ==========================================================================
   Preview
   ========================================================================== */

.ps-preview-container {
    min-height: 200px;
}

.ps-preview-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--ps-text-light);
    background: var(--ps-bg-light);
    border-radius: 4px;
}

.ps-preview-ad {
    position: relative;
    padding: 30px;
    border-radius: 4px;
    overflow: hidden;
    min-height: 180px;
}

.ps-preview-ad__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.ps-preview-ad__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ps-preview-ad__logo {
    max-height: 40px;
    margin-bottom: 15px;
}

.ps-preview-ad__title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ps-preview-ad__offer {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ps-preview-ad__phone {
    font-size: 14px;
    margin-bottom: 15px;
}

.ps-preview-ad__button {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ps-preview-ad__button--rounded {
    border-radius: 8px;
}

.ps-preview-ad__button--pill {
    border-radius: 50px;
}

.ps-preview-ad__button--outline {
    background: transparent !important;
    border: 2px solid currentColor;
}

/* ==========================================================================
   Quick Actions
   ========================================================================== */

.ps-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ps-quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--ps-bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: var(--ps-text);
    transition: all 0.2s ease;
    cursor: pointer;
}

.ps-quick-action:hover {
    border-color: var(--ps-primary);
    color: var(--ps-primary);
}

.ps-quick-action--danger:hover {
    border-color: var(--ps-danger);
    color: var(--ps-danger);
}

.ps-quick-action .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Shortcode Examples
   ========================================================================== */

.ps-shortcode-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.ps-shortcode-example {
    background: var(--ps-bg-light);
    padding: 15px;
    border-radius: 4px;
}

.ps-shortcode-example h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.ps-shortcode-example code {
    display: block;
    background: #fff;
    padding: 8px;
    border-radius: 3px;
    font-size: 12px;
    word-break: break-all;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.ps-status {
    font-weight: 600;
}

.ps-status--active {
    color: var(--ps-success);
}

.ps-status--pending {
    color: var(--ps-warning);
}

.ps-status--inactive {
    color: #999;
}

.ps-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.ps-status-active {
    background: #e8f5e9;
    color: var(--ps-success);
}

.ps-status-scheduled {
    background: #fff3e0;
    color: #e65100;
}

.ps-status-always {
    background: #e3f2fd;
    color: #1565c0;
}

/* ==========================================================================
   Schedule Preview
   ========================================================================== */

.ps-schedule-preview {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--ps-bg-light);
    border-radius: 4px;
}

.ps-schedule-preview ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-schedule-preview li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.ps-schedule-preview li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Checkbox Group
   ========================================================================== */

.ps-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ps-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--ps-bg-light);
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.ps-checkbox-group label:hover {
    background: #e8e8e8;
}

/* ==========================================================================
   Spinner Animation
   ========================================================================== */

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

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

/* ==========================================================================
   Connect Form
   ========================================================================== */

.ps-connect-form {
    max-width: 500px;
    margin: 0 auto;
}

.ps-connect-form h2 {
    margin-top: 0;
    text-align: center;
}

.ps-connect-form p {
    text-align: center;
    color: var(--ps-text-light);
}

/* ==========================================================================
   Action Buttons Spacing & Alignment
   ========================================================================== */

/* Space between action buttons in tables */
.ps-panel td .button + .button,
.wp-list-table td .button + .button {
    margin-left: 8px;
}

/* Connection table action buttons */
.ps-actions-cell {
    width: 100px;
}

.ps-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ps-action-btn.button.button-small {
    display: block !important;
    width: 100% !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ps-action-btn--danger {
    color: #d63638 !important;
    border-color: #d63638 !important;
}

.ps-action-btn--danger:hover,
.ps-action-btn--danger:focus {
    background: #d63638 !important;
    border-color: #d63638 !important;
    color: #fff !important;
}

/* ==========================================================================
   Button Icon Alignment
   ========================================================================== */

/* Base button icon alignment for all buttons */
.ps-wrap .button,
.ps-dashboard .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.ps-wrap .button .dashicons,
.ps-dashboard .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* Primary buttons with icons */
.ps-wrap .button-primary .dashicons,
.ps-dashboard .button-primary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Small buttons */
.ps-wrap .button-small,
.ps-dashboard .button-small {
    gap: 4px;
}

.ps-wrap .button-small .dashicons,
.ps-dashboard .button-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Specifically for Push to All Sites button and similar footer buttons */
#ps-push-all,
.ps-panel__footer .button,
.ps-bulk-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Ensure dashicons don't shrink or expand */
.ps-wrap .dashicons::before,
.ps-dashboard .dashicons::before {
    display: block;
}

