/* ============================================
   MOCKUP FRAME
   ============================================ */
.mockup-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}
.mockup-toolbar {
    background: var(--bg-hover);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-dot-red { background: #ef4444; }
.mockup-dot-yellow { background: #eab308; }
.mockup-dot-green { background: #22c55e; }
.mockup-title {
    font-size: 0.75rem; color: var(--text-muted);
    margin-left: 0.5rem;
}

.mockup-content {
    padding: 1.5rem;
    min-height: 200px;
}

.wireframe-comment {
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-input);
    border-radius: 0 0 10px 10px;
}

/* Wireframe rendering */
.ascii-wireframe {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
    color: var(--primary-light);
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

.svg-wireframe {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.svg-wireframe svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   WIREFRAME VIEW TOGGLE (SVG / ASCII)
   ============================================ */
.wireframe-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid var(--border);
    margin-left: auto;
}

.wireframe-toggle-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.15s ease;
    font-family: inherit;
}

.wireframe-toggle-btn:hover {
    color: var(--text-bright);
    background: var(--bg-hover);
}

.wireframe-toggle-btn.active {
    background: var(--primary);
    color: #ffffff;
}

.wireframe-view:not(.active) {
    display: none;
}

.wireframe-description {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    border-top: 1px solid var(--border);
    background: var(--bg-input);
}

.wireframe-metadata {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.wireframe-details {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-input);
}

.wireframe-details summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    user-select: none;
}

.wireframe-details summary:hover {
    color: var(--primary);
}

.mapping-table {
    width: 100%;
    margin-top: 0.75rem;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.mapping-table th {
    background: var(--bg-hover);
    padding: 0.5rem;
    text-align: left;
    font-weight: 500;
    color: var(--text-bright);
    border: 1px solid var(--border);
}

.mapping-table td {
    padding: 0.5rem;
    border: 1px solid var(--border);
    color: var(--text);
}

.mapping-table code {
    background: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* Mockup components */
.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.mock-title { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); }
.mock-btn {
    padding: 0.35rem 0.8rem;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}
.mock-search {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.mock-table {
    width: 100%;
    border-collapse: collapse;
}
.mock-table th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.mock-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(51,65,85,0.5);
}
.mock-table tr:hover td { background: rgba(99,102,241,0.05); }

.mock-status {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.75rem;
}
.mock-status-active { background: rgba(34,197,94,0.15); color: #4ade80; }
.mock-status-pending { background: rgba(234,179,8,0.15); color: #facc15; }
.mock-status-draft { background: rgba(100,116,139,0.15); color: #94a3b8; }

.mock-form-group { margin-bottom: 1rem; }
.mock-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.mock-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
}
.mock-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mock-form-actions {
    display: flex; gap: 0.5rem; justify-content: flex-end;
    padding-top: 1rem; border-top: 1px solid var(--border);
}

/* Dashboard mockup */
.mock-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.mock-kpi {
    background: var(--bg-hover);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}
.mock-kpi-value { font-size: 1.3rem; font-weight: 700; color: var(--text-bright); }
.mock-kpi-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
@media (max-width: 768px) {
    .mock-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
