/* AskGive Frontend Styles - self contained, no external deps */
.lore-widget-root {
  position: relative;
  z-index: 9999;
  --ag-primary: #00965E;
  --ag-secondary: #00437B;
  --ag-accent: #FDB913;
  --ag-text: #111827;
  --ag-bg: #ffffff;
  --ag-muted: #f3f4f6;
  --ag-border: #e5e7eb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.ag-hidden { display: none !important; }

.ag-right { right: 0; }
.ag-left { left: 0; }

.ag-minibar {
  position: fixed;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: var(--ag-primary);
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.ag-minibar .ag-title {
  margin: 0;
  font-size: 14px;
  line-height: 1;
}
.ag-minibar .ag-badge {
  color: #000;
  background: var(--ag-accent);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}
.ag-minibar button {
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.ag-panel {
  position: fixed;
  bottom: 0;
  width: min(420px, 100vw);
  height: min(60vh, 100vh);
  display: flex;
  flex-direction: column;
  background: var(--ag-bg);
  border: 1px solid var(--ag-border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.ag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ag-primary);
  color: #fff;
}
.ag-header .ag-title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
}
.ag-header .ag-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ag-header .ag-actions button {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.ag-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}
.ag-welcome {
  background: #fff;
  border: 1px solid var(--ag-border);
  padding: 12px;
  border-radius: 8px;
  color: var(--ag-text);
  margin: 0 0 8px 0;
  font-size: 14px;
}
.ag-hint {
  background: #fff;
  border: 1px dashed var(--ag-border);
  padding: 10px 12px;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
}

.ag-footer {
  padding: 10px;
  background: #fff;
  border-top: 1px solid var(--ag-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ag-input-row {
  display: flex;
  align-items: center;
  background: var(--ag-secondary);
  border-radius: 8px;
  overflow: hidden;
}
.ag-textarea {
  flex: 1;
  height: auto;
  min-height: 44px;
  resize: none;
  padding: 12px;
  font-size: 14px;
  border: 2px solid #E99918;
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  background: white;
  color: #111827;
}
.ag-textarea:focus {
  border-color: #E99918;
  box-shadow: 0 0 0 1px #E99918;
}
.ag-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.15s ease;
}
.ag-send-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.ag-send-btn svg {
  width: 24px;
  height: 24px;
}
.ag-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}
.ag-links a, .ag-links button {
  font-size: 12px;
  color: #111827;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.ag-links a:hover, .ag-links button:hover {
  text-decoration: underline;
}

/* Icons (simple chevrons) */
.ag-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 991px) {
  .ag-panel {
    width: 100vw;
    height: 60vh;
    border-left: none;
    border-right: none;
    border-radius: 12px 12px 0 0;
  }
}

/* Simple animations */
@keyframes ag-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes ag-slide-down {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}
.ag-animate-in { animation: ag-slide-up 220ms ease-out; }
.ag-animate-out { animation: ag-slide-down 220ms ease-in; }
