UNPKG

@jjdenhertog/ai-driven-development

Version:

AI-driven development workflow with learning capabilities for Claude

441 lines (379 loc) 7.51 kB
.container { height: 100%; background: transparent; padding: 0; display: flex; flex-direction: column; overflow: hidden; } .header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 2rem; border-bottom: 1px solid rgba(162, 123, 92, 0.1) } .info { flex: 1; } .name { font-size: 1.5rem; font-weight: 600; color: var(--foreground); text-transform: capitalize; margin-bottom: 0.5rem; } .status { font-size: 1rem; color: var(--muted-foreground); } .status span { font-weight: 600; } .status .running { color: #22c55e; } .status .stopped { color: #ef4444; } .actions { display: flex; gap: 0.75rem; } .actionGroup { position: relative; display: flex; flex-direction: column; gap: 0.5rem; } .optionButtons { position: absolute; top: calc(100% + 0.25rem); left: 0; right: 0; display: flex; flex-direction: column; gap: 0.25rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; padding: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); z-index: 10; } .optionButton { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 4px; background: transparent; color: var(--foreground); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; } .optionButton:hover { background: var(--hover-bg); } .optionButton.danger { color: #ef4444; border-color: #ef4444; } .optionButton.danger:hover { background: rgba(239, 68, 68, 0.1); } .optionButton.warning { color: #f59e0b; border-color: #f59e0b; } .optionButton.warning:hover { background: rgba(245, 158, 11, 0.1); } .warning { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 8px; color: #f59e0b; font-size: 0.875rem; line-height: 1.5; } .warning svg { flex-shrink: 0; margin-top: 0.125rem; } .message { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; border-radius: 8px; font-size: 0.875rem; line-height: 1.5; margin-bottom: 1rem; animation: fadeIn 0.3s ease-in-out; } .message svg { flex-shrink: 0; margin-top: 0.125rem; } .message.info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; } .message.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .actionButton { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1px solid var(--border-color); border-radius: 8px; background: transparent; color: var(--foreground); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .actionButton:hover:not(:disabled) { background: var(--hover-bg); border-color: var(--primary-color); } .actionButton:disabled { opacity: 0.5; cursor: not-allowed; } .actionButton.primary { background: var(--primary-color); color: white; border-color: var(--primary-color); } .actionButton.primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); } .logsSection { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .logsHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .logsTitle { font-size: 1.125rem; font-weight: 600; color: var(--foreground); display: flex; align-items: center; gap: 0.5rem; } .logsToggle { padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 6px; background: transparent; color: var(--foreground); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; } .logsToggle:hover:not(:disabled) { background: var(--hover-bg); border-color: var(--primary-color); } .logsToggle:disabled { opacity: 0.5; cursor: not-allowed; } .logsContent { flex: 1; background: var(--code-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; overflow-y: auto; font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace; font-size: 0.875rem; line-height: 1.5; } .logLines { display: flex; flex-direction: column; gap: 0.125rem; } .noLogs { color: var(--muted-foreground); text-align: center; padding: 2rem; font-style: italic; } .logLine { color: var(--foreground); white-space: pre-wrap; word-break: break-word; padding: 0.25rem 0; display: flex; align-items: flex-start; gap: 0.5rem; transition: background-color 0.2s ease; } .logLine:hover { background: rgba(255, 255, 255, 0.05); } .timestamp { color: var(--muted-foreground); font-size: 0.75rem; flex-shrink: 0; opacity: 0.7; } .logText { flex: 1; } .logText a { color: #3b82f6; text-decoration: underline; } .logText a:hover { color: #2563eb; text-decoration: none; } /* Log type styles */ .logLine.info { color: #3b82f6; } .logLine.success { color: #22c55e; } .logLine.error { color: #ef4444; background: rgba(239, 68, 68, 0.1); } .logLine.warning { color: #f59e0b; background: rgba(245, 158, 11, 0.05); } .logLine.system { color: #a855f7; font-weight: 600; padding: 0.5rem 0; } .logLine.normal { color: var(--foreground); } /* Special formatting for repeated lines */ .logLine .logText:has-text("repeated") { opacity: 0.7; font-style: italic; } /* Warning Modal Styles */ .warningModal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); } .warningModalContent { background: var(--card-bg); border-radius: 12px; padding: 2rem; max-width: 500px; width: 90%; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); } .warningModalContent h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 600; color: #f59e0b; margin-bottom: 1rem; } .warningModalContent p { color: var(--muted-foreground); line-height: 1.5; margin-bottom: 1.5rem; } .warningModalActions { display: flex; gap: 0.75rem; justify-content: flex-end; } .warningModalCancel { padding: 0.5rem 1rem; background: transparent; color: var(--foreground); border: 1px solid var(--border); border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } .warningModalCancel:hover { background: var(--hover-bg); } .warningModalConfirm { padding: 0.5rem 1rem; background: #f59e0b; color: white; border: none; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background 0.2s; } .warningModalConfirm:hover { background: #d97706; } /* Dark mode adjustments */ @media (prefers-color-scheme: dark) { .warning { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); } .logLine.error { background: rgba(239, 68, 68, 0.15); } .logLine.warning { background: rgba(245, 158, 11, 0.1); } }