/* ============================================================
   ArcherCloud UI Playground – Component Styles
   Tokens are defined globally in design-tokens.css.
   This file contains only playground-specific component styles
   and scoped theme overrides for the playground's own switcher.
   ============================================================ */

/* ── Playground-scoped theme overrides (for the theme switcher demo) ── */
.ui-playground[data-theme="Noon"] { --pg-bg: #FFFFFF; --pg-text: #44494D; --pg-surface: #EDEEF3; --pg-surface-raised: #E3E4EA; --pg-surface-overlay: #D9DAE2; --pg-accent: #924E8C; --pg-accent-text: #FFFFFF; --pg-border: rgba(68,73,77,0.10); --pg-border-hover: rgba(68,73,77,0.20); --pg-text-secondary: rgba(68,73,77,0.6); --pg-text-tertiary: rgba(68,73,77,0.38); --pg-shimmer-base: rgba(68,73,77,0.06); --pg-shimmer-highlight: rgba(68,73,77,0.12); --pg-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); --pg-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04); }
.ui-playground[data-theme="Midnight"] { --pg-bg: #0F0F10; --pg-text: #EEEFF1; --pg-surface: #151516; --pg-surface-raised: #1C1C1E; --pg-surface-overlay: #222224; --pg-accent: #924E8C; --pg-accent-text: #FFFFFF; --pg-border: rgba(238,239,241,0.07); --pg-border-hover: rgba(238,239,241,0.14); --pg-text-secondary: rgba(238,239,241,0.5); --pg-text-tertiary: rgba(238,239,241,0.28); --pg-shimmer-base: rgba(238,239,241,0.04); --pg-shimmer-highlight: rgba(238,239,241,0.09); --pg-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2); --pg-shadow-hover: 0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2); }
.ui-playground[data-theme="Dawn"] { --pg-bg: #2A222E; --pg-text: #EEEFF1; --pg-surface: #382A3C; --pg-surface-raised: #423246; --pg-surface-overlay: #4A3A4E; --pg-accent: #924E8C; --pg-accent-text: #FFFFFF; --pg-border: rgba(238,239,241,0.07); --pg-border-hover: rgba(238,239,241,0.14); --pg-text-secondary: rgba(238,239,241,0.5); --pg-text-tertiary: rgba(238,239,241,0.28); --pg-shimmer-base: rgba(238,239,241,0.04); --pg-shimmer-highlight: rgba(238,239,241,0.09); --pg-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2); --pg-shadow-hover: 0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2); }
.ui-playground[data-theme="Dusk"] { --pg-bg: #292D3E; --pg-text: #EEEFF1; --pg-surface: #313548; --pg-surface-raised: #393D52; --pg-surface-overlay: #41455C; --pg-accent: #924E8C; --pg-accent-text: #FFFFFF; --pg-border: rgba(238,239,241,0.07); --pg-border-hover: rgba(238,239,241,0.14); --pg-text-secondary: rgba(238,239,241,0.5); --pg-text-tertiary: rgba(238,239,241,0.28); --pg-shimmer-base: rgba(238,239,241,0.04); --pg-shimmer-highlight: rgba(238,239,241,0.09); --pg-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2); --pg-shadow-hover: 0 4px 16px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.2); }


/* ================================================================
   PAGE LAYOUT
   ================================================================ */

.ui-playground {
    background: transparent;
    color: var(--pg-text);
    padding: 0 0 40px;
    transition: color var(--duration-slow) var(--ease-out);
}

.pg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.pg-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.pg-subtitle {
    font-size: 13px;
    color: var(--pg-text-secondary);
    margin-top: 3px;
}


/* ================================================================
   THEME SWITCHER
   ================================================================ */

.pg-theme-switcher {
    display: flex;
    gap: 4px;
    background: var(--pg-surface);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    padding: 3px;
}

.pg-theme-pill {
    padding: 7px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--pg-text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.pg-theme-pill:hover {
    color: var(--pg-text);
    background: var(--pg-shimmer-highlight);
}

.pg-theme-pill.active {
    background: var(--pg-accent);
    color: var(--pg-accent-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}


/* ================================================================
   SECTIONS
   ================================================================ */

.pg-section {
    margin-bottom: 52px;
    animation: pg-fade-in 0.4s var(--ease-out) both;
}

.pg-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--pg-text-tertiary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.pg-col {
    flex: 1;
    min-width: 280px;
}


/* ================================================================
   SHOWCASE CARD (container for component demos)
   ================================================================ */

.pg-showcase {
    background: var(--pg-surface);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.pg-showcase:hover {
    border-color: var(--pg-border-hover);
}

.pg-showcase-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-text);
    margin-bottom: 16px;
}


/* ================================================================
   CUSTOM BUTTONS (replacing MudButton)
   ================================================================ */

.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
    white-space: nowrap;
}

.pg-btn:active {
    transform: scale(0.97);
}

/* Filled variants */
.pg-btn-filled {
    background: var(--pg-accent);
    color: var(--pg-accent-text);
    border-color: transparent;
}
.pg-btn-filled:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pg-btn-grape {
    background: var(--grape-soda);
    color: var(--pg-accent-text);
}
.pg-btn-grape:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pg-btn-secondary {
    background: var(--pg-surface-raised);
    color: var(--pg-text);
    border-color: var(--pg-border);
}
.pg-btn-secondary:hover {
    background: var(--pg-surface-overlay);
    border-color: var(--pg-border-hover);
}

.pg-btn-danger {
    background: var(--lobster);
    color: var(--pg-accent-text);
}
.pg-btn-danger:hover {
    filter: brightness(1.1);
}

.pg-btn-success {
    background: var(--jungle);
    color: var(--pg-accent-text);
}
.pg-btn-success:hover {
    filter: brightness(1.1);
}

/* Outlined variants */
.pg-btn-outlined {
    background: transparent;
    color: var(--pg-accent);
    border-color: var(--pg-accent);
}
.pg-btn-outlined:hover {
    background: var(--pg-shimmer-base);
}

.pg-btn-ghost {
    background: transparent;
    color: var(--pg-text-secondary);
    border-color: transparent;
}
.pg-btn-ghost:hover {
    color: var(--pg-text);
    background: var(--pg-shimmer-base);
}

/* Disabled */
.pg-btn[disabled], .pg-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Icon button */
.pg-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--pg-text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: all var(--duration-fast) var(--ease-out);
}

.pg-btn-icon:hover {
    background: var(--pg-shimmer-highlight);
    color: var(--pg-text);
}

.pg-btn-icon:active {
    transform: scale(0.92);
}

.pg-btn-icon.danger:hover { color: var(--lobster); }
.pg-btn-icon.success:hover { color: var(--jungle); }
.pg-btn-icon.accent:hover { color: var(--pg-accent); }


/* ================================================================
   CUSTOM CARDS
   ================================================================ */

.pg-card {
    background: var(--pg-surface);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.pg-card:hover {
    border-color: var(--pg-border-hover);
    box-shadow: var(--pg-shadow-hover);
}

.pg-card-header {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pg-border);
}

.pg-card-header.branded {
    background: var(--grape-soda);
    color: var(--pg-accent-text);
    border-bottom-color: transparent;
}

.pg-card-header.accent {
    background: var(--pg-accent);
    color: var(--pg-accent-text);
    border-bottom-color: transparent;
}

.pg-card-body {
    padding: 20px;
    font-size: 13px;
    color: var(--pg-text-secondary);
    line-height: 1.6;
}


/* ================================================================
   CUSTOM TABLE
   ================================================================ */

.pg-table-wrapper {
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pg-table thead {
    background: var(--pg-surface-raised);
}

.pg-table th {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-text-tertiary);
    text-align: left;
    border-bottom: 1px solid var(--pg-border);
}

.pg-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pg-border);
    color: var(--pg-text);
    vertical-align: middle;
    transition: background var(--duration-fast) var(--ease-out);
}

.pg-table tbody tr {
    transition: background var(--duration-fast) var(--ease-out);
}

.pg-table tbody tr:hover td {
    background: var(--pg-surface-raised);
}

.pg-table tbody tr:last-child td {
    border-bottom: none;
}

.pg-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--pg-surface);
    border-top: 1px solid var(--pg-border);
    font-size: 12px;
    color: var(--pg-text-tertiary);
}


/* ================================================================
   CUSTOM FORM INPUTS
   ================================================================ */

.pg-input-group {
    margin-bottom: 16px;
}

.pg-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--pg-text-secondary);
    margin-bottom: 6px;
}

.pg-input {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13px;
    color: var(--pg-text);
    background: var(--pg-bg);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.pg-input:hover {
    border-color: var(--pg-border-hover);
}

.pg-input:focus {
    border-color: var(--pg-accent);
    box-shadow: 0 0 0 3px rgba(146,78,140,0.12);
}

.pg-input::placeholder {
    color: var(--pg-text-tertiary);
}

.pg-input[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pg-input-helper {
    font-size: 11px;
    color: var(--pg-text-tertiary);
    margin-top: 4px;
}

/* Select */
.pg-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Toggle switch */
.pg-toggle {
    position: relative;
    width: 38px;
    height: 22px;
    cursor: pointer;
    display: inline-block;
}

.pg-toggle input { display: none; }

.pg-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--pg-surface-overlay);
    border-radius: 11px;
    transition: background var(--duration-normal) var(--ease-out);
}

.pg-toggle input:checked + .pg-toggle-track {
    background: var(--grape-soda);
}

.pg-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--pg-accent-text);
    border-radius: 50%;
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pg-toggle input:checked ~ .pg-toggle-thumb {
    transform: translateX(16px);
}

/* Checkbox */
.pg-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pg-text);
}

.pg-checkbox input { display: none; }

.pg-checkbox-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--pg-border-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.pg-checkbox input:checked + .pg-checkbox-box {
    background: var(--grape-soda);
    border-color: var(--grape-soda);
}

.pg-checkbox-icon {
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
    color: var(--pg-accent-text);
    font-size: 12px;
}

.pg-checkbox input:checked + .pg-checkbox-box .pg-checkbox-icon {
    opacity: 1;
}


/* ================================================================
   CUSTOM ALERTS
   ================================================================ */

.pg-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid transparent;
    animation: pg-slide-in 0.3s var(--ease-out) both;
}

.pg-alert-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pg-alert-info {
    background: rgba(78,167,252,0.1);
    border-color: rgba(78,167,252,0.2);
    color: var(--horizon);
}

.pg-alert-success {
    background: rgba(38,166,68,0.1);
    border-color: rgba(38,166,68,0.2);
    color: var(--jungle);
}

.pg-alert-warning {
    background: rgba(240,191,0,0.1);
    border-color: rgba(240,191,0,0.2);
    color: var(--saffron);
}

.pg-alert-error {
    background: rgba(235,87,87,0.1);
    border-color: rgba(235,87,87,0.2);
    color: var(--lobster);
}


/* ================================================================
   STATUS DOTS & OPERATOR COLORS
   ================================================================ */

.pg-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pg-status-dot.pulse {
    animation: pg-pulse 2s var(--ease-in-out) infinite;
}

.pg-status-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.pg-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pg-text-secondary);
}

.pg-operator-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pg-operator-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--pg-accent-text);
    transition: transform var(--duration-fast) var(--ease-out);
}

.pg-operator-dot:hover {
    transform: scale(1.15);
}


/* ================================================================
   SKELETON LOADER (shimmer effect)
   Keyframes defined globally in design-tokens.css
   ================================================================ */

.pg-skeleton {
    background: linear-gradient(
        90deg,
        var(--pg-shimmer-base) 0%,
        var(--pg-shimmer-highlight) 40%,
        var(--pg-shimmer-base) 80%
    );
    background-size: 800px 100%;
    animation: pg-shimmer 1.8s var(--ease-in-out) infinite;
    border-radius: var(--radius-md);
}

.pg-skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}

.pg-skeleton-text.short { width: 60%; }
.pg-skeleton-text.medium { width: 80%; }
.pg-skeleton-text.full { width: 100%; }

.pg-skeleton-circle {
    border-radius: 50%;
    flex-shrink: 0;
}

.pg-skeleton-btn {
    height: 36px;
    width: 120px;
    border-radius: var(--radius-md);
}

/* Skeleton table */
.pg-skeleton-table {
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pg-skeleton-table-header {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: var(--pg-surface-raised);
    border-bottom: 1px solid var(--pg-border);
}

.pg-skeleton-table-header .pg-skeleton {
    height: 12px;
    border-radius: var(--radius-sm);
}

.pg-skeleton-table-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-skeleton-table-row:last-child {
    border-bottom: none;
}

.pg-skeleton-table-row .pg-skeleton {
    height: 14px;
    border-radius: var(--radius-sm);
}

/* Skeleton card */
.pg-skeleton-card {
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pg-skeleton-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--pg-border);
}

.pg-skeleton-card-body {
    padding: 20px;
}


/* ================================================================
   CUSTOM DIALOG / MODAL
   ================================================================ */

.pg-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pg-fade-in 0.2s var(--ease-out) both;
}

.pg-dialog {
    background: var(--pg-surface);
    border: 1px solid var(--pg-border);
    border-radius: var(--radius-xl);
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    animation: pg-dialog-in 0.25s var(--ease-out) both;
}

.pg-dialog-header {
    padding: 20px 24px 0;
    font-size: 16px;
    font-weight: 600;
}

.pg-dialog-body {
    padding: 12px 24px 20px;
    font-size: 13px;
    color: var(--pg-text-secondary);
    line-height: 1.6;
}

.pg-dialog-actions {
    padding: 0 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}


/* ================================================================
   PROGRESS BAR
   ================================================================ */

.pg-progress {
    height: 6px;
    background: var(--pg-shimmer-base);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.pg-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s var(--ease-out);
}

.pg-progress-indeterminate .pg-progress-bar {
    width: 40%;
    animation: pg-progress-slide 1.5s var(--ease-in-out) infinite;
}

/* Spinner */
.pg-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid var(--pg-shimmer-highlight);
    border-top-color: var(--pg-accent);
    border-radius: 50%;
    animation: pg-spin 0.7s linear infinite;
}


/* ================================================================
   TOOLTIP
   ================================================================ */

.pg-tooltip-wrapper {
    position: relative;
    display: inline-flex;
}

.pg-tooltip-wrapper .pg-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: var(--charcoal);
    color: var(--alabaster);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 100;
}

.pg-tooltip-wrapper:hover .pg-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ================================================================
   COLOR SWATCHES
   ================================================================ */

.pg-swatch-group { margin-bottom: 24px; }

.pg-swatch-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pg-text-tertiary);
    margin-bottom: 10px;
}

.pg-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pg-swatch {
    width: 68px;
    text-align: center;
}

.pg-swatch-color {
    width: 68px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--pg-border);
    margin-bottom: 6px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.pg-swatch:hover .pg-swatch-color {
    transform: scale(1.08);
}

.pg-swatch-name {
    font-size: 10px;
    font-weight: 500;
    color: var(--pg-text-secondary);
    line-height: 1.2;
}

.pg-swatch-hex {
    font-size: 9px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--pg-text-tertiary);
}

.pg-swatch-clickable {
    cursor: pointer;
    position: relative;
}

.pg-swatch-clickable:active .pg-swatch-color {
    transform: scale(0.95);
}


/* ================================================================
   TYPOGRAPHY SCALE
   ================================================================ */

.pg-type-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pg-border);
}

.pg-type-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--pg-text-tertiary);
    min-width: 72px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}


/* ================================================================
   RADIUS SCALE
   ================================================================ */

.pg-radius-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.pg-radius-box {
    width: 72px;
    height: 48px;
    border: 2px solid var(--pg-accent);
    background: var(--pg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--pg-text-secondary);
    transition: border-color var(--duration-normal) var(--ease-out);
}


/* ================================================================
   TAGS (canonical / deprecated / new)
   ================================================================ */

.pg-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.pg-tag-canonical {
    background: rgba(38,166,68,0.12);
    color: var(--jungle);
}

.pg-tag-deprecated {
    background: rgba(235,87,87,0.12);
    color: var(--lobster);
}

.pg-tag-new {
    background: rgba(78,167,252,0.12);
    color: var(--horizon);
}


/* ================================================================
   SPACING HELPERS
   ================================================================ */

.pg-gap-6  { gap: 6px; }
.pg-gap-8  { gap: 8px; }
.pg-gap-12 { gap: 12px; }
.pg-gap-16 { gap: 16px; }
.pg-mt-8   { margin-top: 8px; }
.pg-mt-12  { margin-top: 12px; }
.pg-mt-16  { margin-top: 16px; }
.pg-mt-24  { margin-top: 24px; }
.pg-mb-8   { margin-bottom: 8px; }


/* ================================================================
   HIDE MudBlazor defaults within playground scope
   Keyframes and animations defined globally in design-tokens.css
   ================================================================ */

.ui-playground .mud-button-root,
.ui-playground .mud-input-control,
.ui-playground .mud-card,
.ui-playground .mud-table,
.ui-playground .mud-alert {
    /* If any MudBlazor components leak in, style them consistently */
    font-family: inherit;
}
