Spaces:
Sleeping
Sleeping
| /* TDK Chatbot - Modern ve Profesyonel Tasarım */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 20px; | |
| } | |
| /* Ana Container */ | |
| .container { | |
| max-width: 1000px; | |
| width: 100%; | |
| background: white; | |
| border-radius: 24px; | |
| box-shadow: 0 20px 80px rgba(0,0,0,0.3); | |
| overflow: hidden; | |
| backdrop-filter: blur(10px); | |
| } | |
| /* Header */ | |
| .header { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| padding: 35px 40px; | |
| text-align: center; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .header::before { | |
| content: ''; | |
| position: absolute; | |
| top: -50%; | |
| left: -50%; | |
| width: 200%; | |
| height: 200%; | |
| background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); | |
| animation: pulse 15s ease-in-out infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { transform: scale(1) rotate(0deg); } | |
| 50% { transform: scale(1.1) rotate(180deg); } | |
| } | |
| .header h1 { | |
| font-size: 2.2em; | |
| margin-bottom: 12px; | |
| font-weight: 700; | |
| position: relative; | |
| z-index: 1; | |
| text-shadow: 0 2px 10px rgba(0,0,0,0.2); | |
| } | |
| .header p { | |
| opacity: 0.95; | |
| font-size: 1.15em; | |
| position: relative; | |
| z-index: 1; | |
| font-weight: 400; | |
| } | |
| /* Chat Container */ | |
| .chat-container { | |
| height: 550px; | |
| overflow-y: auto; | |
| padding: 35px; | |
| background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%); | |
| scroll-behavior: smooth; | |
| } | |
| /* Scrollbar Styling */ | |
| .chat-container::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| .chat-container::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| border-radius: 10px; | |
| } | |
| .chat-container::-webkit-scrollbar-thumb { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| border-radius: 10px; | |
| } | |
| .chat-container::-webkit-scrollbar-thumb:hover { | |
| background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%); | |
| } | |
| /* Messages */ | |
| .message { | |
| margin-bottom: 24px; | |
| display: flex; | |
| gap: 12px; | |
| animation: fadeSlideIn 0.4s ease-out; | |
| } | |
| @keyframes fadeSlideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .message.user { | |
| justify-content: flex-end; | |
| } | |
| .message-content { | |
| max-width: 75%; | |
| padding: 16px 22px; | |
| border-radius: 18px; | |
| word-wrap: break-word; | |
| line-height: 1.6; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.08); | |
| transition: transform 0.2s, box-shadow 0.2s; | |
| } | |
| .message-content:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 20px rgba(0,0,0,0.12); | |
| } | |
| .user .message-content { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border-bottom-right-radius: 6px; | |
| font-weight: 500; | |
| } | |
| .bot .message-content { | |
| background: white; | |
| color: #2d3748; | |
| border: 1.5px solid #e2e8f0; | |
| border-bottom-left-radius: 6px; | |
| } | |
| .bot .message-content strong { | |
| color: #667eea; | |
| font-weight: 600; | |
| } | |
| .bot .message-content em { | |
| font-style: italic; | |
| color: #4a5568; | |
| } | |
| /* Sources */ | |
| .sources { | |
| margin-top: 18px; | |
| padding: 18px; | |
| background: linear-gradient(to bottom, #f7fafc 0%, #edf2f7 100%); | |
| border-radius: 12px; | |
| font-size: 0.92em; | |
| border: 1px solid #e2e8f0; | |
| } | |
| .sources h4 { | |
| margin-bottom: 12px; | |
| color: #667eea; | |
| font-weight: 600; | |
| font-size: 1.05em; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .source-item { | |
| margin-bottom: 10px; | |
| padding: 12px 14px; | |
| background: white; | |
| border-radius: 8px; | |
| border-left: 3px solid #667eea; | |
| transition: all 0.2s; | |
| } | |
| .source-item:hover { | |
| border-left-color: #764ba2; | |
| transform: translateX(4px); | |
| box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15); | |
| } | |
| .source-item strong { | |
| color: #764ba2; | |
| display: block; | |
| margin-bottom: 6px; | |
| font-size: 1.05em; | |
| } | |
| /* Input Container */ | |
| .input-container { | |
| padding: 25px 35px; | |
| background: white; | |
| border-top: 2px solid #f0f0f0; | |
| box-shadow: 0 -5px 20px rgba(0,0,0,0.05); | |
| } | |
| .input-form { | |
| display: flex; | |
| gap: 12px; | |
| align-items: center; | |
| } | |
| #messageInput { | |
| flex: 1; | |
| padding: 16px 24px; | |
| border: 2px solid #e2e8f0; | |
| border-radius: 30px; | |
| font-size: 1.02em; | |
| outline: none; | |
| transition: all 0.3s; | |
| font-family: inherit; | |
| } | |
| #messageInput:focus { | |
| border-color: #667eea; | |
| box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1); | |
| } | |
| #messageInput::placeholder { | |
| color: #a0aec0; | |
| } | |
| #sendButton { | |
| padding: 16px 40px; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| border: none; | |
| border-radius: 30px; | |
| font-size: 1.02em; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); | |
| } | |
| #sendButton:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5); | |
| } | |
| #sendButton:active { | |
| transform: translateY(-1px); | |
| } | |
| #sendButton:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| /* Loading Animation */ | |
| .loading { | |
| display: none; | |
| text-align: center; | |
| padding: 12px; | |
| } | |
| .loading.active { | |
| display: block; | |
| } | |
| .loading-dots { | |
| display: inline-flex; | |
| gap: 6px; | |
| } | |
| .loading-dots span { | |
| width: 10px; | |
| height: 10px; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| border-radius: 50%; | |
| animation: bounce 1.4s infinite ease-in-out; | |
| } | |
| .loading-dots span:nth-child(1) { | |
| animation-delay: -0.32s; | |
| } | |
| .loading-dots span:nth-child(2) { | |
| animation-delay: -0.16s; | |
| } | |
| @keyframes bounce { | |
| 0%, 80%, 100% { | |
| transform: scale(0); | |
| opacity: 0.5; | |
| } | |
| 40% { | |
| transform: scale(1); | |
| opacity: 1; | |
| } | |
| } | |
| /* Welcome Message */ | |
| .welcome-message { | |
| text-align: center; | |
| padding: 50px 30px; | |
| color: #4a5568; | |
| } | |
| .welcome-message h2 { | |
| color: #667eea; | |
| margin-bottom: 18px; | |
| font-size: 1.8em; | |
| font-weight: 700; | |
| } | |
| .welcome-message p { | |
| font-size: 1.1em; | |
| color: #718096; | |
| margin-bottom: 10px; | |
| } | |
| .example-questions { | |
| margin-top: 28px; | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 12px; | |
| justify-content: center; | |
| } | |
| .example-btn { | |
| padding: 12px 24px; | |
| background: white; | |
| border: 2px solid #667eea; | |
| color: #667eea; | |
| border-radius: 25px; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| font-size: 0.95em; | |
| font-weight: 600; | |
| box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2); | |
| } | |
| .example-btn:hover { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| color: white; | |
| transform: translateY(-3px); | |
| box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); | |
| } | |
| .example-btn:active { | |
| transform: translateY(-1px); | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .container { | |
| height: 100vh; | |
| border-radius: 0; | |
| max-width: 100%; | |
| } | |
| .header h1 { | |
| font-size: 1.6em; | |
| } | |
| .header p { | |
| font-size: 1em; | |
| } | |
| .chat-container { | |
| height: calc(100vh - 280px); | |
| padding: 20px; | |
| } | |
| .message-content { | |
| max-width: 85%; | |
| padding: 14px 18px; | |
| } | |
| .input-container { | |
| padding: 18px 20px; | |
| } | |
| #messageInput { | |
| padding: 14px 20px; | |
| font-size: 1em; | |
| } | |
| #sendButton { | |
| padding: 14px 28px; | |
| font-size: 1em; | |
| } | |
| .example-questions { | |
| flex-direction: column; | |
| } | |
| .example-btn { | |
| width: 100%; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .header { | |
| padding: 25px 20px; | |
| } | |
| .header h1 { | |
| font-size: 1.4em; | |
| } | |
| .welcome-message h2 { | |
| font-size: 1.4em; | |
| } | |
| } | |
| /* Dark Mode Support (Optional) */ | |
| @media (prefers-color-scheme: dark) { | |
| body { | |
| background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); | |
| } | |
| } |