/* ============================================
   Product Demo Mockup Styles
   ============================================ */

/* === SHARED MOCKUP FRAME === */

.mockup-frame {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-titlebar-text {
    flex: 1;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
}

.mockup-body {
    padding: var(--space-6);
}


/* ============================================
   FORM BUILDER MOCKUP
   ============================================ */

.fb-mockup .mockup-body {
    display: flex;
    gap: var(--space-4);
    min-height: 420px;
    padding: var(--space-4);
}

/* Left Panel: Components */
.fb-components {
    width: 180px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
}

.fb-panel-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
}

.fb-comp-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: var(--space-1);
    transition: all 0.4s var(--ease-out);
    cursor: default;
}

.fb-comp-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-tertiary);
}

.fb-comp-item.dragging {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.06);
    box-shadow: var(--glow-cyan);
    color: var(--accent-primary);
    transform: scale(1.03);
}

.fb-comp-item.dragging .fb-comp-icon {
    color: var(--accent-primary);
}

/* Center: Canvas */
.fb-canvas {
    flex: 1;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-default);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: relative;
    min-height: 350px;
    transition: border-color 0.3s ease;
}

.fb-canvas.has-items {
    border-style: solid;
    border-color: var(--border-subtle);
}

.fb-canvas-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fb-canvas.has-items .fb-canvas-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* Canvas field items */
.fb-field {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.fb-field.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fb-field.landing {
    animation: fieldLand 0.4s var(--ease-out);
}

@keyframes fieldLand {
    0% { opacity: 0; transform: translateY(-8px) scale(0.95); box-shadow: var(--glow-cyan); }
    60% { opacity: 1; transform: translateY(2px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fb-field-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.fb-field-input {
    width: 100%;
    height: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.fb-field-select {
    width: 100%;
    height: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    justify-content: space-between;
}

.fb-field-stars {
    display: flex;
    gap: var(--space-1);
}

.fb-star {
    width: 18px;
    height: 18px;
    color: var(--accent-warm);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.fb-field.visible .fb-star {
    opacity: 1;
    animation: starPop 0.3s var(--ease-out) both;
}

.fb-field.visible .fb-star:nth-child(1) { animation-delay: 0.1s; }
.fb-field.visible .fb-star:nth-child(2) { animation-delay: 0.2s; }
.fb-field.visible .fb-star:nth-child(3) { animation-delay: 0.3s; }
.fb-field.visible .fb-star:nth-child(4) { animation-delay: 0.4s; }
.fb-field.visible .fb-star:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.fb-field-sig {
    width: 100%;
    height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.fb-sig-line {
    position: absolute;
    bottom: 15px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-default);
}

.fb-sig-path {
    position: absolute;
    bottom: 12px;
    left: 15%;
    width: 0;
    height: 20px;
    transition: width 1s ease-out;
}

.fb-field.visible .fb-sig-path {
    width: 60%;
}

/* Right Panel: Properties */
.fb-properties {
    width: 170px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
    opacity: 0.4;
    transition: opacity 0.5s ease, border-color 0.3s ease;
}

.fb-properties.active {
    opacity: 1;
    border-color: rgba(0, 212, 255, 0.2);
}

.fb-prop-field {
    margin-bottom: var(--space-3);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease-out);
}

.fb-properties.active .fb-prop-field {
    opacity: 1;
    transform: translateY(0);
}

.fb-properties.active .fb-prop-field:nth-child(1) { transition-delay: 0.1s; }
.fb-properties.active .fb-prop-field:nth-child(2) { transition-delay: 0.2s; }
.fb-properties.active .fb-prop-field:nth-child(3) { transition-delay: 0.3s; }
.fb-properties.active .fb-prop-field:nth-child(4) { transition-delay: 0.4s; }

.fb-prop-label {
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-1);
}

.fb-prop-value {
    height: 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.fb-prop-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-toggle-track {
    width: 28px;
    height: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    position: relative;
    transition: background 0.3s ease;
}

.fb-properties.active .fb-toggle-track {
    background: var(--accent-primary);
}

.fb-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.fb-properties.active .fb-toggle-thumb {
    transform: translateX(12px);
}

/* Resetting animation */
.fb-mockup.resetting .mockup-body {
    opacity: 0;
    transition: opacity 0.5s ease;
}


/* ============================================
   DASHBOARD MOCKUP
   ============================================ */

.dash-mockup .mockup-body {
    display: flex;
    gap: var(--space-3);
    min-height: 380px;
    padding: var(--space-3);
}

/* Sidebar */
.dash-sidebar {
    width: 50px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.dash-sidebar-item {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

.dash-sidebar-item.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
}

/* Main content */
.dash-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-3);
}

/* Widget cards */
.dash-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.dash-widget-title {
    font-size: 10px;
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-3);
}

/* Donut Chart */
.dash-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-primary) 0deg,
        var(--accent-primary) calc(var(--progress, 0) * 3.6deg),
        var(--bg-surface) calc(var(--progress, 0) * 3.6deg),
        var(--bg-surface) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-2) auto;
    position: relative;
}

.dash-donut-inner {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dash-donut-value {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--accent-primary);
    line-height: 1;
}

.dash-donut-label {
    font-size: 9px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Action Items */
.dash-action-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dash-action-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease-out);
}

.dash-action-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.dash-action-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-action-dot.urgent { background: var(--accent-danger); }
.dash-action-dot.pending { background: var(--accent-warm); }
.dash-action-dot.done { background: var(--accent-success); }

.dash-action-badge {
    margin-left: auto;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: var(--weight-semibold);
}

.dash-action-badge.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

/* Bar Chart */
.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--space-2);
    height: 100px;
    padding-top: var(--space-2);
}

.dash-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.dash-bar {
    width: 100%;
    max-width: 32px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.8s var(--ease-out);
}

.dash-bar.animated {
    transform: scaleY(1);
}

.dash-bar.cyan { background: var(--accent-primary); }
.dash-bar.purple { background: var(--accent-secondary); opacity: 0.7; }

.dash-bar-label {
    font-size: 9px;
    color: var(--text-tertiary);
}

/* Activity Feed */
.dash-activity {
    grid-column: span 2;
}

.dash-feed {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dash-feed-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s var(--ease-out);
}

.dash-feed-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.dash-feed-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.dash-feed-time {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-tertiary);
    white-space: nowrap;
}


/* ============================================
   DUE DATES DUAL-VIEW MOCKUP
   ============================================ */

/* Container */
.dd-mockup .mockup-body.dd-body {
    padding: 0;
    position: relative;
    min-height: 240px;
    overflow: hidden;
}

/* === Rules Manager View === */
.dd-rules-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dd-rules-view.hiding {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
}

/* Toolbar */
.dd-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(15, 20, 36, 0.5);
}

.dd-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dd-toolbar-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.dd-rule-count {
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.dd-toolbar-right {
    display: flex;
    gap: 6px;
}

.dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: var(--weight-medium);
    font-family: var(--font-family);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: default;
    transition: all 0.3s ease;
}

.dd-btn-add.pulse {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
    animation: dd-btn-pulse 0.8s ease-in-out;
}

@keyframes dd-btn-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.25); }
    50% { box-shadow: 0 0 16px rgba(0, 212, 255, 0.5); }
}

.dd-btn-run.highlight {
    border-color: var(--accent-secondary);
    color: #fff;
    background: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(124, 92, 252, 0.4);
}

.dd-btn-run.clicked {
    transform: scale(0.94);
}

/* Rules List */
.dd-rules-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
}

.dd-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}

.dd-rule:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 42px;
    right: 16px;
    height: 1px;
    background: var(--border-subtle);
}

.dd-drag-handle {
    color: var(--text-tertiary);
    opacity: 0.5;
    cursor: grab;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.dd-rule-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dd-rule-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    flex: 1;
}

.dd-rule-date {
    font-size: 11px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* Hidden new rule */
.dd-rule-new {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
}

.dd-rule-new.inserting {
    max-height: 50px;
    padding: 10px 16px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease 0.1s;
}

.dd-rule-new.inserted {
    max-height: 50px;
    padding: 10px 16px;
    overflow: visible;
    opacity: 1;
}

/* Dragging state */
.dd-rule.dragging {
    z-index: 10;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(0, 212, 255, 0.2);
    transform: scale(1.02);
}

.dd-rule.dragging .dd-drag-handle {
    opacity: 1;
    color: var(--accent-primary);
}

.dd-rule.dragging::after {
    display: none;
}

/* Shift animation for rows moving out of the way */
.dd-rule.shift-down {
    transform: translateY(var(--dd-row-h, 42px));
}

/* === Timeline View === */
.dd-timeline-view {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-2);
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dd-timeline-view .timeline-row {
    width: 100%;
    padding: 0 var(--space-2);
}

.dd-timeline-view .timeline-label {
    font-size: 10px;
}

.dd-timeline-view .timeline-date {
    font-size: 9px;
}

.dd-timeline-view .timeline-dot {
    width: 26px;
    height: 26px;
}

.dd-timeline-view.showing {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}


/* ============================================
   DUE DATES TIMELINE (shared styles)
   ============================================ */

.dd-mockup .mockup-body {
    min-height: 240px;
}

.timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 var(--space-4);
}

/* Connecting line */
.timeline-line {
    position: absolute;
    top: 50%;
    left: calc(var(--space-4) + 16px);
    right: calc(var(--space-4) + 16px);
    height: 2px;
    background: var(--border-subtle);
    transform: translateY(-50%);
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 2s var(--ease-out);
}

.timeline-line-fill.animated {
    width: 100%;
}

/* Milestone */
.timeline-milestone {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out);
}

.timeline-milestone.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.5s var(--ease-out);
}

.timeline-milestone.visible .timeline-dot {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.timeline-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-out) 0.3s;
}

.timeline-milestone.visible .timeline-dot-inner {
    opacity: 1;
    transform: scale(1);
}

.timeline-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    text-align: center;
}

.timeline-date {
    font-size: 10px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.timeline-milestone.visible .timeline-label {
    color: var(--accent-primary);
}


/* ============================================
   VALIDATION CARD MOCKUP
   ============================================ */

.vc-mockup .mockup-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-height: 420px;
}

/* Progress Bar */
.vc-progress-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.vc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.vc-progress-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.vc-progress-pct {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--accent-primary);
    font-variant-numeric: tabular-nums;
}

.vc-progress-track {
    height: 6px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.vc-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 0.4s var(--ease-out);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Sections Container */
.vc-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Individual Section */
.vc-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s var(--ease-out);
}

.vc-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.vc-section.complete {
    border-color: rgba(16, 185, 129, 0.2);
}

/* Section Header */
.vc-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
}

.vc-section-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vc-section-icon.evaluator {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
}

.vc-section-icon.evaluatee {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-secondary);
}

.vc-section-icon.signatures {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warm);
}

.vc-section-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vc-section-name {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.vc-section-who {
    font-size: 10px;
    color: var(--text-tertiary);
}

.vc-section-count {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.vc-section.complete .vc-section-count {
    color: var(--accent-success);
}

/* Checklist */
.vc-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.vc-check-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    transition: background 0.3s ease;
}

.vc-check-item.checked {
    background: rgba(16, 185, 129, 0.04);
}

.vc-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out);
    background: transparent;
}

.vc-checkbox svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-out);
    color: white;
}

.vc-check-item.checked .vc-checkbox {
    background: var(--accent-success);
    border-color: var(--accent-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.vc-check-item.checked .vc-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.vc-status {
    margin-left: auto;
    font-size: 10px;
    font-weight: var(--weight-medium);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.vc-status.pending {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-tertiary);
}

.vc-status.complete {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-success);
}


/* ============================================
   E-SIGN MOCKUP
   ============================================ */

.esign-mockup .mockup-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-height: 380px;
    position: relative;
}

/* Signer Info */
.esign-signer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.esign-signer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 92, 252, 0.15));
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.esign-signer-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.esign-signer-name {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

.esign-signer-role {
    font-size: 10px;
    color: var(--text-tertiary);
}

.esign-compliance-badge {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
    font-size: 10px;
    font-weight: var(--weight-medium);
    white-space: nowrap;
}

/* Signature Pad */
.esign-pad {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.esign-pad-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-3);
}

.esign-canvas {
    position: relative;
    height: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.esign-signature-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
}

.esign-sig-path {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    transition: stroke-dashoffset 2.2s ease-in-out;
}

.esign-mockup.signing .esign-sig-path {
    stroke-dashoffset: 0;
}

.esign-baseline {
    position: absolute;
    bottom: 20px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--border-default);
}

/* Mode Tabs */
.esign-modes {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.esign-mode {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--text-tertiary);
    border: 1px solid transparent;
    cursor: default;
}

.esign-mode.active {
    background: rgba(0, 212, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
}

/* Footer: Encryption + Button */
.esign-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.esign-encryption {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s var(--ease-out);
}

.esign-mockup.signing .esign-encryption {
    opacity: 1;
    transform: translateX(0);
}

.esign-lock-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.esign-encryption-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.esign-enc-label {
    font-size: 10px;
    font-weight: var(--weight-semibold);
    color: var(--accent-primary);
}

.esign-enc-detail {
    font-size: 9px;
    color: var(--text-tertiary);
}

.esign-sign-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-tertiary);
    cursor: default;
    transition: all 0.4s var(--ease-out);
}

.esign-mockup.ready .esign-sign-btn {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-cyan);
}

.esign-mockup.submitting .esign-sign-btn {
    transform: scale(0.97);
    opacity: 0.7;
}

/* Confirmed Overlay */
.esign-confirmed {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.esign-mockup.confirmed .esign-confirmed {
    opacity: 1;
}

.esign-confirmed-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--accent-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-success);
    transform: scale(0);
    transition: transform 0.5s var(--ease-out) 0.2s;
}

.esign-mockup.confirmed .esign-confirmed-icon {
    transform: scale(1);
}

.esign-confirmed-text {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--accent-success);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease-out) 0.4s;
}

.esign-mockup.confirmed .esign-confirmed-text {
    opacity: 1;
    transform: translateY(0);
}

.esign-confirmed-ts {
    font-size: 10px;
    color: var(--text-tertiary);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease-out) 0.6s;
}

.esign-mockup.confirmed .esign-confirmed-ts {
    opacity: 1;
    transform: translateY(0);
}
