/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PLAN STUDIO â€” Phase 5A CSS
   Professional curriculum design workspace.
   
   File structure:
   1. Migrated hierarchy card styles (from content-manager.js pedagogicalPlanStyles)
   2. Plan Studio layout (3-panel grid)
   3. Navigator panel
   4. Editor panel
   5. Section components
   6. Form inputs
   7. Coverage map
   8. Controls & buttons
   9. Animations & transitions
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   1. MIGRATED HIERARCHY CARD STYLES (Category A)
   These style buttons/badges in content-manager.js hierarchy cards.
   Moved here from pedagogicalPlanStyles to keep all plan CSS in one file.
   Used by: Module cards (L546), Chapter headers (L704), Topic sections (L793)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.btn-plan-generate {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #8b5cf6;
    padding: 0 12px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-plan-generate:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-plan-generate.plan-ready {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.plan-badge-mini {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 800;
}

.btn-plan-generate.plan-draft-btn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-plan-generate.plan-draft-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* [Phase 5D] Stale validation badge — plan was complete but edited */
.plan-badge-mini.plan-stale {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    animation: stalePulse 2s ease-in-out infinite;
}

@keyframes stalePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-plan-generate.plan-stale-btn {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-plan-generate.plan-stale-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* [Plan Lifecycle] Draft Complete - ready for submission */
.btn-plan-generate.plan-draft-complete-btn {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}
.btn-plan-generate.plan-draft-complete-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* [Plan Lifecycle] Submitted - pending approval */
.btn-plan-generate.plan-submitted-btn {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
    cursor: default;
}
.btn-plan-generate.plan-submitted-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* [Plan Lifecycle] Gated - parent plan not approved */
.btn-plan-generate.plan-gated {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-muted, #6b7280);
    border-color: rgba(107, 114, 128, 0.2);
}
.btn-plan-generate.plan-gated:hover {
    background: rgba(107, 114, 128, 0.1);
    box-shadow: none;
}

/* [Plan Lifecycle] Badge for draft-complete status */
.plan-badge-mini.plan-draft-complete {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* [Plan Lifecycle] Badge for submitted status */
.plan-badge-mini.plan-submitted {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* [Plan Lifecycle] Status badges in Plan Studio top bar */
.ps-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ps-status-badge.submitted {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}
.ps-status-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* [Plan Lifecycle] Submit button in Plan Studio */
.ps-btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: filter 0.15s;
}
.ps-btn-submit:hover {
    filter: brightness(1.1);
}

.btn-approve-objectives {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 0 12px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-approve-objectives:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

/* Lock-gate banner: shown before objectives are locked */
.ps-lock-gate-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.06));
    border: 1px dashed rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    animation: lockGatePulse 3s ease-in-out infinite;
}

.ps-lock-gate-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ps-lock-gate-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ps-lock-gate-text strong {
    color: #a78bfa;
    font-size: 0.95rem;
}

.ps-lock-gate-text span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

@keyframes lockGatePulse {
    0%, 100% { border-color: rgba(139, 92, 246, 0.25); }
    50% { border-color: rgba(139, 92, 246, 0.45); }
}

.ps-btn-lock {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ps-btn-lock:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn-approve-objectives.objectives-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   2. PLAN STUDIO LAYOUT â€” 3-Panel Grid
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ps-container {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 120px);
    gap: 0;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* [Phase 5C] 2-column layout when chat panel is hidden (major profile) */
.ps-container.ps-no-chat {
    grid-template-columns: 260px 1fr;
}

.ps-topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
}

.ps-topbar-title .ps-icon {
    font-size: 1.2rem;
}

.ps-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ps-breadcrumb span {
    color: var(--text-muted, #64748b);
}

.ps-breadcrumb .ps-crumb-active {
    color: var(--primary-color, #6366f1);
    font-weight: 600;
}

.ps-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps-btn-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.ps-btn-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   3. NAVIGATOR PANEL (Left)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ps-navigator {
    background: var(--bg-secondary, #1e293b);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    padding: 0.75rem 0;
}

.ps-nav-header {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.25rem;
}

.ps-nav-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    transition: all 0.15s;
    border-left: 3px solid transparent;
    user-select: none;
}

.ps-nav-item:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-primary, #e2e8f0);
}

.ps-nav-item--selected {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color, #6366f1);
    border-left-color: var(--primary-color, #6366f1);
    font-weight: 600;
}

.ps-nav-item--module {
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    padding-left: 1rem;
}

.ps-nav-item--chapter {
    padding-left: 1.75rem;
    font-size: 0.8rem;
}

.ps-nav-item--topic {
    padding-left: 2.75rem;
    font-size: 0.78rem;
}

/* [Phase 5C] Major Profile nav item */
.ps-nav-item--major {
    font-weight: 600;
    color: #a78bfa;
    padding-left: 1rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 2px;
}

.ps-nav-item--no-plan {
    opacity: 0.5;
}

.ps-nav-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

.ps-nav-badge--ready {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ps-nav-badge--missing {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* [Phase 5C.8] Validation warning badge */
.ps-nav-badge--warn {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    animation: ps-nav-warn-pulse 2s ease-in-out 1;
}

.ps-nav-badge--fail {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes ps-nav-warn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* [Phase 5C.8] Unvalidated badge — plan exists but not yet validated */
.ps-nav-badge--unvalidated {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.6rem;
}

/* Navigator footer — Validate All button */
.ps-nav-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.5rem;
}

.ps-btn-validate-all {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ps-btn-validate-all:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.ps-btn-validate-all:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   4. EDITOR PANEL (Center)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ps-editor {
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: var(--bg-primary, #0f172a);
}

.ps-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-editor-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps-plan-type-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ps-plan-type-badge--lesson {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.ps-plan-type-badge--chapter {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ps-plan-type-badge--module {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Empty state */
.ps-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    text-align: center;
    color: var(--text-muted, #64748b);
}

.ps-empty-state .ps-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ps-empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 0.5rem;
}

.ps-empty-state p {
    font-size: 0.85rem;
    max-width: 350px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.ps-empty-actions {
    display: flex;
    gap: 0.75rem;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   5. SECTION COMPONENTS (Collapsible cards)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ps-section {
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ps-section:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.ps-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    transition: background 0.15s;
}

.ps-section-header:hover {
    background: rgba(99, 102, 241, 0.04);
}

.ps-section-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ps-section-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    justify-content: flex-end;
}

.ps-chevron {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    transition: transform 0.2s;
}

.ps-section.collapsed .ps-section-body {
    display: none;
}

.ps-section.expanded .ps-chevron {
    transform: rotate(0deg);
}

.ps-section.collapsed .ps-chevron {
    transform: rotate(-90deg);
}

.ps-section-body {
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   6. FORM INPUTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ps-field {
    margin-bottom: 1rem;
}

.ps-field:last-child {
    margin-bottom: 0;
}

.ps-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ps-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 2.5rem;
    field-sizing: content; /* Chrome 123+ auto-sizing */
}

.ps-textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.ps-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.ps-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.ps-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.ps-select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
}

/* Inline field row (for side-by-side fields) */
.ps-field-row {
    display: flex;
    gap: 0.75rem;
}

.ps-field-row .ps-field {
    flex: 1;
}

/* Outcome rows */
.ps-outcome-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ps-outcome-row:last-child {
    border-bottom: none;
}

.ps-outcome-topline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ps-outcome-id {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}

.ps-select--dim {
    width: 120px;
    flex-shrink: 0;
}

.ps-outcome-pages {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    margin-left: auto;
    flex-shrink: 0;
}

.ps-input--page {
    width: 48px !important;
    text-align: center;
    min-width: unset !important;
}

.ps-textarea--outcome {
    font-size: 0.82rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 40px;
}

.ps-textarea--rubric {
    font-size: 0.8rem;
    line-height: 1.5;
    min-height: 48px;
    resize: vertical;
    field-sizing: content;
}

.ps-select--outcome-full {
    width: 100%;
    white-space: normal;
    font-size: 0.8rem;
    padding: 6px 8px;
    line-height: 1.4;
}

.ps-linked-objective {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary, #94a3b8);
    background: rgba(99, 102, 241, 0.06);
    border-left: 3px solid rgba(99, 102, 241, 0.4);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   8. CONTROLS & BUTTONS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.ps-btn-undo, .ps-btn-redo {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.ps-btn-undo:hover:not(:disabled), .ps-btn-redo:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}
.ps-btn-undo:disabled, .ps-btn-redo:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.ps-btn-save {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ps-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ps-btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ps-btn-generate {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ps-btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ps-btn-scratch {
    background: transparent;
    color: var(--text-muted, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ps-btn-scratch:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary, #e2e8f0);
}

.ps-btn-regen {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #a855f7;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}

.ps-btn-regen:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-1px);
}

.ps-btn-add {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--text-muted, #94a3b8);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 0.5rem;
}

.ps-btn-add:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-color, #6366f1);
    background: rgba(99, 102, 241, 0.04);
}

.ps-btn-delete {
    background: none;
    border: none;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    opacity: 0.6;
}

.ps-btn-delete:hover {
    opacity: 1;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Dirty state indicator */
.ps-dirty-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #f59e0b;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: ps-pulse 2s ease-in-out infinite;
}

.ps-dirty-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   9. ANIMATIONS & TRANSITIONS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@keyframes ps-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes ps-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ps-section {
    animation: ps-fade-in 0.2s ease-out;
}

/* Scrollbar styling for navigator and editor */
.ps-navigator::-webkit-scrollbar,
.ps-editor::-webkit-scrollbar {
    width: 5px;
}

.ps-navigator::-webkit-scrollbar-track,
.ps-editor::-webkit-scrollbar-track {
    background: transparent;
}

.ps-navigator::-webkit-scrollbar-thumb,
.ps-editor::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.ps-navigator::-webkit-scrollbar-thumb:hover,
.ps-editor::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}


