/* ── ASPG Color Customizer Admin Styles ─────────────────────────────────── */

.aspg-color-wrap {
    max-width: 1280px;
}

.aspg-color-heading {
    font-size: 1.5rem;
    margin-bottom: 0.25rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aspg-color-intro {
    color: #666;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */

.aspg-color-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .aspg-color-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Controls panel ─────────────────────────────────────────────────────── */

.aspg-color-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 32px;
}

.aspg-color-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.aspg-color-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.aspg-color-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
}

.aspg-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}

.aspg-color-label {
    font-size: 0.88rem;
    color: #333;
    flex: 1;
    min-width: 0;
}

.aspg-color-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.aspg-color-picker {
    width: 36px !important;
    height: 36px !important;
    padding: 2px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 6px !important;
    cursor: pointer;
    background: none !important;
    box-shadow: none !important;
}

.aspg-color-picker:hover {
    border-color: #888 !important;
}

.aspg-color-hex {
    font-size: 0.78rem;
    font-family: monospace;
    color: #555;
    min-width: 58px;
    letter-spacing: 0.04em;
}

.aspg-reset-single {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #888;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s;
}

.aspg-reset-single:hover {
    color: #b8842a;
    border-color: #b8842a;
}

/* ── Actions bar ─────────────────────────────────────────────────────────── */

.aspg-color-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.aspg-color-actions .button-primary {
    background: #b8842a !important;
    border-color: #8a5f18 !important;
    box-shadow: none !important;
}

.aspg-color-actions .button-primary:hover {
    background: #8a5f18 !important;
}

#aspg-reset-all {
    color: #c0392b;
    border-color: #c0392b;
}

#aspg-reset-all:hover {
    background: #fdf0ef;
    color: #922b21;
}

.aspg-scheme-status {
    font-size: 0.8rem;
    margin: 0.75rem 0 0 !important;
}

.aspg-scheme-status.is-custom {
    color: #b8842a;
    font-weight: 600;
}

.aspg-scheme-status.is-default {
    color: #999;
    font-style: italic;
}

/* ── Preview panel ───────────────────────────────────────────────────────── */

.aspg-color-preview-wrap {
    min-width: 0;
}

.aspg-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
}

.aspg-preview-widget {
    pointer-events: none;
    user-select: none;
}

/* Make sure the frontend plugin stylesheet is loaded on this admin page too */
.aspg-widget .aspg-inner,
.aspg-signup-widget .aspg-signup-inner {
    max-width: 100% !important;
    margin: 0 !important;
}

.aspg-widget,
.aspg-signup-widget {
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
}
