/* Modern theme variables */ :root { --primary-color: #6366f1; --primary-light: #818cf8; --primary-dark: #4f46e5; --secondary-color: #10b981; --accent-color: #f59e0b; --background-color: #0f172a; --card-background: #1e293b; --surface-light: rgba(30, 41, 59, 0.7); --surface-dark: rgba(15, 23, 42, 0.7); --text-primary: rgba(255, 255, 255, 0.95); --text-secondary: rgba(255, 255, 255, 0.7); --border-color: rgba(255, 255, 255, 0.08); --error-color: #ef4444; --success-color: #10b981; --shadow-color: rgba(0, 0, 0, 0.25); } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(8px); } .loading-content { text-align: center; color: var(--text-primary); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; } .loading-spinner { width: 60px; height: 60px; border: 3px solid rgba(99, 102, 241, 0.3); border-radius: 50%; border-top-color: var(--primary-light); animation: spin 1s linear infinite; } /* Analysis Modal */ .analysis-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(8px); } .modal-content { background: var(--card-background); width: 90%; max-width: 800px; max-height: 90vh; border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); animation: modalFadeIn 0.3s ease-out; } @keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; background: var(--surface-dark); border-bottom: 1px solid var(--border-color); } .modal-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); } .close-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; } .close-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.1); } .modal-body { padding: 1.5rem; overflow-y: auto; max-height: calc(90vh - 130px); } .modal-footer { display: flex; justify-content: flex-end; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--surface-dark); border-top: 1px solid var(--border-color); } .action-btn { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .primary-btn { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; border: none; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); } .primary-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3); } .cancel-btn { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); } .cancel-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); } /* Error Message */ .error-message { position: fixed; top: 20px; right: 20px; background: var(--error-color); color: var(--text-primary); padding: 1rem 1.5rem; border-radius: 0.75rem; z-index: 1001; animation: slideIn 0.3s ease-out; box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); } /* Animations */ @keyframes spin { to { transform: rotate(360deg); } } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .analysis-container { max-width: 800px; margin: 2rem auto; background-color: var(--card-background); border-radius: 1rem; padding: 2rem; box-shadow: 0 4px 20px var(--shadow-color); border: 1px solid var(--border-color); } .analysis-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); } .analysis-header h2 { color: var(--primary-light); font-size: 1.8rem; margin-bottom: 0.75rem; line-height: 1.3; } .analysis-section { margin-bottom: 2rem; padding: 1.5rem; background: rgba(15, 23, 42, 0.3); border-radius: 0.75rem; transition: all 0.3s ease; border: 1px solid var(--border-color); } .analysis-section:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--shadow-color); border-color: var(--primary-light); } .analysis-section h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; } .analysis-section p { line-height: 1.8; color: var(--text-secondary); font-size: 0.95rem; } .back-button { display: inline-block; padding: 0.8rem 1.5rem; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; text-decoration: none; border-radius: 0.75rem; margin-top: 2rem; transition: all 0.3s ease; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); } .back-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3); } /* Loading Animation */ .analysis-loading { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 3rem; } .analysis-spinner { width: 60px; height: 60px; border: 4px solid rgba(99, 102, 241, 0.1); border-top: 4px solid var(--primary-light); border-radius: 50%; animation: spin 1s linear infinite; } /* Analysis Tabs */ .analysis-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: center; } .tab-button { padding: 0.75rem 1.5rem; background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(99, 102, 241, 0.2); color: #a3b3cc; font-size: 0.95rem; font-weight: 500; cursor: pointer; border-radius: 0.5rem; transition: all 0.25s ease; white-space: nowrap; min-width: max-content; position: relative; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; } .tab-button.active { background: rgba(99, 102, 241, 0.15); color: #ffffff; font-weight: 600; border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2); transform: translateY(-2px); } /* Active tab indicator */ .tab-button.active::after { content: ''; position: absolute; bottom: -0.5rem; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.8), rgba(99, 102, 241, 0.2)); border-radius: 3px; } .tab-button:hover:not(.active) { background: rgba(99, 102, 241, 0.05); color: #d1dce8; transform: translateY(-1px); } .tab-button:focus { outline: none; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3); } /* Tab Content */ .tab-content { display: none; width: 100%; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } /* Responsive adjustments */ @media (max-width: 768px) { .analysis-tabs { padding-bottom: 0.75rem; gap: 0.5rem; justify-content: space-between; } .tab-button { padding: 0.75rem 1rem; font-size: 0.9rem; flex: 1; text-align: center; min-height: 45px; display: flex; align-items: center; justify-content: center; } /* Ensure tab content is properly sized on mobile */ .tab-content { width: 100%; } /* Improve chat container on mobile */ .chat-container { height: 400px; max-height: 70vh; } } /* For very small screens */ @media (max-width: 380px) { .analysis-tabs { flex-direction: column; width: 100%; } .tab-button { width: 100%; margin-bottom: 0.5rem; } .tab-button.active::after { width: 30%; bottom: -0.25rem; } }