* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif; background: #0f0f0f; color: #ececec; height: 100vh; display: flex; flex-direction: column; } .chat-container { background: #212121; flex: 1; display: flex; flex-direction: column; max-width: 1200px; margin: 0 auto; width: 100%; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); } .chat-header { background: #0f0f0f; border-bottom: 1px solid #333; padding: 16px 20px; position: relative; z-index: 100; } .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; } .logo { font-size: 18px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; } .encryption-badge { background: #10a37f; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .room-section { background: #2d2d2d; padding: 20px; margin: 20px; border-radius: 12px; border: 1px solid #404040; } .room-input-container { display: flex; gap: 12px; align-items: center; margin-top: 16px; } .room-input { flex: 1; background: #0f0f0f; border: 1px solid #404040; color: #ececec; padding: 12px 16px; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; } .room-input:focus { border-color: #10a37f; box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1); } .btn { background: #10a37f; color: white; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 14px; transition: all 0.2s; white-space: nowrap; } .btn:hover { background: #0d8c6a; } .btn-secondary { background: #2d2d2d; border: 1px solid #404040; } .btn-secondary:hover { background: #3d3d3d; } .status-text { color: #b4b4b4; font-size: 14px; margin-top: 12px; } .room-info { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #2d2d2d; border-radius: 8px; font-size: 13px; color: #b4b4b4; margin-bottom: 16px; } .room-details { display: flex; gap: 20px; } .messages-container { flex: 1; overflow-y: auto; padding: 20px; background: #212121; max-width: 1000px; margin: 0 auto; width: 100%; } .messages-container::-webkit-scrollbar { width: 8px; } .messages-container::-webkit-scrollbar-track { background: #2d2d2d; } .messages-container::-webkit-scrollbar-thumb { background: #404040; border-radius: 4px; } .message-group { margin-bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; } .message-group.sent { align-items: flex-end; } .message-group.received { align-items: flex-start; } .message-header { display: flex; align-items: center; margin-bottom: 8px; gap: 8px; } .user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(45deg, #10a37f, #0d8c6a); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: white; } .user-avatar.own { background: linear-gradient(45deg, #6366f1, #8b5cf6); } .user-name { font-weight: 600; font-size: 14px; color: #ececec; } .message-time { color: #888; font-size: 12px; margin-left: auto; } .message-content { background: #2d2d2d; padding: 12px 16px; border-radius: 12px; margin-left: 36px; border: 1px solid #404040; line-height: 1.5; word-wrap: break-word; max-width: 70%; text-align: left; } .message-group.sent .message-content { background: #0f0f0f; border-color: #333; margin-left: 0; margin-right: 36px; text-align: right; align-self: flex-end; } .message-group.received .message-content { align-self: flex-start; } .input-section { background: #0f0f0f; padding: 20px; border-top: 1px solid #333; } .input-container { max-width: 1000px; margin: 0 auto; position: relative; } .message-input { width: 100%; background: #2d2d2d; border: 1px solid #404040; color: #ececec; padding: 16px 60px 16px 20px; border-radius: 12px; font-size: 16px; outline: none; resize: none; min-height: 24px; max-height: 200px; font-family: inherit; line-height: 1.5; transition: border-color 0.2s; } .message-input:focus { border-color: #10a37f; box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1); } .message-input:disabled { opacity: 0.5; cursor: not-allowed; } .send-button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #10a37f; border: none; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: white; } .send-button:hover:not(:disabled) { background: #0d8c6a; } .send-button:disabled { background: #404040; cursor: not-allowed; } .welcome-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; text-align: center; padding: 40px 20px; } .welcome-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; background: linear-gradient(45deg, #10a37f, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .welcome-subtitle { font-size: 18px; color: #b4b4b4; margin-bottom: 32px; max-width: 600px; } .feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 32px; max-width: 800px; } .feature-item { background: #2d2d2d; padding: 20px; border-radius: 12px; border: 1px solid #404040; } .feature-icon { font-size: 24px; margin-bottom: 12px; } .feature-title { font-weight: 600; margin-bottom: 8px; color: #ececec; } .feature-desc { color: #b4b4b4; font-size: 14px; line-height: 1.4; } .loading-message { display: flex; align-items: center; gap: 8px; color: #b4b4b4; font-size: 14px; } .loading-spinner { width: 16px; height: 16px; border: 2px solid #404040; border-top: 2px solid #10a37f; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .error-message { background: #dc2626; color: white; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 14px; } .typing-indicator { color: #888; font-style: italic; font-size: 13px; padding: 8px 20px; } @media (max-width: 768px) { .chat-container { height: 100vh; } .header-content { padding: 0 4px; } .room-input-container { flex-direction: column; gap: 8px; } .room-input, .btn { width: 100%; } .room-details { flex-direction: column; gap: 8px; } .message-content { margin-left: 0; margin-top: 8px; } .feature-list { grid-template-columns: 1fr; } }