/* AI Features Styling - Palantir Theme Compatible */

.ai-copilot-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  height: 100%;
  width: 420px;
  background-color: #1a1a1a;
  color: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.5);
  transition: right 0.3s ease;
  z-index: 1050;
  padding: 1rem;
  overflow-y: auto;
}

.ai-copilot-drawer.show { 
  right: 0; 
}

.drawer-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1rem;
}

.drawer-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
}

.chat-window {
  flex: 1;
  height: 70vh;
  overflow-y: auto;
  background: #0e141b;
  padding: .5rem;
  border-radius: .5rem;
  margin-bottom: 1rem;
}

.chat-message {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.chat-message.user {
  background: rgba(59, 130, 246, 0.2);
  text-align: right;
}

.chat-message.ai {
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.bg-slate { 
  background-color: #1a222d; 
}

/* Override Bootstrap primary to match Palantir blue */
.btn-primary { 
  background-color: #3b82f6; 
  border-color: #3b82f6; 
}

.btn-primary:hover { 
  background-color: #60a5fa; 
  border-color: #60a5fa; 
}

.btn-primary:active,
.btn-primary:focus {
  background-color: #2563eb;
  border-color: #2563eb;
}

/* Modal styling */
#aiRiskModal .modal-content {
  border: 1px solid rgba(59, 130, 246, 0.2);
}

#riskResult .alert {
  margin-top: 1rem;
}

/* Intelligence Feed */
#aiIntelligenceFeed {
  border: 1px solid rgba(59, 130, 246, 0.2);
}

#aiIntelligenceFeed .card-header {
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

#feedItems .list-group-item {
  background-color: #0e141b;
  border-color: rgba(59, 130, 246, 0.1);
  color: #f1f1f1;
}

/* AI Navigation Icons */
.ai-nav-icon {
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-nav-icon:hover {
  color: #3b82f6 !important;
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ai-copilot-drawer {
    width: 100%;
    right: -100%;
  }
  
  .ai-copilot-drawer.show {
    right: 0;
  }
}
