/* Kronic Chat theme aligned with Music Browser / GIPHY */ :root { --chat-bg: #111; --chat-panel: #181818; --chat-panel-2: #222; --chat-workspace: #313338; --chat-border: #333; --chat-border-strong: #444; --chat-border-hover: #555; --chat-text: #e0e0e0; --chat-text-strong: #fff; --chat-text-soft: #ccc; --chat-text-muted: #aaa; --chat-blue: #4a90e2; --chat-blue-hover: #5aa0f0; --chat-green: #23a559; --chat-red: #da373c; --chat-yellow: #f0b232; --chat-radius-small: 4px; --chat-radius: 8px; --chat-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); } *, *::before, *::after { box-sizing: border-box; } html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; background: var(--chat-bg); color: var(--chat-text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } button, input { font: inherit; } .chat-container { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: var(--chat-bg); color: var(--chat-text); } .chat-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 10px; background: var(--chat-bg); border-bottom: 1px solid rgba(255, 255, 255, 0.06); } .chat-header-info { display: flex; align-items: center; min-width: 0; gap: 9px; } .chat-status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--chat-green); box-shadow: 0 0 7px rgba(35, 165, 89, 0.65); } .chat-title { margin: 0; color: var(--chat-text-strong); font-size: 14px; font-weight: 700; line-height: 1.2; } .chat-subtitle { margin: 2px 0 0; color: var(--chat-text-muted); font-size: 10px; line-height: 1.2; } .chat-messages { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; padding: 10px; overflow-x: hidden; overflow-y: auto; background: var(--chat-workspace); scroll-behavior: smooth; scrollbar-color: #1a1b1e transparent; scrollbar-width: thin; } .chat-messages::-webkit-scrollbar { width: 8px; } .chat-messages::-webkit-scrollbar-track { background: transparent; } .chat-messages::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 10px; background: #1a1b1e; background-clip: padding-box; } .chat-messages::-webkit-scrollbar-thumb:hover { background: #111214; background-clip: padding-box; } .chat-empty { margin: auto; padding: 24px 18px; color: var(--chat-text-muted); font-size: 12px; text-align: center; } .chat-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); width: 100%; padding: 8px; gap: 9px; border: 1px solid transparent; border-radius: var(--chat-radius); background: rgba(24, 24, 24, 0.72); transition: background 120ms ease, border-color 120ms ease; } .chat-message + .chat-message { margin-top: 6px; } .chat-message:hover { border-color: rgba(255, 255, 255, 0.08); background: #222; } .chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 1px solid var(--chat-border-strong); border-radius: 6px; background: #222; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); } .chat-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; } .chat-message-body { min-width: 0; } .chat-message-header { display: flex; align-items: baseline; flex-wrap: wrap; margin-bottom: 3px; gap: 7px; } .chat-username { color: var(--chat-text-strong); font-size: 12px; font-weight: 700; } .chat-timestamp { color: var(--chat-text-muted); font-size: 9px; white-space: nowrap; } .chat-message-text { color: #ddd; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; } .chat-message-text a { color: #7ab7ff; text-decoration: none; } .chat-message-text a:hover { text-decoration: underline; } .chat-message.own-message { border-color: rgba(74, 144, 226, 0.24); background: rgba(74, 144, 226, 0.08); } .chat-message.own-message:hover { border-color: rgba(74, 144, 226, 0.42); background: rgba(74, 144, 226, 0.12); } .chat-message.system-message { display: block; margin: 6px 0; padding: 8px 10px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-small); background: #181818; color: var(--chat-text-muted); font-size: 11px; font-style: italic; } .chat-message-image, .chat-gif { display: block; width: auto; max-width: min(420px, 100%); max-height: 320px; margin-top: 8px; object-fit: contain; border: 1px solid var(--chat-border); border-radius: var(--chat-radius); background: #181818; box-shadow: var(--chat-shadow); } .chat-media-card, .chat-file-card { display: flex; align-items: center; width: min(420px, 100%); margin-top: 8px; padding: 9px; overflow: hidden; border: 1px solid var(--chat-border); border-radius: var(--chat-radius); background: #181818; color: #ddd; gap: 10px; transition: border-color 120ms ease, background 120ms ease; } .chat-media-card:hover, .chat-file-card:hover { border-color: var(--chat-border-hover); background: #222; } .chat-file-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--chat-border); border-radius: 5px; background: #222; font-size: 18px; } .chat-file-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; } .chat-file-link { overflow: hidden; color: #7ab7ff; font-size: 12px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; } .chat-file-link:hover { text-decoration: underline; } .chat-file-size { color: var(--chat-text-muted); font-size: 10px; } .chat-card-title { overflow: hidden; color: var(--chat-text-strong); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .chat-card-meta { margin-top: 3px; color: var(--chat-text-muted); font-size: 10px; } .chat-card-actions { display: flex; flex-wrap: wrap; margin-top: 7px; gap: 5px; } .chat-card-button { padding: 5px 8px; border: 1px solid #3b82f6; border-radius: var(--chat-radius-small); background: #2b6cb0; color: #fff; cursor: pointer; font-size: 11px; font-weight: 600; transition: background 120ms ease, border-color 120ms ease; } .chat-card-button:hover { border-color: var(--chat-blue-hover); background: #3479c5; } .chat-input-area { display: flex; flex: 0 0 auto; align-items: center; padding: 9px 10px; gap: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: var(--chat-bg); } .message-input-wrapper { flex: 1 1 auto; min-width: 0; border: 1px solid #555; border-radius: var(--chat-radius-small); background: #222; transition: border-color 120ms ease, box-shadow 120ms ease; } .message-input-wrapper:hover { border-color: #666; } .message-input-wrapper:focus-within { border-color: var(--chat-blue); box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.35); } .message-input { width: 100%; height: 36px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; } .message-input::placeholder { color: #888; } .chat-action-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; height: 36px; min-width: 38px; padding: 0 9px; border: 1px solid #444; border-radius: var(--chat-radius-small); background: #333; color: #ccc; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease; } .chat-action-button:hover:not(:disabled) { border-color: #555; background: #3c3c3c; color: #fff; } .chat-action-button:active:not(:disabled) { transform: translateY(1px); } .gif-button { color: #fff; border-color: #6f42c1; background: #59359b; } .gif-button:hover:not(:disabled) { border-color: #8758d3; background: #6842ad; } .file-button { background: #333; color: #ccc; } .send-button { border-color: var(--chat-blue); background: var(--chat-blue); color: #fff; } .send-button:hover:not(:disabled) { border-color: var(--chat-blue-hover); background: var(--chat-blue-hover); } .chat-action-button:disabled { cursor: not-allowed; opacity: 0.45; } .chat-mention { padding: 1px 4px; border-radius: var(--chat-radius-small); background: rgba(74, 144, 226, 0.2); color: #9fcaff; font-weight: 600; } .chat-message.mentioned { border-color: rgba(240, 178, 50, 0.5); background: rgba(240, 178, 50, 0.08); } .chat-unread-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: 20px; background: var(--chat-red); color: #fff; font-size: 10px; font-weight: 700; } @media (max-width: 520px) { .chat-header { min-height: 44px; padding: 7px 8px; } .chat-title { font-size: 13px; } .chat-subtitle { font-size: 9px; } .chat-messages { padding: 8px; } .chat-message { grid-template-columns: 32px minmax(0, 1fr); padding: 7px; gap: 7px; } .chat-avatar { width: 32px; height: 32px; font-size: 10px; } .chat-message-text { font-size: 12px; } .chat-input-area { padding: 7px; gap: 5px; } .message-input { height: 34px; padding: 0 8px; } .chat-action-button { height: 34px; min-width: 34px; padding: 0 8px; font-size: 10px; } .send-button { min-width: 46px; } }