File size: 3,004 Bytes
9b6a9d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
/* Основные стили (как у вас были) */
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1e1e2f, #2a2a40);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.chat-container {
width: 500px;
background: #2a2a40;
border-radius: 16px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
overflow: hidden;
display: flex;
flex-direction: column;
}
.chat-title {
text-align: center;
font-size: 1.5rem;
color: #fff;
padding: 16px;
background: linear-gradient(90deg, #4a4ae8, #3b3b98);
margin: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-box {
flex: 1;
padding: 16px;
overflow-y: auto;
background: #1e1e2f;
display: flex;
flex-direction: column;
gap: 12px;
max-height: 400px;
}
.message {
max-width: 80%;
padding: 12px 16px;
border-radius: 16px;
font-size: 0.9rem;
line-height: 1.4;
animation: fadeIn 0.3s ease-in-out;
}
.user-message {
background: linear-gradient(90deg, #4a4ae8, #3b3b98);
color: white;
align-self: flex-end;
border-bottom-right-radius: 0;
}
.bot-message {
background: #333;
color: #fff;
align-self: flex-start;
border-bottom-left-radius: 0;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.input-container {
padding: 12px;
background: #2a2a40;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.input-group {
display: flex;
gap: 8px;
}
.chat-input {
flex: 1;
padding: 12px;
border: 2px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
font-size: 0.9rem;
background: #1e1e2f;
color: #fff;
}
.chat-input:focus {
border-color: #4a4ae8;
outline: none;
}
.send-btn {
padding: 12px 20px;
background: linear-gradient(90deg, #4a4ae8, #3b3b98);
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
}
/* Стили для аудио элементов */
.audio-controls {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
background: #2a2a40;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.audio-btn {
padding: 10px 15px;
background: linear-gradient(90deg, #4a4ae8, #3b3b98);
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
}
.audio-btn:disabled {
background: #555;
cursor: not-allowed;
}
#waveform {
flex-grow: 1;
height: 60px;
background: #1e1e2f;
border-radius: 8px;
}
.file-upload {
display: flex;
gap: 10px;
align-items: center;
margin-top: 10px;
}
.file-upload input[type="file"] {
flex: 1;
}
|