/**
 * Brain Train Support Widget Styles
 */

/* Widget Container */
.support-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Widget Button */
.support-widget-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4e5d94;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.support-widget-button:hover {
  background-color: #3a4a82;
  transform: scale(1.05);
}

.support-widget-button i {
  font-size: 24px;
}

/* Widget Content */
.support-widget-content {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 300px;
  background-color: #2b3035;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #3a3f44;
}

.support-widget-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Widget Header */
.support-widget-header {
  background-color: #343a40;
  color: white;
  padding: 15px;
  border-bottom: 1px solid #3a3f44;
}

.support-widget-header h5 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

/* Widget Body */
.support-widget-body {
  padding: 15px;
}

.support-message-form {
  margin-top: 15px;
  border-top: 1px solid #3a3f44;
  padding-top: 15px;
}

/* WhatsApp Button */
#direct-whatsapp-chat {
  background-color: #25D366;
  border-color: #25D366;
}

#direct-whatsapp-chat:hover {
  background-color: #128C7E;
  border-color: #128C7E;
}

/* Send Button */
#send-whatsapp-message {
  background-color: #28a745;
  border-color: #28a745;
}

#send-whatsapp-message:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Widget Footer */
.support-widget-footer {
  font-size: 12px;
  color: #adb5bd;
  text-align: center;
  padding: 10px 15px;
  background-color: #343a40;
  border-top: 1px solid #3a3f44;
}

/* Mobile Responsive Adjustments */
@media (max-width: 576px) {
  .support-widget-content {
    width: 280px;
    right: 0;
  }
  
  .support-widget-button {
    width: 50px;
    height: 50px;
  }
  
  .support-widget-button i {
    font-size: 20px;
  }
}

/* Animation Effects */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.support-widget-button:hover i {
  animation: pulse 1s infinite;
}