:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f0f14;
    --bg-card: #1a1a24;
    --bg-input: #252532;
    --bg-hover: #2d2d3d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d2d3d;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-item i {
    font-size: 20px;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    min-height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.header-left h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-card:nth-child(2)::before {
    background: var(--gradient-secondary);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card:nth-child(1) .stat-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-card:nth-child(2) .stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--secondary);
}

.stat-card:nth-child(3) .stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-card:nth-child(4) .stat-icon {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.project-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.project-client {
    font-size: 13px;
    color: var(--text-muted);
}

.project-phase {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.phase-discovery { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.phase-architecture { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.phase-dev { background: rgba(245, 158, 11, 0.15); color: var(--secondary); }
.phase-qa { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.phase-deploy { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-action:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.quick-action:nth-child(1) .quick-action-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.quick-action:nth-child(2) .quick-action-icon { background: rgba(245, 158, 11, 0.15); color: var(--secondary); }
.quick-action:nth-child(3) .quick-action-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.quick-action:nth-child(4) .quick-action-icon { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.quick-action-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.quick-action-text p {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.tab-container {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: var(--text-muted);
}

.tab.active {
    background: var(--gradient-primary);
    color: white;
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    background: var(--bg-hover);
}

.checklist-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checklist-item.completed .checklist-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.checklist-content {
    flex: 1;
}

.checklist-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.checklist-description {
    font-size: 13px;
    color: var(--text-muted);
}

.checklist-category {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.folder-structure {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-secondary);
}

.folder-item i {
    color: var(--secondary);
}

.folder-item.sub {
    padding-left: 32px;
}

.folder-item.sub i {
    color: var(--text-muted);
}

.cta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.cta-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.cta-badge.primary {
    background: var(--gradient-primary);
    color: white;
}

.cta-badge.secondary {
    background: var(--gradient-secondary);
    color: white;
}

.cta-info {
    flex: 1;
}

.cta-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cta-text {
    font-weight: 600;
}

.message-templates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-template {
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.message-template:hover {
    border-color: var(--primary);
}

.message-template-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.message-template-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.message-template:nth-child(1) .message-template-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.message-template:nth-child(2) .message-template-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.message-template:nth-child(3) .message-template-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.message-template h4 {
    font-size: 14px;
    font-weight: 600;
}

.message-template p {
    font-size: 13px;
    color: var(--text-muted);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
    margin: 0 auto 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.project-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.project-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.project-detail-info h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.project-detail-info p {
    color: var(--text-muted);
}

.phase-selector {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.phase-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.phase-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.phase-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--text-primary);
}

.folder-generator-preview {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.folder-generator-preview h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.generating {
    animation: pulse 1.5s infinite;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }

.toast-message {
    font-size: 14px;
}

.copy-btn {
    padding: 4px 10px;
    font-size: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.prompt-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.prompt-option {
    padding: 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.prompt-option:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.prompt-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.prompt-option i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.prompt-option h4 {
    font-size: 14px;
    font-weight: 600;
}

.prompt-option p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.prompt-fields-container {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    display: none;
}

.prompt-fields-container.active {
    display: block;
}

.prompt-fields-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.prompt-fields-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.prompt-fields-header h4 i {
    color: var(--primary);
}

.prompt-field-group {
    margin-bottom: 16px;
}

.prompt-field-group-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-field-group-title:first-child {
    margin-top: 0;
}

.prompt-output {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
    display: none;
}

.prompt-output.active {
    display: block;
}

.prompt-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.prompt-output-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-output-actions {
    display: flex;
    gap: 8px;
}

.prompt-output-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

.prompt-output-content::-webkit-scrollbar {
    width: 8px;
}

.prompt-output-content::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 4px;
}

.prompt-output-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.copy-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--success);
    font-size: 12px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-indicator.show {
    opacity: 1;
}

.send-to-vibe {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.send-to-vibe .form-group {
    flex: 1;
    margin-bottom: 0;
}

.prompt-required {
    color: var(--danger);
}

.history-timeline {
    position: relative;
    padding-left: 24px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.history-item {
    position: relative;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border-left: 3px solid var(--primary);
}

.history-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg-main);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-item-title {
    font-weight: 600;
    font-size: 14px;
}

.history-item-date {
    font-size: 12px;
    color: var(--text-muted);
}

.history-item-content {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-item-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.history-item-type.prompt { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.history-item-type.audit { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.history-item-type.status { background: rgba(245, 158, 11, 0.15); color: var(--secondary); }
.history-item-type.note { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.history-item-type.pdf { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.generate-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.generate-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.report-preview {
    background: white;
    color: #1a1a1a;
    padding: 32px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    max-height: 500px;
    overflow-y: auto;
}

.report-preview h1 { font-size: 24px; margin-bottom: 8px; color: #1a1a1a; }
.report-preview h2 { font-size: 18px; margin: 16px 0 8px; color: #333; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.report-preview h3 { font-size: 14px; margin: 12px 0 6px; color: #555; }
.report-preview p { font-size: 12px; line-height: 1.6; margin-bottom: 8px; }
.report-preview ul { margin: 8px 0; padding-left: 20px; }
.report-preview li { font-size: 12px; margin-bottom: 4px; }
.report-preview .meta { color: #888; font-size: 11px; }

.db-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.db-status.connected { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.db-status.disconnected { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.project-summary-card {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.project-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-main);
    border-radius: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.wireframe-info {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.wireframe-info h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wireframe-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.wireframe-tool {
    padding: 12px;
    background: var(--bg-main);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.wireframe-tool h5 {
    font-size: 13px;
    margin-bottom: 4px;
}

.wireframe-tool p {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .send-to-vibe {
        flex-direction: column;
    }
}

/* Workspace Utilities */
.copy-indicator {
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-indicator.visible {
    opacity: 1;
}

.btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

pre {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

pre::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page.active {
    display: block !important;
    animation: fadeIn 0.4s ease forwards;
}

