#fc-message-widget-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  font-family: Arial, sans-serif;
  z-index: 99999;
}

.fc-widget-launcher {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #1463ff;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fc-message-widget-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 340px;
  height: 440px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fc-message-widget-support {
  width: 540px;
  height: 500px;
}

.fc-widget-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.fc-widget-closed {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.fc-widget-embedded {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  bottom: auto !important;
  right: auto !important;
}

.fc-widget-header {
  padding: 12px 14px;
  background: #1463ff;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fc-widget-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.fc-widget-controls {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: #f0f2f5;
  border-bottom: 1px solid #e0e0e0;
}

.fc-widget-control-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.fc-widget-control-btn:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

.fc-widget-control-btn.fc-widget-btn-active {
  background: #1463ff;
  color: #fff;
  border-color: #1463ff;
}

/* Support widget container */
.fc-widget-support-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.fc-widget-chat-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e0e0e0;
  position: relative;
}

.fc-widget-support-sidebar {
  width: 200px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.fc-widget-sidebar-header {
  padding: 12px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
}

.fc-widget-support-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.fc-widget-support-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
}

.fc-widget-support-item:hover {
  border-color: #1463ff;
  box-shadow: 0 2px 6px rgba(20, 99, 255, 0.1);
}

.fc-widget-support-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-right: 10px;
}

.fc-widget-support-info {
  flex: 1;
  min-width: 0;
}

.fc-widget-support-name {
  font-weight: 600;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-widget-support-status {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.fc-widget-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.fc-widget-status-online {
  background: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.fc-widget-status-away {
  background: #ffc107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.fc-widget-status-busy {
  background: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.fc-widget-support-empty {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
}

.fc-widget-list {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  background: #f5f7fb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-widget-line-system {
  align-self: center;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  font-size: 12px;
  padding: 6px 10px;
  max-width: 95%;
  text-align: center;
}

.fc-widget-line {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.fc-widget-line-you {
  align-self: flex-end;
  background: #1463ff;
  color: #fff;
}

.fc-widget-line-other {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e8e8e8;
  color: #333;
}

.fc-widget-attachment {
  margin-top: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  border: 1px dashed #ccc;
}

.fc-widget-attachment-link {
  color: #1463ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  display: block;
  word-break: break-all;
}

.fc-widget-attachment-link:hover {
  text-decoration: underline;
}

.fc-widget-attachment-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

.fc-widget-attachment-name {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.fc-widget-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #ececec;
  background: #fff;
}

#fc-widget-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  outline: none;
}

#fc-widget-send {
  background: #1463ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Emoji Picker */
.fc-widget-emoji-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 4px;
}

.fc-widget-emoji-picker {
  position: absolute;
  bottom: 60px;
  left: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.fc-emoji {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.fc-emoji:hover {
  background: #f0f0f0;
}

/* ========================================
   CALL WIDGET STYLES
   ======================================== */
#fc-call-widget-root {
  position: fixed;
  right: 90px;
  bottom: 16px;
  font-family: Arial, sans-serif;
  z-index: 99998;
}

.fc-call-button {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.fc-call-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.fc-call-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 320px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transform-origin: bottom right;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fc-call-panel .fc-call-header {
  padding: 12px 14px;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
}

.fc-call-panel .fc-call-body {
  padding: 16px;
}

.fc-call-action-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.fc-call-btn-primary {
  background: #28a745;
  color: #fff;
}

.fc-call-btn-primary:hover {
  background: #218838;
}

.fc-call-btn-success {
  background: #28a745;
  color: #fff;
}

.fc-call-btn-danger {
  background: #dc3545;
  color: #fff;
}

.fc-call-btn-danger:hover {
  background: #c82333;
}

.fc-call-control-btn {
  padding: 10px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.fc-call-control-btn:hover {
  background: #f5f5f5;
}

.fc-call-incoming-info {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* ========================================
   SUPPORT CHAT WIDGET STYLES
   ======================================== */
#fc-support-chat-widget-root {
  position: fixed;
  right: 164px;
  bottom: 16px;
  font-family: Arial, sans-serif;
  z-index: 99997;
}

.fc-support-chat-launcher {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #1463ff;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.2s ease;
}

.fc-support-chat-launcher:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.fc-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc3545;
  color: #fff;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.fc-widget-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fc-widget-minimize {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* ========================================
   RESERVATION CHAT WIDGET STYLES
   ======================================== */
#fc-reservation-chat-widget-root {
  position: fixed;
  right: 16px;
  bottom: 90px;
  font-family: Arial, sans-serif;
  z-index: 99996;
}

.fc-reservation-chat-panel {
  width: 360px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transform-origin: bottom right;
  transition: all 0.2s ease;
}

.fc-reservation-chat-panel.fc-widget-minimized .fc-widget-body {
  display: none;
}

.fc-widget-notification {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  background: #ffc107;
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: none;
  margin: 0 8px;
}

.fc-widget-toggle {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.fc-widget-minimized .fc-widget-toggle {
  transform: rotate(180deg);
}

.fc-widget-line-history {
  background: #e9ecef;
  color: #495057;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 12px;
  font-size: 14px;
  max-width: 75%;
}

/* ========================================
   SCREENSHARE WIDGET STYLES
   ======================================== */
#fc-screenshare-widget-root {
  position: fixed;
  right: 238px;
  bottom: 16px;
  font-family: Arial, sans-serif;
  z-index: 99995;
}

.fc-screenshare-button {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #6f42c1;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.fc-screenshare-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.fc-screenshare-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 400px;
  max-height: 500px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transform-origin: bottom right;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fc-screenshare-panel .fc-widget-header {
  background: #6f42c1;
}

.fc-screenshare-section {
  padding: 16px;
}

.fc-screenshare-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.fc-screenshare-user-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.fc-screenshare-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.fc-screenshare-user-item:hover {
  background: #f8f9fa;
  border-color: #6f42c1;
}

.fc-screenshare-select-btn {
  margin-left: auto;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #6f42c1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-screenshare-select-btn:hover {
  background: #5a32a3;
}

.fc-screenshare-info {
  font-size: 13px;
  color: #666;
  padding: 8px;
  background: #f0f7ff;
  border-radius: 6px;
  text-align: center;
}

.fc-screenshare-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  background: #f0f7ff;
  border-radius: 8px;
}

.fc-screenshare-status-icon {
  font-size: 32px;
}

.fc-screenshare-status-text {
  flex: 1;
}

#fc-screenshare-status-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

#fc-screenshare-status-subtitle {
  font-size: 13px;
  color: #666;
}

.fc-screenshare-controls {
  display: flex;
  gap: 8px;
}

.fc-screenshare-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-screenshare-btn-danger {
  background: #dc3545;
  color: #fff;
}

.fc-screenshare-btn-danger:hover {
  background: #c82333;
}

/* ========================================
   COMMON UTILITY STYLES
   ======================================== */
.fc-widget-hidden {
  display: none !important;
}

.fc-widget-send-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #1463ff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-widget-send-btn:hover {
  background: #0d4ed8;
}

/* Status dots */
.fc-widget-status-online {
  background: #28a745 !important;
}

.fc-widget-status-away {
  background: #ffc107 !important;
}

.fc-widget-status-busy {
  background: #dc3545 !important;
}

/* Pulse animation for incoming calls */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(20, 99, 255, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
}
