.bg-brand-blue {
    background-color: #005596 !important;
}

.btn-brand-blue {
    background-color: #005596 !important;
    border-color: #005596 !important;
    color: white !important;
}

.btn-brand-blue:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: white !important;
}

/* Add permission-based visibility classes */
.hidden {
    display: none !important;
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Always show critical navigation */
#back-to-dashboard, 
#profile-nav-item, 
#logout-nav-item {
    display: block !important;
}

#back-to-dashboard a, 
#profile-nav-item a, 
#logout-nav-item a {
    display: inline-block !important;
}

/* --- Pre-chat form chat style for widget --- */
.prechat-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.prechat-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8f9fa;
}
.prechat-chat-input {
  padding: 16px;
  border-top: 1px solid #e9ecef;
  background: white;
}
.prechat-chat-messages .message {
  margin-bottom: 16px;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}
.prechat-chat-messages .message.user {
  margin-left: auto;
}
.prechat-chat-messages .message.assistant {
  margin-right: auto;
}
.prechat-chat-messages .message-content {
  padding: 12px 16px;
  border-radius: 18px;
  white-space: pre-line;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  line-height: 1.5;
  position: relative;
  font-size: 15px;
}
.prechat-chat-messages .user .message-content {
  background: var(--theme-color, #005596);
  color: white;
  border-bottom-right-radius: 4px;
}
.prechat-chat-messages .assistant .message-content {
  background: white;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 4px;
}
.prechat-typing-indicator {
  margin-bottom: 0;
  max-width: 85%;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  width: fit-content;
}
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.typing-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-color, #005596);
  opacity: 0.7;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); }
  40% { transform: scale(1); }
}
.prechat-restart-button {
  background: #eee;
  color: #333;
  border: none;
  padding: 10px 14px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
  transition: background 0.2s;
}
.prechat-restart-button:hover {
  background: #ddd;
}