/* P2 — Plan Cockpit styles (beast-interactive Wave 2) */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.pc-wrapper {
    margin: 0 0 14px;
    animation: pc-slide-in 0.2s ease;
}

@keyframes pc-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Card shell ──────────────────────────────────────────────────────────── */

.pc-cockpit {
    background: var(--vc-bg-2, rgba(20, 18, 40, 0.95));
    border: 1px solid var(--ip-accent, #7c6ff0);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ip-text, #e0e0e0);
    letter-spacing: 0.01em;
}

.pc-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--ip-accent, #7c6ff0);
    background: rgba(124, 111, 240, 0.12);
    border: 1px solid rgba(124, 111, 240, 0.35);
    border-radius: 20px;
    padding: 2px 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Section ─────────────────────────────────────────────────────────────── */

.pc-section {
    margin-bottom: 14px;
}

.pc-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ip-text-muted, rgba(255, 255, 255, 0.45));
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
}

.pc-hint {
    font-size: 10px;
    color: var(--ip-text-muted, rgba(255, 255, 255, 0.4));
    margin-top: 4px;
    line-height: 1.5;
}

.pc-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

/* ── Goal textarea ───────────────────────────────────────────────────────── */

.pc-goal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vc-border, rgba(150, 145, 175, 0.25));
    border-radius: 6px;
    color: var(--ip-text, #e0e0e0);
    font-size: 12px;
    line-height: 1.55;
    padding: 8px 10px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.pc-goal-input:focus {
    outline: none;
    border-color: var(--ip-accent, #7c6ff0);
}

/* ── Pattern display ──────────────────────────────────────────────────────── */

.pc-pattern-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ip-text, #e0e0e0);
    text-transform: capitalize;
}

.pc-conf-badge {
    font-size: 10px;
    padding: 1px 7px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    color: #4ade80;
    font-weight: 600;
}

/* ── Select ──────────────────────────────────────────────────────────────── */

.pc-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vc-border, rgba(150, 145, 175, 0.25));
    border-radius: 6px;
    color: var(--ip-text, #e0e0e0);
    font-size: 12px;
    padding: 6px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}

.pc-select:focus {
    outline: none;
    border-color: var(--ip-accent, #7c6ff0);
}

.pc-select option {
    background: #1a1830;
    color: #e0e0e0;
}

/* ── Jurisdiction chips ──────────────────────────────────────────────────── */

.pc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pc-chip {
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid var(--vc-border, rgba(150, 145, 175, 0.3));
    background: transparent;
    color: var(--ip-text-muted, rgba(255, 255, 255, 0.55));
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
}

.pc-chip:hover {
    border-color: var(--ip-accent, #7c6ff0);
    color: var(--ip-text, #e0e0e0);
}

.pc-chip-active {
    background: rgba(124, 111, 240, 0.18);
    border-color: var(--ip-accent, #7c6ff0);
    color: #c4bfff;
}

/* ── Depth options ───────────────────────────────────────────────────────── */

.pc-depth-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pc-depth-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 7px;
    border: 1px solid var(--vc-border, rgba(150, 145, 175, 0.25));
    background: rgba(255, 255, 255, 0.03);
    color: var(--ip-text-muted, rgba(255, 255, 255, 0.5));
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
    transition: background 0.13s, border-color 0.13s, color 0.13s;
}

.pc-depth-option strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--ip-text, #e0e0e0);
    display: block;
}

.pc-depth-option:hover {
    border-color: var(--ip-accent, #7c6ff0);
    background: rgba(124, 111, 240, 0.08);
}

.pc-depth-active {
    background: rgba(124, 111, 240, 0.18) !important;
    border-color: var(--ip-accent, #7c6ff0) !important;
    color: #c4bfff !important;
}

.pc-depth-active strong {
    color: #fff !important;
}

.pc-depth-credits {
    font-size: 10px;
    color: var(--ip-text-muted, rgba(255, 255, 255, 0.4));
    margin-top: 2px;
}

/* ── Number input ────────────────────────────────────────────────────────── */

.pc-number-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vc-border, rgba(150, 145, 175, 0.25));
    border-radius: 6px;
    color: var(--ip-text, #e0e0e0);
    font-size: 12px;
    padding: 6px 8px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.pc-number-input:focus {
    outline: none;
    border-color: var(--ip-accent, #7c6ff0);
}

/* ── Actions ─────────────────────────────────────────────────────────────── */

.pc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--vc-border, rgba(150, 145, 175, 0.15));
}

.pc-btn-abort {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    color: #f87171;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
    font-family: inherit;
}

.pc-btn-abort:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.7);
}

.pc-btn-abort:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pc-btn-skip {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--vc-border, rgba(150, 145, 175, 0.3));
    border-radius: 6px;
    color: var(--ip-text-muted, rgba(255, 255, 255, 0.55));
    font-size: 12px;
    cursor: pointer;
    transition: background 0.13s, border-color 0.13s;
    font-family: inherit;
}

.pc-btn-skip:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(150, 145, 175, 0.5);
    color: var(--ip-text, #e0e0e0);
}

.pc-btn-skip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pc-btn-approve {
    margin-left: auto;
    padding: 7px 18px;
    background: var(--ip-accent, #7c6ff0);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.13s, opacity 0.13s;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(124, 111, 240, 0.35);
}

.pc-btn-approve:hover:not(:disabled) {
    background: #6a5de0;
}

.pc-btn-approve:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Toast notifications ─────────────────────────────────────────────────── */

.pc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #1e1c38;
    border: 1px solid rgba(124, 111, 240, 0.4);
    border-radius: 8px;
    color: var(--ip-text, #e0e0e0);
    font-size: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    animation: pc-toast-in 0.2s ease;
    max-width: 360px;
}

.pc-toast-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: #2a1a1a;
    color: #fca5a5;
}

@keyframes pc-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
