/* DIDI Analysis Tool - Purple Theme */ * { margin: 0; padding: 0; box-sizing: border-box; } body { width: 380px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0d1424; color: #FFFFFF; overflow-x: hidden; } .container { display: flex; flex-direction: column; min-height: 100%; } /* Header */ .header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(0,145,152, 0.2); } .logo h1 { font-size: 22px; font-weight: 700; letter-spacing: 6px; color: #FFFFFF; text-transform: lowercase; } /* Auth Status */ .auth-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9CA3AF; } .auth-dot { width: 8px; height: 8px; border-radius: 50%; background: #6B7280; } .auth-dot.connected { background: #1fb6bd; box-shadow: 0 0 6px rgba(31,182,189, 0.6); } .auth-dot.disconnected { background: #EF4444; } .auth-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Login Section */ .login-section { padding: 32px 28px; text-align: center; } .login-icon { margin-bottom: 16px; } .login-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #FFFFFF; } .login-desc { font-size: 13px; color: #9CA3AF; margin-bottom: 24px; } .api-key-input-group { display: flex; gap: 6px; margin-bottom: 12px; } .api-key-input { flex: 1; padding: 10px 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #FFFFFF; font-family: 'Consolas', 'Monaco', monospace; font-size: 13px; outline: none; transition: all 0.2s; } .api-key-input:focus { border-color: #009198; box-shadow: 0 0 0 2px rgba(0,145,152, 0.15); } .api-key-input::placeholder { color: #4B5563; font-family: 'Inter', sans-serif; } .toggle-btn { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #6B7280; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; } .toggle-btn:hover { color: #1fb6bd; border-color: rgba(0,145,152, 0.3); } .btn-connect { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 16px; background: linear-gradient(135deg, #009198 0%, #1fb6bd 100%); border: none; border-radius: 8px; color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .btn-connect:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,145,152, 0.4); } .btn-connect:disabled { opacity: 0.4; cursor: not-allowed; } .login-status { margin-top: 12px; font-size: 13px; min-height: 20px; } .login-status.success { color: #1fb6bd; } .login-status.error { color: #EF4444; } /* Footer Section */ .footer-section { padding: 0 28px 20px; display: flex; flex-direction: column; gap: 8px; } .btn-disconnect { width: 100%; padding: 8px; background: none; border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 8px; color: #EF4444; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; opacity: 0.7; } .btn-disconnect:hover { opacity: 1; background: rgba(239, 68, 68, 0.08); } /* Main Screen */ .main-screen { padding: 0; } /* Hero Section */ .hero-section { padding: 32px 28px; text-align: center; background: linear-gradient(180deg, rgba(0,145,152, 0.08) 0%, rgba(31,182,189, 0.04) 100%); } .hero-icon { margin: 0 auto 20px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; } .hero-section h2 { font-size: 20px; font-weight: 700; color: #FFFFFF; margin-bottom: 8px; } .hero-description { font-size: 14px; color: #9CA3AF; margin-bottom: 24px; } /* Button Group */ .button-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } /* Capture Button */ .btn-capture { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; background: linear-gradient(135deg, #009198 0%, #1fb6bd 100%); border: none; border-radius: 10px; color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(0,145,152, 0.3); } .btn-capture:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,145,152, 0.4); } .btn-capture:active { transform: translateY(0); } /* Divider */ .divider { height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(0,145,152, 0.2) 50%, transparent 100% ); margin: 0 20px; } /* Info Section */ .info-section { padding: 24px 28px; } .info-title { font-size: 12px; font-weight: 600; color: #1fb6bd; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; } .info-steps { display: flex; flex-direction: column; gap: 12px; } .info-step { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px; transition: all 0.2s ease; } .info-step:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(0,145,152, 0.2); } .step-number { display: flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; background: linear-gradient(135deg, rgba(0,145,152, 0.2) 0%, rgba(31,182,189, 0.2) 100%); border: 1px solid rgba(0,145,152, 0.3); border-radius: 6px; font-size: 11px; font-weight: 700; color: #1fb6bd; } .step-text { font-size: 13px; color: #D1D5DB; line-height: 1.5; } /* Stats Section */ .stats-section { padding: 20px 28px 28px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0,145,152, 0.03); } .stats-title { font-size: 14px; font-weight: 600; color: #FFFFFF; margin-bottom: 12px; } .stats-content { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 14px; font-size: 13px; color: #E4E7EB; line-height: 1.6; } .stats-content strong { color: #1fb6bd; font-weight: 600; } /* Status Messages */ .status { margin: 16px 28px; padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; text-align: center; display: none; animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .status.success { display: block; background: rgba(0,145,152, 0.15); border: 1px solid rgba(0,145,152, 0.3); color: #1fb6bd; } .status.error { display: block; background: rgba(230, 57, 70, 0.15); border: 1px solid rgba(230, 57, 70, 0.3); color: #FF6B7A; } .status.info { display: block; background: rgba(0,145,152, 0.15); border: 1px solid rgba(0,145,152, 0.3); color: #C4B5FD; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); } ::-webkit-scrollbar-thumb { background: rgba(0,145,152, 0.3); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(0,145,152, 0.5); } /* Text Analysis Section */ .text-analysis-section { padding: 24px 28px; background: rgba(0,145,152, 0.03); } .section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1fb6bd; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; } .section-title svg path { stroke: #1fb6bd; } #textInput { width: 100%; min-height: 120px; padding: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.6; resize: vertical; transition: all 0.2s ease; } #textInput::placeholder { color: #6B7280; } #textInput:focus { outline: none; border-color: #009198; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 2px rgba(0,145,152, 0.15); } .text-info { display: flex; justify-content: flex-end; margin-top: 6px; margin-bottom: 12px; font-size: 11px; color: #6B7280; } #charCount { color: #1fb6bd; font-weight: 600; } .btn-analyze { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; background: linear-gradient(135deg, #009198 0%, #1fb6bd 100%); border: none; border-radius: 8px; color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .btn-analyze:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,145,152, 0.3); } .btn-analyze:disabled { opacity: 0.5; cursor: not-allowed; } .btn-analyze:active:not(:disabled) { transform: translateY(0); } .btn-analyze.loading { pointer-events: none; } .btn-analyze.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #FFFFFF; border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 8px; } @keyframes spin { to { transform: rotate(360deg); } } /* History Section */ .history-section { padding: 0 28px 28px; } /* Secondary Button */ .btn-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; color: #D1D5DB; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(0,145,152, 0.3); color: #1fb6bd; transform: translateY(-1px); } .btn-secondary:active { transform: translateY(0); } /* === URL analysis section === */ .url-input-group { display: flex; gap: 6px; margin-bottom: 10px; } .url-input { flex: 1; padding: 10px 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #FFFFFF; font-family: 'Consolas', 'Monaco', monospace; font-size: 13px; outline: none; transition: all 0.2s; } .url-input:focus { border-color: #009198; box-shadow: 0 0 0 2px rgba(0,145,152, 0.15); } .url-input::placeholder { color: #4B5563; font-family: 'Inter', sans-serif; } /* === Privacy note (informare confidențialitate) === */ .privacy-note { margin: 0; padding: 0 2px; font-size: 11px; line-height: 1.55; color: #6B7280; } /* === Accessibility: visible focus on all interactive controls === */ button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid #1fb6bd; outline-offset: 2px; }