/* =============================================================================
 * Rosie AI Identity - Constant across all client sites
 *
 * IMPORTANT: DO NOT CUSTOMIZE THIS FILE PER CLIENT
 *
 * These styles define Rosie the AI's visual identity and must remain consistent
 * across all white-label deployments for brand recognition. The Rosie pink color
 * and heartbeat glow animation help users identify AI-powered features.
 *
 * Client branding (logo, primary colors, fonts) is customized in:
 *   - /dist/css/theme/variables.css  (client colors)
 *   - /dist/css/theme/overrides.css  (client-specific tweaks)
 *
 * See BRANDING.md for the complete brand separation guide.
 * ============================================================================= */

/* =============================================================================
 * Rosie Color Variables
 * Pink theme for AI-specific UI elements
 * ============================================================================= */
:root {
  --color-rosie-pink: #e75480;
  --color-rosie-pink-hover: #ff6390;
  --color-rosie-pink-light: #ffa3b5;
  --color-rosie-pink-dark: #b03060;
  --color-rosie-pink-border: #e75480;
  --color-rosie-pink-border-hover: #d64570;
}

[data-bs-theme="dark"] {
  --color-rosie-pink: #ff6390;
  --color-rosie-pink-hover: #ff7aa3;
  --color-rosie-pink-light: #ffa3b5;
  --color-rosie-pink-dark: #e75480;
  --color-rosie-pink-border: #ff6390;
  --color-rosie-pink-border-hover: #ff7aa3;
}

/* =============================================================================
 * Heartbeat Glow Animation
 * Rosie pink outer border pulse - indicates AI activity
 * Use on buttons, cards, and elements during AI processing
 * ============================================================================= */

@keyframes heartbeat-glow-shadow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(231, 84, 128, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(231, 84, 128, 0.8);
  }
}

.heartbeat-glow {
  animation: heartbeat-glow-shadow 2s ease-in-out infinite;
  will-change: box-shadow;
}

/* Faster heartbeat on badges */
.badge.heartbeat-glow {
  animation: heartbeat-glow-shadow 1.5s ease-in-out infinite;
}

/* =============================================================================
 * AI Element Styles - Rosie Pink Theme
 * AI-driven interactions: session key, model selector, dashboard, responses
 * ============================================================================= */

/* Session key input - Rosie pink focus (AI session) */
#session-key-input:focus,
input[id*="session"]:focus {
  border-color: #e75480 !important;
  box-shadow: 0 0 0 0.2rem rgba(231, 84, 128, 0.2) !important;
}

[data-bs-theme="dark"] #session-key-input:focus,
[data-bs-theme="dark"] input[id*="session"]:focus {
  border-color: #ff6996 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 105, 150, 0.25) !important;
}

/* Model selector dropdown - Rosie pink (AI model selection) */
#model-selector,
.model-dropdown,
[id*="model"] .dropdown-toggle {
  transition: all 0.2s ease;
}

#model-selector:hover,
.model-dropdown:hover,
[id*="model"] .dropdown-toggle:hover {
  border-color: #e75480 !important;
  box-shadow: 0 2px 8px rgba(231, 84, 128, 0.2);
}

[data-bs-theme="dark"] #model-selector:hover,
[data-bs-theme="dark"] .model-dropdown:hover,
[data-bs-theme="dark"] [id*="model"] .dropdown-toggle:hover {
  border-color: #ff6996 !important;
  box-shadow: 0 2px 8px rgba(255, 105, 150, 0.25);
}

/* Info/help icon - Rosie pink hover (AI info) */
.bi-info-circle,
.bi-question-circle,
[data-bs-toggle="tooltip"],
.info-icon,
.help-icon {
  transition: all 0.2s ease;
  cursor: pointer;
}

.bi-info-circle:hover,
.bi-question-circle:hover,
[data-bs-toggle="tooltip"]:hover,
.info-icon:hover,
.help-icon:hover {
  color: #e75480 !important;
  transform: scale(1.1);
}

[data-bs-theme="dark"] .bi-info-circle:hover,
[data-bs-theme="dark"] .bi-question-circle:hover,
[data-bs-theme="dark"] [data-bs-toggle="tooltip"]:hover,
[data-bs-theme="dark"] .info-icon:hover,
[data-bs-theme="dark"] .help-icon:hover {
  color: #ff6996 !important;
}

/* Dashboard/Sources/Logs Tabs - Rosie pink (AI-driven panel) */
#dashboard-column .nav-tabs .nav-link {
  transition: all 0.2s ease;
  border-radius: 0.375rem 0.375rem 0 0;
}

#dashboard-column .nav-tabs .nav-link:hover:not(.active) {
  background: rgba(231, 84, 128, 0.1);
  border-color: transparent transparent var(--bs-border-color);
  color: #e75480;
  transform: translateY(-2px);
}

#dashboard-column .nav-tabs .nav-link.active {
  border-color: #e75480 #e75480 transparent;
  color: #e75480;
  font-weight: 500;
}

[data-bs-theme="dark"] #dashboard-column .nav-tabs .nav-link:hover:not(.active) {
  background: rgba(255, 105, 150, 0.15);
  color: #ff6996;
}

[data-bs-theme="dark"] #dashboard-column .nav-tabs .nav-link.active {
  border-color: #ff6996 #ff6996 transparent;
  color: #ff6996;
}

/* Dashboard cards - Rosie pink hover effect */
#dashboard-column .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-left: 3px solid transparent;
}

#dashboard-column .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(231, 84, 128, 0.2);
  border-left-color: #e75480;
}

[data-bs-theme="dark"] #dashboard-column .card:hover {
  box-shadow: 0 4px 16px rgba(255, 105, 150, 0.25);
  border-left-color: #ff6996;
}

/* Tab content cards in dashboard */
#dashboard-column .tab-pane .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

#dashboard-column .tab-pane .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 84, 128, 0.15);
  border-left-color: rgba(231, 84, 128, 0.5);
}

[data-bs-theme="dark"] #dashboard-column .tab-pane .card:hover {
  box-shadow: 0 4px 12px rgba(255, 105, 150, 0.2);
  border-left-color: rgba(255, 105, 150, 0.6);
}

/* AI response messages - subtle pink accent */
.chat-message.assistant {
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
}

.chat-message.assistant:hover {
  border-left-color: rgba(231, 84, 128, 0.5);
}

[data-bs-theme="dark"] .chat-message.assistant:hover {
  border-left-color: rgba(255, 105, 150, 0.6);
}

/* AI status badges */
.badge.bg-ai,
.badge.ai-indicator {
  background-color: rgba(231, 84, 128, 0.15) !important;
  color: #e75480 !important;
  border: 1px solid rgba(231, 84, 128, 0.3);
}

[data-bs-theme="dark"] .badge.bg-ai,
[data-bs-theme="dark"] .badge.ai-indicator {
  background-color: rgba(255, 105, 150, 0.2) !important;
  color: #ff6996 !important;
  border-color: rgba(255, 105, 150, 0.4);
}

/* =============================================================================
 * Rosie Utility Classes
 * Use these for LLM/AI-specific elements
 * ============================================================================= */

/* Text colors */
.text-rosie-pink {
  color: var(--color-rosie-pink) !important;
}

[data-bs-theme="dark"] .text-rosie-pink {
  color: var(--color-rosie-pink-hover) !important;
}

/* Rosie hover effect - use on cards/elements in AI context */
.rosie-hover {
  transition: border-left-color 0.18s ease, box-shadow 0.18s ease;
}

.rosie-hover:hover {
  border-left-color: var(--color-rosie-pink) !important;
  box-shadow: 0 0.125rem 0.25rem rgba(231, 84, 128, 0.15);
}

/* Rosie button hover - transforms buttons to Rosie pink on hover */
.btn-rosie-hover {
  transition: background-color 0.15s ease, border-color 0.15s ease,
              transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-rosie-hover:hover {
  background-color: var(--color-rosie-pink) !important;
  border-color: var(--color-rosie-pink-border) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(231, 84, 128, 0.3);
}

.btn-rosie-hover:active {
  background-color: var(--color-rosie-pink-border-hover) !important;
  border-color: var(--color-rosie-pink-border-hover) !important;
  transform: translateY(0);
}

/* Rosie solid button */
.btn-rosie {
  background-color: var(--color-rosie-pink);
  border-color: var(--color-rosie-pink-border);
  color: #fff;
}

.btn-rosie:hover {
  background-color: var(--color-rosie-pink-hover);
  border-color: var(--color-rosie-pink-border-hover);
  color: #fff;
}

/* Rosie outline button */
.btn-outline-rosie {
  color: var(--color-rosie-pink);
  border-color: var(--color-rosie-pink-border);
  background-color: transparent;
}

.btn-outline-rosie:hover {
  background-color: var(--color-rosie-pink);
  border-color: var(--color-rosie-pink-border);
  color: #fff;
}

/* Rosie border accent */
.border-rosie {
  border-color: var(--color-rosie-pink) !important;
}

/* Rosie background */
.bg-rosie {
  background-color: var(--color-rosie-pink) !important;
}

.bg-rosie-light {
  background-color: rgba(231, 84, 128, 0.1) !important;
}

[data-bs-theme="dark"] .bg-rosie-light {
  background-color: rgba(255, 99, 144, 0.15) !important;
}

/* =============================================================================
 * Selected Message Highlight
 * Pink highlight for clicked/selected AI messages
 * ============================================================================= */

.chat-message.message-selected {
  border-left-color: var(--color-rosie-pink) !important;
  box-shadow: 0 0 0 2px rgba(231, 84, 128, 0.2);
}

[data-bs-theme="dark"] .chat-message.message-selected {
  box-shadow: 0 0 0 2px rgba(255, 99, 144, 0.25);
}

/* =============================================================================
 * Rosie Highlighter Cards
 * Source cards and AI content cards with subtle Rosie pink left border
 * ============================================================================= */

.card.rosie-highlighter {
  border-left: 0.25rem solid rgba(231, 84, 128, 0.3) !important;
  transition: border-left-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card.rosie-highlighter:hover {
  border-left-color: var(--color-rosie-pink) !important;
  transform: translateX(2px);
  box-shadow: 0 0.125rem 0.25rem rgba(231, 84, 128, 0.15);
}

[data-bs-theme="dark"] .card.rosie-highlighter {
  border-left-color: rgba(255, 99, 144, 0.35) !important;
}

[data-bs-theme="dark"] .card.rosie-highlighter:hover {
  border-left-color: var(--color-rosie-pink) !important;
  box-shadow: 0 0.125rem 0.5rem rgba(255, 99, 144, 0.2);
}
