|
-
- .chatroom-container {
- display: flex;
- flex-direction: column;
- height: 100%;
- background: var(--bg-light);
- }
-
- .chatroom-messages {
- flex: 1;
- overflow-y: auto;
- padding: 2rem;
- display: flex;
- flex-direction: column;
- gap: 1.5rem;
- }
-
- .chatroom-messages::-webkit-scrollbar {
- width: 8px;
- }
-
- .chatroom-messages::-webkit-scrollbar-track {
- background: transparent;
- }
-
- .chatroom-messages::-webkit-scrollbar-thumb {
- background: var(--secondary);
- border-radius: 4px;
- }
-
- .chatroom-messages::-webkit-scrollbar-thumb:hover {
- background: var( --third-color);
- }
-
- .chatroom-empty {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- height: 100%;
- color: var(--text-light);
- text-align: center;
- }
-
- .empty-icon {
- font-size: 4rem;
- color: var(--secondary);
- margin-bottom: 1rem;
- opacity: 0.5;
- }
-
- .chatroom-empty h3 {
- font-size: 1.5rem;
- color: var(--text-dark);
- margin-bottom: 0.5rem;
- }
-
- .chatroom-empty p {
- font-size: 1rem;
- margin: 0;
- }
-
- /* Messages */
- .message-row {
- display: flex;
- align-items: flex-start;
- gap: 0.75rem;
- animation: fadeIn 0.3s ease;
- }
-
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(10px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- .message-row.user {
- flex-direction: row-reverse;
- justify-content: flex-start;
- }
-
- .message-row.assistant {
- flex-direction: row;
- justify-content: flex-start;
- }
-
- .avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- }
-
- .avatar-user {
- background: linear-gradient(135deg, var(--secondary) 0%, var( --third-color) 100%);
- color: white;
- }
-
- .avatar-assistant {
- background: linear-gradient(135deg, var( --contrast) 0%, #e02851 100%);
- color: white;
- }
-
- .message-content-wrapper {
- display: flex;
- flex-direction: column;
- max-width: 70%;
- gap: 0.5rem;
- }
-
- .message-row.user .message-content-wrapper {
- align-items: flex-end;
- }
-
- .message-row.assistant .message-content-wrapper {
- align-items: flex-start;
- }
-
- .bubble {
- padding: 1rem 1.25rem;
- border-radius: 16px;
- font-size: 1rem;
- line-height: 1.6;
- word-wrap: break-word;
- white-space: pre-wrap;
- }
-
- .bubble-user {
- background: linear-gradient(135deg, var(--secondary) 0%, var( --third-color) 100%);
- color: white;
- border-bottom-right-radius: 4px;
- }
-
- .bubble-assistant {
- background: white;
- color: var(--text-dark);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- border-bottom-left-radius: 4px;
- }
-
- .message-actions {
- display: flex;
- gap: 0.5rem;
- }
-
- .btn-message-action {
- width: 32px;
- height: 32px;
- border-radius: 6px;
- border: none;
- background: transparent;
- color: var(--text-light);
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: all 0.2s ease;
- }
-
- .btn-message-action:hover {
- background: var(--bg-light);
- color: var( --third-color);
- }
-
- .typing-indicator {
- display: flex;
- gap: 0.4rem;
- padding: 0.5rem 0;
- }
-
- .typing-indicator span {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background-color: var(--secondary);
- 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);
- opacity: 0.7;
- }
-
- 30% {
- transform: translateY(-10px);
- opacity: 1;
- }
- }
-
-
- .chat-input-container {
- width: 100%;
- padding: 16px 24px;
- background: transparent;
- display: flex;
- flex-direction: column;
- justify-content: center;
- position: relative;
- }
-
- /* Fichiers attachés */
- .attached-files {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- padding: 12px 16px;
- max-width: 1000px;
- margin: 0 auto;
- width: 100%;
- }
-
- .file-item {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 8px 12px;
- background: #ffffff;
- border: 1px solid var(--border);
- border-radius: 8px;
- max-width: 32%;
- transition: all 0.2s ease;
- animation: fileSlideIn 0.3s ease;
- }
-
- .file-item:hover {
- border-color: #d1d5db;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
- }
-
- .file-preview {
- flex-shrink: 0;
- width: 40px;
- height: 40px;
- border-radius: 6px;
- overflow: hidden;
- background: #ffffff;
- display: flex;
- align-items: center;
- justify-content: center;
- border: 1px solid var(--border);
- }
-
- .file-icon {
- font-size: 20px;
- color: var(--secondary);
- }
-
- .file-info {
- flex: 1;
- min-width: 0;
- display: flex;
- flex-direction: column;
- gap: 2px;
- }
-
- .file-name {
- font-size: 13px;
- font-weight: 500;
- color: #374151;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .file-size {
- font-size: 11px;
- color: #9ca3af;
- }
-
- .remove-file-button {
- flex-shrink: 0;
- width: 24px;
- height: 24px;
- display: flex;
- align-items: center;
- justify-content: center;
- background: transparent;
- border: none;
- border-radius: 4px;
- color: #9ca3af;
- cursor: pointer;
- transition: all 0.2s ease;
- }
-
- .remove-file-button:hover {
- background: #fee2e2;
- color: #ef4444;
- }
-
- @keyframes fileSlideIn {
- from {
- opacity: 0;
- transform: translateY(-10px);
- }
-
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- /* Input wrapper */
- .input-wrapper {
- width: 100%;
- max-width: 1000px;
- margin: 0 auto;
- background: #ffffff;
- border: 1px solid var(--border);
- border-radius: 16px;
- padding: 16px 20px;
- display: flex;
- flex-direction: column;
- gap: 12px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
- transition: all 0.2s ease;
- }
-
- .input-wrapper.has-files {
- border-radius: 0 0 16px 16px;
- border-top: none;
- padding-top: 12px;
- }
-
- .input-wrapper:focus-within {
- border-color: var(--secondary);
- box-shadow: 0 4px 12px rgba(41, 132, 161, 0.12);
- }
-
- .input-wrapper textarea {
- width: 100%;
- border: none;
- outline: none;
- resize: none;
- font-size: 15px;
- font-family: inherit;
- color: #1f2937;
- background: transparent;
- min-height: 24px;
- max-height: 200px;
- line-height: 1.5;
- padding: 0;
- }
-
- .input-wrapper textarea::placeholder {
- color: #9ca3af;
- }
-
- .input-wrapper textarea:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- }
-
- /* Actions row */
- .actions-row {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding-top: 4px;
- }
-
- .attach-button {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 0;
- background: transparent;
- border: none;
- color: #6b7280;
- cursor: pointer;
- font-size: 13px;
- font-weight: 500;
- transition: color 0.2s ease;
- }
-
- .attach-button:hover {
- color: var(--secondary);
- }
-
- .attach-button span {
- display: none;
- }
-
- @media (min-width: 640px) {
- .attach-button span {
- display: inline;
- }
- }
-
- .right-actions {
- display: flex;
- align-items: center;
- gap: 8px;
- }
-
- .domain-select {
- padding: 6px 12px;
- border: 1px solid var(--border);
- border-radius: 8px;
- background: white;
- color: var(--text-dark);
- font-size: 13px;
- cursor: pointer;
- transition: all 0.2s ease;
- }
-
- .domain-select:hover {
- border-color: var(--secondary);
- }
-
- .domain-select:focus {
- outline: none;
- border-color: var(--secondary);
- box-shadow: 0 0 0 3px rgba(41, 132, 161, 0.1);
- }
-
- .voice-button {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- background: transparent;
- border: none;
- color: #6b7280;
- cursor: pointer;
- border-radius: 8px;
- transition: all 0.2s ease;
- }
-
- .voice-button:hover {
- background: #f3f4f6;
- color: var(--text-dark);
- }
-
-
-
-
- .send-button {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- background: var( --contrast);
- border: none;
- color: #ffffff;
- cursor: pointer;
- border-radius: 8px;
- transition: all 0.2s ease;
- }
-
- .send-button:hover:not(:disabled) {
- transform: scale(1.05);
- box-shadow: 0 4px 12px rgba(246, 62, 99, 0.3);
- }
-
- .send-button:active:not(:disabled) {
- transform: scale(0.98);
- }
-
- .send-button:disabled {
- background: #e5e7eb;
- cursor: not-allowed;
- opacity: 0.6;
- }
-
- .send-button:disabled svg {
- color: #9ca3af;
- }
-
-
- @media (max-width: 768px) {
- .chatroom-messages {
- padding: 1rem;
- }
-
- .message-content-wrapper {
- max-width: 85%;
- }
-
- .chat-input-container {
- padding: 12px 16px;
- }
-
- .attached-files {
- padding: 10px 12px;
- gap: 6px;
- }
-
- .file-item {
- padding: 6px 10px;
- max-width: 200px;
- }
-
- .file-preview {
- width: 36px;
- height: 36px;
- }
-
- .file-name {
- font-size: 12px;
- }
-
- .file-size {
- font-size: 10px;
- }
-
- .remove-file-button {
- width: 20px;
- height: 20px;
- }
-
- .input-wrapper {
- padding: 12px 16px;
- border-radius: 14px;
- }
-
- .input-wrapper.has-files {
- border-radius: 0 0 14px 14px;
- }
-
- .input-wrapper textarea {
- font-size: 14px;
- }
-
- .actions-row .right-actions {
- gap: 6px;
- }
-
- .voice-button,
- .send-button {
- width: 32px;
- height: 32px;
- }
-
- .domain-select {
- font-size: 12px;
- padding: 4px 8px;
- }
- }
-
- @media (max-width: 480px) {
- .bubble {
- padding: 0.875rem 1rem;
- font-size: 0.95rem;
- }
-
- .avatar {
- width: 36px;
- height: 36px;
- }
- }
|