#root { max-width: 1280px; margin: 0 auto; padding: 2rem; text-align: center; } .logo { height: 6em; padding: 1.5em; will-change: filter; transition: filter 300ms; } .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } .logo.solid:hover { filter: drop-shadow(0 0 2em #61dafbaa); } .card { padding: 2em; } .read-the-docs { color: #888; } :root { --primary-color: #4f46e5; --primary-hover: #4338ca; --secondary-color: #6b7280; --background-color: #f9fafb; --card-background: #ffffff; --text-color: #1f2937; --border-color: #e5e7eb; --error-color: #ef4444; --success-color: #10b981; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; color: var(--text-color); background-color: var(--background-color); line-height: 1.5; } .app { display: flex; flex-direction: column; height: calc(100vh - 4rem); overflow: hidden; } .app-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background-color: var(--primary-color); color: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .user-profile { display: flex; align-items: center; gap: 1rem; } .user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid white; } .logout-button { padding: 0.5rem 1rem; font-size: 0.875rem; background-color: rgba(255, 255, 255, 0.2); color: white; border: none; border-radius: 0.25rem; cursor: pointer; transition: background-color 0.2s; } .logout-button:hover { background-color: rgba(255, 255, 255, 0.3); } .app-main { flex: 1; padding: 1rem; height: 100%; overflow: hidden; } /* Auth styles */ .auth-container { max-width: 400px; margin: 2rem auto; padding: 2rem; background-color: var(--card-background); border-radius: 0.5rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .auth-tabs { display: flex; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); } .auth-tabs button { flex: 1; padding: 0.75rem; background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--secondary-color); } .auth-tabs button.active { color: var(--primary-color); border-bottom: 2px solid var(--primary-color); } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; } .form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 0.25rem; font-size: 1rem; } .form-group.checkbox { display: flex; align-items: center; } .form-group.checkbox label { display: flex; align-items: center; margin-bottom: 0; } .form-group.checkbox input { width: auto; margin-right: 0.5rem; } button { padding: 0.75rem 1.5rem; background-color: var(--primary-color); color: white; border: none; border-radius: 0.25rem; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; } button:hover { background-color: var(--primary-hover); } button:disabled { opacity: 0.7; cursor: not-allowed; } .error { color: var(--error-color); margin-bottom: 1rem; padding: 0.5rem; background-color: rgba(239, 68, 68, 0.1); border-radius: 0.25rem; } /* Chat styles */ .chat-container { display: flex; height: 100%; max-height: calc(100vh - 120px); background-color: var(--card-background); border-radius: 0.5rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .sidebar { width: 300px; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; } .room-list { flex: 1; overflow-y: auto; padding: 1rem; } .room-list h2 { margin-bottom: 1rem; font-size: 1.25rem; } .room-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; border-radius: 0.25rem; margin-bottom: 0.5rem; border: 1px solid var(--border-color); transition: border-color 0.2s; } .room-info { flex: 1; cursor: pointer; } .room-info.selected { background-color: rgba(79, 70, 229, 0.2); } .room-info:hover { background-color: rgba(79, 70, 229, 0.1); } .join-button { padding: 0.4rem 0.8rem; font-size: 0.875rem; margin-left: 0.5rem; } .room-name { font-weight: 500; display: flex; align-items: center; gap: 0.5rem; } .member-badge { font-size: 0.7rem; background-color: var(--primary-color); color: white; padding: 0.1rem 0.4rem; border-radius: 1rem; font-weight: normal; } .room-description { font-size: 0.875rem; color: var(--secondary-color); } .chat-content { flex: 1; display: flex; flex-direction: column; } .select-room-message { flex: 1; display: flex; justify-content: center; align-items: center; color: var(--secondary-color); font-size: 1.125rem; } .chat-room { display: flex; flex-direction: column; height: 100%; } .chat-header { padding: 1rem; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; } .room-actions { display: flex; justify-content: flex-end; margin-top: 0.5rem; } .leave-button { padding: 0.4rem 0.8rem; font-size: 0.875rem; background-color: var(--error-color); } .leave-button:hover { background-color: #dc2626; } .confirm-leave { display: flex; align-items: center; gap: 0.5rem; } .confirm-leave span { font-size: 0.875rem; color: var(--error-color); } .confirm-leave button { padding: 0.3rem 0.6rem; font-size: 0.75rem; } .confirm-leave button:first-of-type { background-color: var(--error-color); } .confirm-leave button:last-of-type { background-color: var(--secondary-color); } .error-message { color: var(--error-color); font-size: 0.875rem; margin-bottom: 0.5rem; } .chat-main { flex: 1; display: flex; flex-direction: column; } .chat-header h2 { margin-bottom: 0.25rem; } .chat-header p { color: var(--secondary-color); font-size: 0.875rem; } .chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; } .message-wrapper { display: flex; align-items: flex-end; max-width: 100%; gap: 0.75rem; } .message-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; align-self: flex-end; } .message { max-width: 85%; min-width: 100px; padding: 0.75rem; border-radius: 0.5rem; word-break: break-word; line-height: 1.4; width: fit-content; display: inline-block; } .other-message-wrapper { align-self: flex-start; } .own-message-wrapper { align-self: flex-end; flex-direction: row-reverse; } .other-message { background-color: #f3f4f6; align-self: flex-start; } .own-message { background-color: rgba(79, 70, 229, 0.1); align-self: flex-end; } .message-header { display: flex; justify-content: space-between; margin-bottom: 0.25rem; font-size: 0.75rem; } .username { font-weight: 500; margin-right: 0.5rem; } .time { color: var(--secondary-color); opacity: 0.7; } .message-content { word-break: break-word; white-space: pre-wrap; display: inline-block; text-align: justify; } .message-length-counter { font-size: 0.75rem; color: var(--secondary-color); margin-right: 0.5rem; align-self: center; } .message-form { display: flex; align-items: center; padding: 1rem; border-top: 1px solid var(--border-color); } .message-form input { flex: 1; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 0.25rem 0 0 0.25rem; font-size: 1rem; } .message-form button { border-radius: 0 0.25rem 0.25rem 0; } .message-form button:disabled { opacity: 0.5; cursor: not-allowed; } /* Create Room styles */ .create-room { padding: 1rem; border-bottom: 1px solid var(--border-color); } .create-room-button { width: 100%; } .create-room-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); } .create-room-form h3 { margin-bottom: 1rem; } @media (max-width: 768px) { .chat-container { flex-direction: column; height: auto; } .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); } .chat-messages { height: 50vh; } } /* Emoji Picker Styles */ .message-input-container { display: flex; align-items: center; flex: 1; } .emoji-toggle-button { background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-left: 0.5rem; padding: 0.25rem; line-height: 1; } .emoji-picker-container { position: absolute; bottom: 100%; right: 0; z-index: 10; margin-bottom: 0.5rem; } .message-form { position: relative; }