/* File: arioncomply-v1/customer-compliance-ui-dup/mystyles.css */
/* ArionComply - Shared Styles */
/* Modern Clean Design System */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #2563eb;
  --ai-purple: #7c3aed;
  --success-green: #10b981;
  --warning-amber: #f59e0b;
  --danger-red: #ef4444;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border-light: #e2e8f0;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --border-radius-sm: 6px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - Completely Hidden by Default */
.sidebar {
  width: 250px;
  background: var(--bg-white);
  border-right: 1px solid var(--border-light);
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

/* Sidebar backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.nav-menu {
  list-style: none;
  padding: 1rem 0;
  overflow-y: auto;
  flex: 1;
}

.nav-item {
  margin: 0.25rem 0;
}

.nav-item.has-sub > .nav-link::after {
  content: "\25BC";
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.nav-item.has-sub.open > .nav-link::after {
  transform: rotate(180deg);
}

.sub-menu {
  list-style: none;
  padding-left: 1.5rem;
  display: none;
}

.nav-item.has-sub.open > .sub-menu {
  display: block;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

.nav-link i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-gray);
  transition: all 0.15s ease;
}

.menu-toggle:hover {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

.breadcrumb {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  width: 300px;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  margin-left: 0.5rem;
}

/* Notification system */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  background: var(--success-green);
}

.notification-error {
  background: var(--danger-red);
}

.notification-info {
  background: var(--primary-blue);
}

.notification-warning {
  background: var(--warning-amber);
}

.notification-btn,
.help-btn,
.user-menu {
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover,
.help-btn:hover,
.user-menu:hover {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger-red);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Area */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* Cards and Components */
.card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  padding: 1.5rem;
  text-align: center;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kpi-label {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.kpi-card.success .kpi-value {
  color: var(--success-green);
}
.kpi-card.warning .kpi-value {
  color: var(--warning-amber);
}
.kpi-card.danger .kpi-value {
  color: var(--danger-red);
}
.kpi-card.primary .kpi-value {
  color: var(--primary-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-success {
  background: var(--success-green);
  color: white;
}

.btn-ai {
  background: var(--ai-purple);
  color: white;
}

/* Tables */
.table-container {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  font-weight: 600;
  color: var(--text-gray);
  font-size: 0.875rem;
}

.table tr:hover {
  background: var(--bg-light);
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-ai {
  background: #ede9fe;
  color: #6b21a8;
}

/* Filter panels - hidden by default */
.filter-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.filter-panel.active {
  display: block;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray);
}

.form-select,
.form-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  outline: none;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--primary-blue);
}

/* Page title and actions */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-gray);
  font-size: 0.875rem;
}

.page-actions {
  display: flex;
  gap: 1rem;
}

/* Charts placeholder */
.chart-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border-light);
  border-radius: var(--border-radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-style: italic;
}

/* Risk Heat Map Styling */
.risk-heatmap {
  display: grid;
  grid-template-columns: 100px repeat(5, 1fr);
  grid-template-rows: 50px repeat(5, 1fr);
  gap: 0.5rem;
  max-width: 600px;
  margin: 1rem 0;
}

.risk-axis-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
}

.risk-cell {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  border: 2px solid transparent;
}

.risk-cell:hover {
  transform: scale(1.05);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.risk-cell.very-low {
  background: #22c55e;
  color: white;
}

.risk-cell.low {
  background: #84cc16;
  color: white;
}

.risk-cell.medium {
  background: #fbbf24;
  color: #92400e;
}

.risk-cell.high {
  background: #f59e0b;
  color: white;
}

.risk-cell.very-high {
  background: #ef4444;
  color: white;
}

.risk-cell.critical {
  background: #dc2626;
  color: white;
}

/* Tooltip styling */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  z-index: 1000;
  pointer-events: none;
  max-width: 200px;
  white-space: normal;
  text-align: center;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-dark);
}

.risk-cell:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* AI Chat Popup */
.chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--ai-purple);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transition: all 0.15s ease;
  z-index: 1000;
}

.chat-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Chat popup improvements */
.chat-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 400px;
  height: 600px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  resize: both;
  overflow: auto;
  min-width: 250px;
  min-height: 300px;
  z-index: 1001;
}

.chat-popup.active {
  display: flex;
}

.chat-iframe {
  border: none;
  width: 100%;
  height: 100%;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}
.avatar-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.5rem 1rem;
}

.avatar-container {
  display: none;
  justify-content: center;
  padding: 0.5rem;
}

.avatar-mode .avatar-container {
  display: flex;
}

.microphone-button {
  display: none;
}

.avatar-mode .microphone-button {
  display: inline-block;
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move; /* allow dragging the chat popup */
}

.chat-title {
  font-weight: 600;
  color: var(--ai-purple);
}

.chat-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
}

.chat-close:hover {
  background: var(--bg-gray);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 1rem;
}

.chat-message.ai {
  text-align: left;
}

.chat-message.user {
  text-align: right;
}

.message-bubble {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  max-width: 80%;
}

.chat-message.ai .message-bubble {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.chat-message.user .message-bubble {
  background: var(--ai-purple);
  color: white;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
}

.chat-search {
  margin: 0 0 1rem;
  width: 100%;
}

.chat-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  resize: vertical;
  min-height: 60px;
  max-height: 300px;
  outline: none;
}

.chat-input:focus {
  border-color: var(--ai-purple);
}

/* AI-specific styling */
.ai-section {
  border-left: 4px solid var(--ai-purple);
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}

.transparency-chain {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.confidence-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* Confidence bar fixes */
.confidence-bar {
  width: 100px;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: var(--success-green);
  transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: calc(100vw - 2rem);
    margin: 1rem;
  }

  .chat-popup {
    width: calc(100vw - 2rem);
    height: calc(100vh - 4rem);
    bottom: 1rem;
    right: 1rem;
  }
  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  .search-bar {
    width: 200px;
  }

  .header {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* Splash Screen Styles */
.splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg-light);
  gap: 1rem;
}

.splash-logo {
  font-size: 3rem;
  color: var(--primary-blue);
  font-weight: bold;
}

.splash-spinner {
  border: 4px solid var(--bg-gray);
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Avatar Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--ai-purple);
  color: white;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
  line-height: 1.6;
}
/* Info link styling */
.info-link {
  color: var(--ai-purple);
  text-decoration: none;
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

.info-link:hover {
  color: var(--primary-blue);
}

.avatar-options {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.avatar-option input {
  margin-bottom: 0.25rem;
}

.modal-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-light);
  text-align: right;
}

/* Landing Page */
.auth-container {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
}

.auth-form {
  width: 300px;
}

.settings-container {
  display: none;
  padding: 2rem;
}
/* ==========================================================================
   ENHANCED DEMO SECTION STYLES
   Styles for the improved demo experience and demo mode features
   ========================================================================== */

/* Enhanced Demo Section */
.demo-section {
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 1rem 0;
  border: 1px solid #c7d2fe;
}

.demo-hero {
  margin-bottom: 1.5rem;
}

.demo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--ai-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.demo-icon i {
  font-size: 1.5rem;
  color: white;
}

.demo-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.demo-description {
  color: var(--text-gray);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-gray);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.demo-feature i {
  color: var(--primary-blue);
  font-size: 0.875rem;
}

.demo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.demo-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.demo-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--ai-purple));
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.demo-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.demo-primary:active {
  transform: translateY(0);
}

.demo-secondary {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.demo-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

.demo-button i {
  font-size: 1.25rem;
}

.demo-button span {
  font-size: 1rem;
}

.demo-button small {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

.demo-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.demo-disclaimer i {
  color: var(--primary-blue);
}

.demo-disclaimer small {
  color: var(--text-gray);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

/* Demo button loading state */
.demo-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.demo-button:disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Demo mode indicators */
.demo-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
  font-weight: 500;
}

.demo-indicator-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Demo data highlighting */
tr[data-demo="true"],
.demo-data {
  border-left: 3px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.05);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .demo-section {
    padding: 1.5rem;
    margin: 0.5rem 0;
  }

  .demo-features {
    grid-template-columns: 1fr;
    max-width: 250px;
  }

  .demo-feature {
    justify-content: center;
  }
}

/* Workflow Builder */
.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.workflow-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
}

/* Message Counter and Validation Styles */
.message-counter {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
  color: #10b981;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.message-counter .token-estimate {
  color: #6b7280;
  font-weight: 400;
}

.message-warning {
  display: none;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--border-radius-sm);
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn:disabled,
.btn-ai:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Markdown Formatting in Chat Messages */
.message-bubble p {
  margin: 0 0 0.5rem 0;
}

.message-bubble p:last-child {
  margin-bottom: 0;
}

.message-bubble strong {
  font-weight: 600;
}

.message-bubble em {
  font-style: italic;
}

.message-bubble code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

.message-bubble pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  overflow-x: auto;
  margin: 0.5rem 0;
}

.message-bubble pre code {
  background: none;
  padding: 0;
}

.message-bubble ul,
.message-bubble ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message-bubble li {
  margin: 0.25rem 0;
}

.message-bubble a {
  color: var(--ai-purple);
  text-decoration: underline;
}

.message-bubble a:hover {
  text-decoration: none;
}

.message-bubble blockquote {
  border-left: 3px solid var(--border-light);
  padding-left: 1rem;
  margin: 0.5rem 0;
  color: var(--text-medium);
}

.message-bubble h1,
.message-bubble h2,
.message-bubble h3,
.message-bubble h4,
.message-bubble h5,
.message-bubble h6 {
  margin: 0.75rem 0 0.5rem 0;
  font-weight: 600;
}

.message-bubble h1 { font-size: 1.25em; }
.message-bubble h2 { font-size: 1.125em; }
.message-bubble h3 { font-size: 1em; }
.message-bubble h4,
.message-bubble h5,
.message-bubble h6 { font-size: 0.875em; }

/* Compact Typing Speed Control */
.typing-speed-compact {
  position: relative;
  display: inline-block;
}

.speed-control-popover {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  min-width: 180px;
  z-index: 100;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speed-popover-header {
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.speed-popover-header strong {
  color: var(--ai-purple);
}

.speed-control-popover input[type="range"] {
  width: 100%;
  cursor: pointer;
}

/* Message Feedback UI */
.message-feedback {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.feedback-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-gray);
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.feedback-btn:hover {
  background: var(--bg-light);
}

.feedback-btn.thumbs-up:hover {
  color: var(--success-green);
}

.feedback-btn.thumbs-down:hover {
  color: var(--danger-red);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.feedback-text {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  resize: vertical;
}

.feedback-text:focus {
  outline: none;
  border-color: var(--ai-purple);
}

.feedback-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-feedback-submit,
.btn-feedback-cancel {
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-feedback-submit {
  background: var(--ai-purple);
  color: white;
}

.btn-feedback-submit:hover {
  background: #6d28d9;
}

.btn-feedback-cancel {
  background: var(--bg-gray);
  color: var(--text-dark);
}

.btn-feedback-cancel:hover {
  background: var(--border-light);
}

.feedback-success {
  color: var(--success-green);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message-feedback.feedback-recorded {
  border-top: none;
}

/* Input Container with Inline Send Button */
.input-container-with-send {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.send-btn-inline {
  padding: 0.75rem 1.5rem;
  min-width: 80px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn-inline i {
  font-size: 1.25rem;
}

.chat-actions-bottom {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Slash Command Menu */
.slash-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.slash-menu-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slash-menu-items {
  padding: 0.25rem 0;
}

.slash-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.slash-menu-item:hover,
.slash-menu-item.selected {
  background: var(--bg-light);
}

.slash-menu-item i {
  color: var(--ai-purple);
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

.slash-menu-item-content {
  flex: 1;
}

.slash-menu-command {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.slash-menu-description {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 0.125rem;
}

/* ============================================================
   FILE ATTACHMENT STYLES
   ============================================================ */

/* Attachment Preview Container */
.attachment-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border: 1px dashed var(--border-light);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

/* Individual Attachment Item */
.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 0.75rem;
  max-width: 200px;
}

.attachment-icon {
  color: var(--ai-purple);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.attachment-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.attachment-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-size {
  display: block;
  font-size: 0.7rem;
  color: var(--text-gray);
}

.attachment-remove {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.attachment-remove:hover {
  color: var(--danger-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Attach File Button */
.attach-btn {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.15s ease;
  font-size: 1rem;
}

.attach-btn:hover {
  color: var(--ai-purple);
  background: rgba(124, 58, 237, 0.1);
}

/* Input Action Button (shared style) */
.input-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.15s ease;
}

/* Drag and Drop Visual Feedback */
.drag-over {
  border: 2px dashed var(--ai-purple) !important;
  background: rgba(124, 58, 237, 0.05) !important;
}

.drag-over::after {
  content: 'Drop files here';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ai-purple);
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
}

/* ============================================================
   PER-MESSAGE TTS BUTTON STYLES
   ============================================================ */

.message-tts-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.message-tts-btn:hover {
  color: var(--ai-purple);
  background: rgba(124, 58, 237, 0.1);
  opacity: 1;
}

.message-tts-btn.speaking {
  color: var(--success-green);
  opacity: 1;
  animation: pulse-tts 1s infinite;
}

@keyframes pulse-tts {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Feedback container to hold both feedback buttons and TTS */
.message-feedback-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* File: arioncomply-v1/customer-compliance-ui-dup/mystyles.css */
