* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #2563eb; --secondary-color: #1e40af; --accent-color: #3b82f6; --bg-color: #f8fafc; --sidebar-bg: #1e293b; --chat-bg: #ffffff; --user-msg-bg: #2563eb; --bot-msg-bg: #f1f5f9; --text-dark: #0f172a; --text-light: #64748b; --border-color: #e2e8f0; --success-color: #10b981; --error-color: #ef4444; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: var(--bg-color); color: var(--text-dark); line-height: 1.6; } .container { display: flex; height: 100vh; max-width: 1600px; margin: 0 auto; box-shadow: 0 0 50px rgba(0, 0, 0, 0.1); } /* Sidebar Styles */ .sidebar { width: 320px; background: var(--sidebar-bg); color: white; padding: 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 2rem; } .logo-section { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .logo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.5rem; } .logo i { font-size: 2rem; color: var(--accent-color); } .logo h1 { font-size: 1.75rem; font-weight: 700; } .tagline { color: #94a3b8; font-size: 0.875rem; } .quick-links h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 1rem; } .product-link { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: white; padding: 0.875rem 1rem; border-radius: 0.5rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.9rem; } .product-link:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); } .product-link i { color: var(--accent-color); font-size: 1.1rem; } .action-buttons { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; } .btn-primary, .btn-secondary { padding: 0.875rem 1.5rem; border: none; border-radius: 0.5rem; cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; } .btn-primary { background: var(--primary-color); color: white; } .btn-primary:hover { background: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); } .btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); } .btn-secondary:hover { background: rgba(255, 255, 255, 0.15); } /* Chat Container */ .chat-container { flex: 1; display: flex; flex-direction: column; background: var(--chat-bg); } .chat-header { background: white; padding: 1.25rem 2rem; border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .header-info { display: flex; align-items: center; gap: 1rem; } .header-info i { font-size: 2rem; color: var(--primary-color); } .header-info h2 { font-size: 1.25rem; margin-bottom: 0.25rem; } .status { color: var(--success-color); font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; } .status::before { content: ''; width: 8px; height: 8px; background: var(--success-color); border-radius: 50%; display: inline-block; } /* Chat Messages */ .chat-messages { flex: 1; overflow-y: auto; padding: 2rem; background: var(--bg-color); } .message { margin-bottom: 1.5rem; animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message-content { max-width: 70%; padding: 1rem 1.25rem; border-radius: 1rem; line-height: 1.6; } .user-message .message-content { background: var(--user-msg-bg); color: white; margin-left: auto; border-bottom-right-radius: 0.25rem; } .bot-message .message-content { background: var(--bot-msg-bg); color: var(--text-dark); border-bottom-left-radius: 0.25rem; } .message-content ul { margin: 0.5rem 0; padding-left: 1.5rem; } .message-content li { margin: 0.25rem 0; } .streaming-text { position: relative; } .streaming-text::after { content: '▋'; animation: blink 1s infinite; margin-left: 2px; } @keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } } .message-time { display: block; font-size: 0.75rem; color: var(--text-light); margin-top: 0.5rem; } .user-message .message-time { text-align: right; } .appointment-card { background: white; border: 2px solid var(--primary-color); border-radius: 0.75rem; padding: 1.25rem; margin-top: 0.75rem; } .appointment-card h4 { color: var(--primary-color); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; } .appointment-card p { margin: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; } .appointment-card strong { color: var(--text-dark); } .appointment-id { background: var(--primary-color); color: white; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 600; display: inline-block; margin-top: 0.5rem; } /* Chat Input */ .chat-input-container { padding: 1.5rem 2rem; background: white; border-top: 1px solid var(--border-color); } .typing-indicator { display: flex; gap: 0.25rem; padding: 0.5rem 0; margin-bottom: 0.5rem; } .typing-indicator span { width: 8px; height: 8px; background: var(--text-light); border-radius: 50%; animation: typing 1.4s infinite; } .typing-indicator span:nth-child(2) { animation-delay: 0.2s; } .typing-indicator span:nth-child(3) { animation-delay: 0.4s; } @keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } } .chat-input { display: flex; gap: 1rem; align-items: center; } .chat-input input { flex: 1; padding: 0.875rem 1.25rem; border: 2px solid var(--border-color); border-radius: 2rem; font-size: 0.95rem; transition: all 0.3s ease; } .chat-input input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .send-btn { width: 48px; height: 48px; background: var(--primary-color); color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .send-btn:hover { background: var(--secondary-color); transform: scale(1.1); } /* Modal Styles */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-content { background: white; margin: 5% auto; padding: 2rem; border-radius: 1rem; max-width: 500px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: slideDown 0.3s ease; } @keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .close { color: var(--text-light); float: right; font-size: 2rem; font-weight: bold; cursor: pointer; line-height: 1; transition: color 0.3s ease; } .close:hover { color: var(--text-dark); } .modal-content h2 { margin-bottom: 1.5rem; color: var(--text-dark); display: flex; align-items: center; gap: 0.75rem; } .form-group { margin-bottom: 1.25rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem; border: 2px solid var(--border-color); border-radius: 0.5rem; font-size: 0.95rem; transition: all 0.3s ease; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } #appointmentsList { max-height: 400px; overflow-y: auto; padding-right: 0.5rem; } .appointment-item { background: var(--bg-color); padding: 1.25rem; border-radius: 0.75rem; margin-bottom: 1rem; border-left: 4px solid var(--primary-color); } .appointment-item h4 { color: var(--primary-color); margin-bottom: 0.75rem; } .appointment-item p { margin: 0.5rem 0; color: var(--text-dark); } .cancel-btn { background: var(--error-color); color: white; border: none; padding: 0.5rem 1rem; border-radius: 0.5rem; cursor: pointer; margin-top: 0.75rem; transition: all 0.3s ease; } .cancel-btn:hover { background: #dc2626; transform: translateY(-2px); } .empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); } .empty-state i { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; } /* Mobile Responsive */ @media (max-width: 768px) { .container { flex-direction: column; } .sidebar { width: 100%; height: auto; max-height: 40vh; } .message-content { max-width: 85%; } .form-row { grid-template-columns: 1fr; } .modal-content { margin: 10% 1rem; max-width: 100%; } } /* Scrollbar Styles */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-color); } ::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-dark); }