/* Chat Widget Styles */

:root {
  --chat-bg-main: #ffffff;
  --chat-bg-light: #f5f5f5;
  --chat-bg-dark: #333333;
  --chat-text: #333333;
  --chat-text-light: #666666;
  --chat-border: #e0e0e0;
  --chat-primary: #3498db;
  --chat-primary-light: #5dade2;
  --chat-success: #00b894;
  --chat-error: #d63031;
  --chat-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --chat-shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Chat Widget Container */
#chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  z-index: 9999;
  width: 60px;
  height: 60px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-widget.hidden {
  width: 60px;
  height: 60px;
}

#chat-widget:not(.hidden) {
  width: 380px;
  height: 600px;
  bottom: 20px;
  right: 20px;
  transform: none;
}

/* Backdrop overlay */
#chat-widget::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

#chat-widget:not(.hidden)::before {
  background: rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  z-index: 9997;
}


/* Pulse animation - like play button */
@keyframes chat-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

#chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.1);
  border: 2px solid #3498db;
  color: #3498db;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  bottom: 0;
  right: 0;
  overflow: visible;
  animation: chat-pulse 2s infinite;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) rotate(0deg);
}

#chat-widget:not(.hidden) #chat-toggle-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.1) rotate(180deg);
}

#chat-toggle-btn img.chat-toggle-icon {
  width: 24px;
  height: 24px;
  transform: scaleX(-1);
  transition: filter 0.3s ease;
}

#chat-toggle-btn:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

#chat-toggle-btn:hover img.chat-toggle-icon {
  filter: invert(1) brightness(1.2);
}

/* Active state when chat is open */
#chat-toggle-btn.active {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  animation: none;
}

#chat-toggle-btn.active img.chat-toggle-icon {
  filter: invert(1) brightness(1.2);
}

/* Chat Container */
.chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(25, 25, 35, 0.95) 0%,
    rgba(30, 30, 40, 0.95) 100%);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 30px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 rgba(52, 152, 219, 0),
    0 0 0 1px rgba(52, 152, 219, 0.1) inset;
  overflow: hidden;
  position: relative;
  z-index: 9998;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s ease,
    border-color 0.6s ease,
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.3) translateY(20px);
  pointer-events: none;
}

#chat-widget.hidden .chat-container {
  opacity: 0;
  transform: scale(0.3) translateY(20px);
  pointer-events: none;
}

#chat-widget:not(.hidden) .chat-container {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.chat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.chat-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #3498db 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: gradientFlow 3s ease-in-out infinite;
  z-index: 2;
}

.chat-container:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 152, 219, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(52, 152, 219, 0.2),
    0 0 0 1px rgba(52, 152, 219, 0.2) inset;
}

@keyframes gradientFlow {
  0%, 100% {
    background-position: 200% 0;
  }
  50% {
    background-position: 0 0;
  }
}

@media (max-width: 480px) {
  #chat-widget:not(.hidden) {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    max-width: 90vw;
    max-height: 80vh;
  }
}

/* Chat Header */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
  color: white;
  border-bottom: 1px solid rgba(52, 152, 219, 0.08);
  position: relative;
  z-index: 10;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--chat-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

@keyframes pulse-online {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--chat-success);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.3);
  }
}

.chat-header-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.chat-header-top h3 {
  margin: 0;
}

.managers-status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--chat-success);
  animation: pulse-online 2s infinite;
  box-shadow: 0 0 0 0 var(--chat-success);
}

.status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 0 #ef4444;
}

.status-text {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.managers-status.online .status-text {
  color: var(--chat-success);
}

.managers-status.offline .status-text {
  color: #ef4444;
}

.chat-close-btn {
  width: 40px;
  height: 40px;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.chat-close-btn:hover {
  background: rgba(52, 152, 219, 0.25);
  border-color: rgba(52, 152, 219, 0.5);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.chat-close-icon {
  width: 24px;
  height: 24px;
  transition: filter 0.3s ease;
  filter: invert(1) brightness(0.9) drop-shadow(0 0 2px rgba(52, 152, 219, 0.5));
}

.chat-close-btn:hover .chat-close-icon {
  filter: invert(1) brightness(1) drop-shadow(0 0 6px rgba(52, 152, 219, 0.8));
}

/* Chat Body */
.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
  position: relative;
  z-index: 10;
}

#chat-init {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  flex: 1;
}

.init-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--chat-primary);
}

.init-icon svg {
  color: var(--chat-primary);
}

#chat-init h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
}

#chat-init h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

#chat-init p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Chat Messages */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

#chat-messages::-webkit-scrollbar {
  width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.4);
  border-radius: 4px;
  transition: background 0.3s ease;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.7);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-align: center;
}

.chat-message-group {
  display: flex;
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-message-group {
  gap: 8px;
}

.chat-message-group.user {
  justify-content: flex-end;
  animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-message-group.manager {
  justify-content: flex-start;
  animation: slideInLeft 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.chat-message:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-message-group.user .chat-message {
  background: linear-gradient(135deg, var(--chat-primary) 0%, #2980b9 100%);
  color: white;
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.chat-message-group.user .chat-message:hover {
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
}

.chat-message-group.manager .chat-message {
  background: rgba(52, 152, 219, 0.12);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(52, 152, 219, 0.25);
  border-radius: 20px 20px 20px 4px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.chat-message-group.manager .chat-message:hover {
  background: rgba(52, 152, 219, 0.18);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

/* Message Time */
.message-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  text-align: right;
}

.chat-message-group.manager .message-time {
  text-align: left;
}

/* System Message */
.system-message {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  animation: fadeIn 0.4s ease-out;
}

.system-message-content {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.08) 100%);
  border: 1px solid rgba(52, 152, 219, 0.25);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(52, 152, 219, 0.9);
  text-align: center;
  max-width: 80%;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
  transition: all 0.3s ease;
}

.system-message-content:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.12) 100%);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

/* File Message */
.message-file {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-file-icon {
  font-size: 16px;
}

.message-file a {
  color: var(--chat-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chat-message-group.user .message-file a {
  color: white;
}

.message-file a:hover {
  text-decoration: underline;
}

/* Queue Info */
#queue-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
  animation: fadeIn 0.4s ease-out;
}

#queue-info p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

#queue-info p:first-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#queue-position {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--chat-primary) 0%, #5dade2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -1px;
  line-height: 1;
}

#queue-position strong {
  font-weight: 800;
}

/* Chat Footer */
.chat-footer {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(25, 25, 35, 0.8) 0%, rgba(30, 30, 40, 0.8) 100%);
  border-top: 1px solid rgba(52, 152, 219, 0.15);
}

.chat-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(52, 152, 219, 0.3) 50%, transparent 100%);
  z-index: 1;
}

#chat-input-area {
  padding: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* Input Field */
#chat-input,
#user-name-input,
#user-email-input,
#user-telegram-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

#chat-input {
  resize: none;
}

#chat-input::-webkit-scrollbar {
  width: 8px;
}

#chat-input::-webkit-scrollbar-track {
  background: transparent;
}

#chat-input::-webkit-scrollbar-thumb {
  background: rgba(52, 152, 219, 0.4);
  border-radius: 4px;
  transition: background 0.3s ease;
}

#chat-input::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 152, 219, 0.7);
}

#chat-input::placeholder,
#user-name-input::placeholder,
#user-email-input::placeholder,
#user-telegram-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#chat-input:focus,
#user-name-input:focus,
#user-email-input:focus,
#user-telegram-input:focus {
  outline: none;
  border-color: var(--chat-primary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

#chat-input:disabled,
#user-name-input:disabled,
#user-email-input:disabled,
#user-telegram-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

/* Send Message Button */
#chat-send-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #3498db;
  border-radius: 8px;
  background: rgba(52, 152, 219, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chat-send-btn:hover {
  background: #3498db;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  transform: scale(1.05);
}

#chat-send-btn:active {
  transform: scale(0.98);
}

#chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.send-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  transition: filter 0.3s ease;
}

/* Start Chat Button - Like play button but rectangular */
#start-chat-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(52, 152, 219, 0.1);
  border: 2px solid #3498db;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

#start-chat-btn:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

#start-chat-btn:active {
  transform: scale(0.98);
}

#start-chat-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* File Upload */
#chat-file-input {
  display: none;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background: rgba(52, 152, 219, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.file-upload-label:hover {
  background: #3498db;
  border-color: #3498db;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  transform: scale(1.05);
}

.file-upload-label:active {
  transform: scale(0.98);
}

.upload-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
  transition: filter 0.3s ease;
}

/* Chat User Form */
#chat-user-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 20px;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 10;
}

#chat-user-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px 0;
  text-align: center;
}

#chat-user-form p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 12px 0;
  text-align: center;
}

/* Notification */
#notification {
  position: fixed;
  bottom: 100px;
  right: 20px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  z-index: 10000;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#notification.success {
  background: var(--chat-success);
}

#notification.error {
  background: var(--chat-error);
}

#notification.info {
  background: var(--chat-primary);
}

/* Loading Spinner */
.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(52, 152, 219, 0.1);
  border-top-color: var(--chat-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Rating Form */
.rating-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  text-align: center;
  gap: 24px;
  animation: fadeIn 0.4s ease-out;
}

.rating-form h3 {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--chat-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.5px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.rating-stars button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-stars button img {
  width: 40px;
  height: 40px;
  filter: brightness(0.65) saturate(1.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rating-stars button:hover img {
  filter: brightness(1.0) saturate(1.3) drop-shadow(0 0 8px rgba(255, 183, 0, 0.6));
  transform: scale(1.2);
}

.rating-stars button.active img {
  filter: brightness(1.15) saturate(1.5) drop-shadow(0 0 12px rgba(255, 215, 0, 0.7));
  transform: scale(1.15);
}

.rating-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  margin-bottom: 12px;
  resize: none;
}

.rating-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.rating-form textarea:focus {
  outline: none;
  border-color: var(--chat-primary);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Submit Rating Button - Like Start Chat Button */
#submit-rating-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(52, 152, 219, 0.1);
  border: 2px solid #3498db;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

#submit-rating-btn:hover {
  background: #3498db;
  color: #fff;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  transform: translateY(-2px);
}

#submit-rating-btn:active {
  transform: translateY(0);
}

#submit-rating-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Chat Closed Message */
.chat-closed-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.chat-closed-message h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}
