/* Content Factory dashboard — базовые стили (Bootstrap 5 дополнения) */

:root {
  --cf-sidebar-width: 260px;
  --cf-accent: #0d6efd;
}

body.cf-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
}

.cf-main {
  flex: 1;
}

.cf-navbar .nav-link.active {
  font-weight: 600;
}

.cf-kpi-card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cf-status--ok { background: #198754; }
.cf-status--warn { background: #ffc107; color: #212529; }
.cf-status--err { background: #dc3545; }

.cf-plan-card {
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.cf-plan-card:hover {
  transform: translateY(-2px);
}

.cf-agent-card {
  border-left: 4px solid var(--cf-accent);
}

.cf-agent-card[data-status="busy"] { border-left-color: #ffc107; }
.cf-agent-card[data-status="error"] { border-left-color: #dc3545; }
.cf-agent-card[data-status="idle"] { border-left-color: #6c757d; }

.cf-chat-messages {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  background: #fafafa;
}

.cf-chat-bubble {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cf-chat-bubble--user {
  margin-left: auto;
  background: #0d6efd;
  color: #fff;
}

.cf-chat-bubble--bot {
  background: #e9ecef;
  color: #212529;
}

.cf-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.cf-timeline li {
  position: relative;
  padding-bottom: 1rem;
  border-left: 2px solid #dee2e6;
  padding-left: 1rem;
  margin-left: 0.25rem;
}

.cf-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf-accent);
}

.cf-prompt-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 400px;
}

.cf-footer {
  background: #fff;
}

@media (max-width: 576px) {
  .cf-kpi-card .display-6 {
    font-size: 1.75rem;
  }
}
