File size: 2,986 Bytes
7314527 | 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 166 167 168 | body.dark {
background: #1c1c1c !important;
color: white !important;
}
body.dark .chat-container {
background: #2b2b2b;
color: white;
}
body.dark .chat-box {
background: #333;
border-color: #444;
}
body.dark .message.user {
background: #4c6ef5;
color: white;
}
body.dark .message.bot {
background: #555;
color: white;
}
body.dark #sendBtn {
background: #4c6ef5;
}
body.dark #themeToggle {
color: white;
border-color: white;
}
/* Loading Animation */
.loading {
display: flex;
justify-content: center;
margin: 10px 0;
}
.spinner {
width: 30px;
height: 30px;
border: 4px solid #ccc;
border-top: 4px solid #007bff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Doctor Avatar + Bottom Bar */
.bottom-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
}
.doctor-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
}
body {
background: linear-gradient(135deg, #5a8dee, #6ed3cf);
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.chat-container {
background: #ffffff;
width: 420px;
border-radius: 20px;
padding: 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.7s ease-in-out;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header .logo {
width: 70px;
margin-bottom: 10px;
}
.header h2 {
margin: 0;
font-weight: 600;
color: #333;
}
.header p {
font-size: 14px;
color: #666;
}
.chat-box {
height: 360px;
overflow-y: auto;
border-radius: 10px;
padding: 10px;
background: #f7f9fc;
margin-bottom: 15px;
border: 1px solid #e5e5e5;
}
.message {
padding: 10px;
margin-bottom: 10px;
border-radius: 10px;
max-width: 85%;
animation: slideIn 0.4s ease-in-out;
}
.message.user {
background: #d1e8ff;
align-self: flex-end;
text-align: right;
}
.message.bot {
background: #e6e6e6;
text-align: left;
}
.input-area textarea {
border-radius: 10px;
resize: none;
border: 1px solid #bcd;
}
#sendBtn {
border-radius: 10px;
font-weight: 600;
padding: 10px;
background: #0066ff;
}
#sendBtn:hover {
background: #004ecc;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(20px); }
to { opacity: 1; transform: translateX(0); }
}
to { opacity: 1; transform: translateX(0); }
|