/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f5f7fa; } .App { max-width: 1200px; margin: 0 auto; padding: 20px; min-height: 100vh; display: flex; flex-direction: column; } /* Header styles */ .app-header { text-align: center; padding: 2rem 0; margin-bottom: 2rem; background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); position: relative; } .app-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; } .app-header p { font-size: 1.2rem; opacity: 0.9; } /* Header auth info (prod mode) */ .header-auth { position: absolute; top: 1rem; right: 1.5rem; display: flex; align-items: center; gap: 0.75rem; } .header-username { font-size: 0.9rem; opacity: 0.9; } .header-logout-btn { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.4); padding: 0.35rem 0.85rem; border-radius: 5px; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; } .header-logout-btn:hover { background: rgba(255, 255, 255, 0.35); } /* Login prompt page */ .login-prompt { text-align: center; padding: 3rem 2rem; max-width: 480px; margin: 2rem auto; } .login-prompt h2 { margin-bottom: 1rem; color: #2d3748; } .login-prompt p { color: #718096; margin-bottom: 2rem; font-size: 1.05rem; } .login-button { padding: 0.85rem 2.5rem; font-size: 1.1rem; } /* Main layout */ .app-main { flex: 1; display: flex; flex-direction: column; gap: 2rem; } .section { background: white; border-radius: 10px; padding: 2rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); } .hidden { display: none; } /* Form styles */ .form-group { margin-bottom: 1.5rem; } .label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #444; } .input, .select { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; transition: border-color 0.3s; } .input:focus, .select:focus { outline: none; border-color: #2575fc; box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.2); } .model-selection { display: flex; flex-wrap: wrap; gap: 1rem; } .model-item { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 0.5rem; } .stance-label { align-self: flex-start; background: #eef2ff; color: #4f46e5; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; } .button { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; display: inline-block; text-align: center; text-decoration: none; } .button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(37, 117, 252, 0.3); } .button:active { transform: translateY(0); } .create-debate-button { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); padding: 1rem 2rem; font-size: 1.1rem; width: 100%; margin-top: 1rem; } /* Debate section styles */ .debate-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; } .start-debate-button { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); } .stop-debate-button { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); } .view-sessions-button { background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%); } .back-button { background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%); align-self: flex-start; } .debate-stream { border: 1px solid #eee; border-radius: 8px; padding: 1.5rem; min-height: 400px; max-height: 80vh; overflow-y: auto; background-color: #fafafa; } .round-container { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed #ddd; } .round-container:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .speaker-header { display: flex; align-items: center; margin-bottom: 0.75rem; padding: 0.5rem; border-radius: 5px; } .pro-speaker { background-color: #dbeafe; border-left: 4px solid #3b82f6; } .con-speaker { background-color: #ffe4e6; border-left: 4px solid #ef4444; } .speaker-info { font-weight: 600; } .speaker-stance { margin-left: auto; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; } .pro-stance { background-color: #3b82f6; color: white; } .con-stance { background-color: #ef4444; color: white; } .speaker-content { padding: 0.5rem 1rem; background-color: white; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); line-height: 1.8; white-space: pre-wrap; word-break: break-word; } .debate-summary { margin-top: 2rem; padding: 1.5rem; background-color: #f0f9ff; border-radius: 8px; border-left: 4px solid #0ea5e9; } .debate-summary h3 { color: #0ea5e9; margin-bottom: 1rem; } /* Sessions list styles */ .sessions-list-item { padding: 1rem; border: 1px solid #eee; border-radius: 5px; margin-bottom: 0.75rem; background-color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .session-topic { font-weight: 600; color: #2d3748; } .session-meta { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.9rem; color: #718096; } .session-actions { margin-top: 0.75rem; } .view-session-button { background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%); padding: 0.5rem 1rem; font-size: 0.9rem; } /* Settings Page Styles */ .settings-container { display: flex; flex-direction: column; gap: 2rem; } .api-key-form { display: flex; flex-direction: column; gap: 1.5rem; } .api-key-input-group { display: flex; flex-direction: column; gap: 0.5rem; } .api-key-input-group label { font-weight: 600; color: #444; } .input-with-buttons { display: flex; gap: 0.5rem; } .input-with-buttons .input { flex: 1; } .input-with-buttons .button { align-self: stretch; white-space: nowrap; } .save-status { align-self: center; color: #38a169; font-weight: 600; } .validation-status { align-self: center; font-weight: 600; } .validation-status.valid { color: #38a169; /* Green for valid */ } .validation-status.invalid { color: #e53e3e; /* Red for invalid */ } .settings-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; } /* Checkbox label */ .checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 600; color: #444; } .checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; } /* Search Evidence Styles */ .search-evidence { margin-top: 0.75rem; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; background-color: #f8fafc; } .search-evidence-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; cursor: pointer; user-select: none; background-color: #edf2f7; transition: background-color 0.2s; } .search-evidence-header:hover { background-color: #e2e8f0; } .search-evidence-icon { font-size: 0.7rem; color: #718096; } .search-evidence-title { font-weight: 600; font-size: 0.85rem; color: #4a5568; } .search-evidence-badge { margin-left: auto; background-color: #bee3f8; color: #2b6cb0; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.75rem; font-weight: 600; } .search-evidence-body { padding: 0.75rem; } .search-evidence-query { font-size: 0.8rem; color: #718096; margin-bottom: 0.5rem; font-style: italic; } .search-evidence-item { padding: 0.5rem 0; border-bottom: 1px solid #e2e8f0; } .search-evidence-item:last-child { border-bottom: none; } .search-evidence-link { color: #2b6cb0; font-weight: 600; font-size: 0.85rem; text-decoration: none; } .search-evidence-link:hover { text-decoration: underline; } .search-evidence-snippet { font-size: 0.8rem; color: #4a5568; margin-top: 0.25rem; line-height: 1.5; } /* Evidence Library Styles */ .evidence-library-panel { margin-top: 1.5rem; border: 1px solid #fbbf24; border-radius: 8px; overflow: hidden; background-color: #fffbeb; } .evidence-library-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; cursor: pointer; user-select: none; background-color: #fef3c7; transition: background-color 0.2s; } .evidence-library-header:hover { background-color: #fde68a; } .evidence-library-icon { font-size: 0.75rem; color: #92400e; } .evidence-library-title { font-weight: 700; font-size: 1rem; color: #92400e; } .evidence-library-badge { margin-left: auto; background-color: #f59e0b; color: white; padding: 0.2rem 0.6rem; border-radius: 10px; font-size: 0.75rem; font-weight: 600; } .evidence-library-body { padding: 1rem; } .evidence-library-entry { padding: 0.75rem; margin-bottom: 0.75rem; background-color: white; border: 1px solid #e5e7eb; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .evidence-library-entry:last-child { margin-bottom: 0; } .evidence-library-entry-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .evidence-library-link { color: #b45309; font-weight: 600; font-size: 0.9rem; text-decoration: none; flex: 1; } .evidence-library-link:hover { text-decoration: underline; color: #92400e; } .evidence-library-score { font-size: 0.75rem; color: #6b7280; white-space: nowrap; } .evidence-library-snippet { font-size: 0.8rem; color: #4b5563; line-height: 1.5; margin-bottom: 0.5rem; } .evidence-library-refs { display: flex; flex-wrap: wrap; gap: 0.4rem; } .evidence-library-ref-tag { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.7rem; font-weight: 600; } .evidence-library-ref-tag.ref-pro { background-color: #dbeafe; color: #1d4ed8; } .evidence-library-ref-tag.ref-con { background-color: #ffe4e6; color: #dc2626; } /* Setup Wizard Styles */ .setup-wizard { max-width: 600px; margin: 0 auto; } .setup-steps { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; } .setup-step-indicator { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; opacity: 0.5; } .setup-step-indicator.active { opacity: 1; } .setup-step-indicator.done { opacity: 0.8; } .setup-step-number { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #4a5568; } .setup-step-indicator.active .setup-step-number { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; } .setup-step-indicator.done .setup-step-number { background: #38a169; color: white; } .setup-step-label { font-size: 0.8rem; color: #4a5568; font-weight: 600; } .setup-step-content h3 { margin-bottom: 1rem; color: #2d3748; } .setup-hint { font-size: 0.9rem; color: #718096; margin-bottom: 1rem; font-style: italic; } .setup-test-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; } .setup-test-result { font-weight: 600; font-size: 0.9rem; } .setup-test-result.success { color: #38a169; } .setup-test-result.fail { color: #e53e3e; } .setup-nav { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; } /* Settings Tabs */ .settings-tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 1.5rem; } .settings-tab { background: none; border: none; padding: 0.75rem 1.25rem; font-size: 0.95rem; font-weight: 600; color: #718096; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s, border-color 0.2s; } .settings-tab:hover { color: #4a5568; } .settings-tab.active { color: #2575fc; border-bottom-color: #2575fc; } .settings-tab-content { min-height: 200px; } /* Footer styles */ .app-footer { text-align: center; padding: 2rem 0 1rem; color: #718096; font-size: 0.9rem; margin-top: 2rem; } /* Responsive design */ @media (max-width: 768px) { .App { padding: 10px; } .app-header h1 { font-size: 2rem; } .section { padding: 1.5rem; } .model-selection { flex-direction: column; } .debate-controls { flex-direction: column; } .button { width: 100%; } }