Spaces:
Running
Running
File size: 3,291 Bytes
dc4590e |
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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
:root {
--primary-color: #3498db;
--secondary-color: #2980b9;
--background-color: #f0f3f5;
--text-color: #34495e;
--shadow-color: rgba(0, 0, 0, 0.1);
--message-bg-user: #3498db;
--message-bg-assistant: #ecf0f1;
}
body {
font-family: 'Vazirmatn', 'Tahoma', Arial, sans-serif;
background-color: var(--background-color);
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
color: var(--text-color);
}
#chat-container {
width: 95%;
max-width: 1200px;
background: white;
border-radius: 20px;
box-shadow: 0 10px 30px var(--shadow-color);
overflow: hidden;
display: flex;
flex-direction: column;
height: 90vh;
}
#chat-header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 20px;
font-size: 28px;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 10px var(--shadow-color);
text-align: center;
}
.header-title {
flex-grow: 1;
text-align: center;
}
.header-icons {
display: flex;
gap: 15px;
}
.header-icon {
cursor: pointer;
font-size: 24px;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.header-icon:hover {
transform: scale(1.1);
opacity: 0.8;
}
#chat-messages {
flex-grow: 1;
overflow-y: auto;
padding: 30px;
display: flex;
flex-direction: column;
gap: 20px;
}
.message {
max-width: 75%;
padding: 15px 20px;
border-radius: 20px;
box-shadow: 0 3px 15px var(--shadow-color);
font-size: 16px;
line-height: 1.6;
transition: transform 0.3s ease;
}
.message:hover {
transform: translateY(-2px);
}
.user-message {
align-self: flex-end;
background-color: var(--message-bg-user);
color: white;
}
.assistant-message {
align-self: flex-start;
background-color: var(--message-bg-assistant);
border: 1px solid var(--secondary-color);
color: var(--text-color);
}
#input-container {
display: flex;
padding: 20px;
background: white;
border-top: 1px solid var(--secondary-color);
gap: 10px;
}
#user-input {
flex-grow: 1;
padding: 15px 25px;
border: 2px solid var(--secondary-color);
border-radius: 30px;
font-size: 16px;
font-family: 'Vazirmatn', 'Tahoma', Arial, sans-serif;
background: white;
transition: all 0.3s ease;
}
#user-input:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}
.input-button {
background: var(--primary-color);
color: white;
border: none;
border-radius: 50%;
width: 55px;
height: 55px;
font-size: 22px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
box-shadow: 0 3px 15px var(--shadow-color);
}
.input-button:hover {
background-color: var(--secondary-color);
transform: translateY(-3px);
}
@media (max-width: 768px) {
#chat-container {
width: 100%;
height: 100vh;
border-radius: 0;
}
#chat-header {
font-size: 24px;
padding: 15px;
}
.message {
max-width: 85%;
}
} |