/*!*************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./src/public/styles.css ***!
  \*************************************************************************/
/* Reset and base styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
  }

  :root {
    --primary-color: rgb(11 40 98);
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent-color: #1363ff;
    --light-bg: #f8fafc;
    --dark-text: #334155;
    --light-text: #94a3b8;
    --bubble-sent: #6366f1;
    --bubble-received: #ffffff;
    --border-radius: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --error-color: #ef4444;
    --warning-color: #f59e0b;
  }

  /* Overall layout */
  body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--light-bg);
    color: var(--dark-text);
  }

  /* Header */
  header {
    /* background: var(--primary-color); */
    color: var(--primary-color);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.25rem;
  }

  .app-title i {
    font-size: 1.5rem;
  }

  /* Connection status */
  .connection-status {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }

  .connection-status.connected {
    background: rgba(19, 99, 255, 0.2);
  }

  .connection-status.connecting {
    background: rgba(245, 158, 11, 0.2);
  }

  .connection-status.disconnected {
    background: rgba(239, 68, 68, 0.2);
  }

  .connection-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
  }

  .connection-status.connecting .connection-indicator {
    background: var(--warning-color);
    animation: pulse 1.5s infinite;
  }

  .connection-status.disconnected .connection-indicator {
    background: var(--error-color);
  }

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

  /* Main chat container */
  .chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 1.5rem auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: white;
    overflow: hidden;
    height: 90vh;
  }

  /* Online status */
  .online-status {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: white;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-right: 6px;
  }

  /* Messages area (scrollable) */
  .messages {
    flex: 1;
    padding: 1.5rem;
    background: var(--light-bg);
    overflow-y: auto;
    scroll-behavior: smooth;
    height: 100%;
  }

  /* Message row */
  .message {
    display: flex;
    margin: 0.75rem 0;
    animation: fadeIn 0.3s ease-in-out;
  }

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

  /* Alignment */
  .message.sent { justify-content: flex-end; }
  .message.received { justify-content: flex-start; }
  .message.server { justify-content: flex-start; }

  /* Bubble styling */
  .bubble {
    max-width: 70%;
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
  }

  .bubble.sent {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
  }

  .bubble.received {
    background: var(--bubble-received);
    border: 1px solid #ccc;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  .bubble.server {
    background: #fca5a5;
    color: black;
    border: 1px solid #f87171;
    border-bottom-left-radius: 4px;
  }

  /* Username and timestamp */
  .username {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--primary-dark);
  }

  .timestamp {
    font-size: 0.7rem;
    margin-top: 4px;
    text-align: right;
    opacity: 0.7;
  }

  /* Input area */
  .input-container {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  .input-wrapper {
    flex: 1;
    position: relative;
    margin-right: 10px;
  }

  .input-container input {
    width: 100%;
    border: none;
    background: var(--light-bg);
    padding: 1rem 1rem 1rem 3rem; /* left padding for emoji icon */
    font-size: 0.95rem;
    border-radius: 24px;
    outline: none;
    transition: box-shadow 0.2s;
  }

  .input-container input:focus {
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
  }

  .emoji-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    margin-top: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .btn-outlined {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }


  .send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .form-field{
    width: 100%;
  }

  .send-btn:hover {
    background: #4d88ff;
  }

  .send-btn:disabled {
    background: var(--light-text);
    cursor: not-allowed;
    opacity: 0.7;
  }

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

  /* Connection error banner */
  .connection-error {
    background: rgba(239,68,68,0.1);
    color: var(--error-color);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    display: none;
    border-bottom: 1px solid rgba(239,68,68,0.2);
    animation: slideDown 0.3s forwards;
  }

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

  .reconnect-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    cursor: pointer;
  }

  /* Responsive design */
  @media (max-width: 768px) {
    .chat-container {
      margin: 0;
      height: 100vh;
      max-width: 100%;
      border-radius: 0;
    }

    .bubble {
      max-width: 85%;
    }

    .connection-status {
      top: auto;
      right: auto;
      position: static;
      margin-left: auto;
    }

    .app-title {
      justify-content: flex-start;
    }

    header {
      display: flex;
      align-items: center;
      padding: 1rem;
    }
  }

  .loader {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    color: var(--dark-text);
    font-size: 0.9rem;
  }

  .loader i {
    margin-right: 0.5rem;
  }

  /* Minimal Agreement Generator UI */
  .dg-shell { width: 100%; max-width: 1200px; height: 100vh; margin: 0 auto; border: none; border-radius: 0; box-shadow: none; overflow: hidden; background: #ffffff; font-family: "Inter", sans-serif; display: flex; flex-direction: column; padding: 0 24px; }
  .dg-header { background: #ffffff; color: #1363ff; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; border-bottom: 1px solid #e5efef; box-shadow: none; }
  .dg-logo-wrap { display: flex; justify-content: center; align-items: center; }
  .dg-logo { height: 32px; width: auto; }
  .dg-title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
  .dg-subtitle { opacity: 0.7; font-size: 12px; }
  .dg-pill { display: none; } /* legacy hidden */
  .dg-status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
  .dg-status-dot.connected { background: #1363ff; }
  .dg-status-dot.connecting { background: orange; }
  .dg-status-dot.disconnected { background: red; }
  .dg-body { background: #ffffff; padding: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; }
  .dg-window { max-height: none; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; background: #ffffff; }
  .dg-date { text-align: center; font-size: 12px; color: #7b92d7; margin-bottom: 4px; }
  .dg-message { display: flex; width: 100%; }
  .dg-message.agent { justify-content: flex-start; }
  .dg-message.user { justify-content: flex-end; }
  .dg-bubble { background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%); color: #1363ff; padding: 12px 14px; border-radius: 14px; max-width: 85%; box-shadow: 0 4px 12px rgba(19, 99, 255, 0.08); border: 1px solid #e1ebff; font-size: 14px; }
  .dg-message.user .dg-bubble { background: #ffffff; border: 1px solid #dce7ff; box-shadow: 0 4px 12px rgba(19, 99, 255, 0.08); color: #1363ff; }
  .dg-hint { display: block; margin-top: 6px; color: #7b92d7; }
  .dg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .dg-chip { border: 1px solid #d0dcff; background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%); color: #1a4fdc; padding: 9px 12px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all 0.12s ease; font-size: 13px; box-shadow: 0 4px 12px rgba(19, 99, 255, 0.06); }
  .dg-chip:hover { background: #1363ff; color: #fff; border-color: #1363ff; box-shadow: 0 6px 16px rgba(19, 99, 255, 0.12); transform: translateY(-1px); }
  .dg-chip:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(19, 99, 255, 0.12); }
  .dg-template-picker { margin-top: 12px; padding: 12px; border: 1px solid #e3eded; border-radius: 12px; background: #ffffff; box-shadow: none; }
  .dg-picker-header { margin-bottom: 10px; }
  .dg-picker-title { font-weight: 700; font-size: 14px; margin: 0 0 4px 0; color: #1363ff; }
  .dg-picker-sub { margin: 0; color: #7b92d7; font-size: 12px; }
  .dg-picker-search { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #dce7ff; margin-bottom: 10px; outline: none; color: #1363ff; }
  .dg-picker-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
  .dg-picker-item { width: 100%; text-align: left; border: 1px solid #dce7ff; background: linear-gradient(180deg, #fafcff 0%, #f5f8ff 100%); padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: all 0.12s ease; box-shadow: 0 4px 10px rgba(19, 99, 255, 0.05); }
  .dg-picker-item:hover { border-color: #1363ff; background: #eef3ff; box-shadow: 0 6px 16px rgba(19, 99, 255, 0.12); transform: translateY(-1px); }
  .dg-picker-item:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(19, 99, 255, 0.12); }
  .dg-picker-main { font-weight: 700; color: #1363ff; }
  .dg-picker-meta { font-size: 12px; color: #7b92d7; }
  .dg-input-hint { margin: 8px 0 0 4px; color: #1363ff; font-size: 12px; font-weight: 600; }
  .dg-loader { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #1363ff; font-weight: 600; font-size: 13px; }
  .dg-spinner { width: 18px; height: 18px; border: 2px solid rgba(19, 99, 255, 0.2); border-top-color: #1363ff; border-radius: 50%; animation: dg-spin 0.9s linear infinite; }
  @keyframes dg-spin { to { transform: rotate(360deg); } }
  .dg-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e7efee; background: #ffffff; }
  .dg-input-row input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid #dce7ff; outline: none; font-size: 14px; color: #1363ff; background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%); }
  .dg-send { background: linear-gradient(180deg, #1363ff 0%, #0f4cd6 100%); color: #fff; border: none; padding: 0 16px; border-radius: 12px; cursor: pointer; font-weight: 700; box-shadow: 0 4px 12px rgba(19, 99, 255, 0.15); transition: transform 0.12s ease, box-shadow 0.12s ease; }
  .dg-send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(19, 99, 255, 0.2); }
  .dg-send:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(19, 99, 255, 0.18); }
  .dg-send:disabled { opacity: 0.6; cursor: not-allowed; }
  .dg-icon { border: 1px solid #dfe9e8; background: #fff; border-radius: 10px; width: 38px; height: 38px; cursor: pointer; }
  .dg-input-hint { margin: 8px 0 0 4px; color: #1363ff; font-size: 12px; font-weight: 600; }
  .dg-loader { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #1363ff; font-weight: 600; font-size: 13px; }
  .dg-spinner { width: 18px; height: 18px; border: 2px solid rgba(19, 99, 255, 0.2); border-top-color: #1363ff; border-radius: 50%; animation: dg-spin 0.9s linear infinite; }
  @keyframes dg-spin { to { transform: rotate(360deg); } }
  .dg-builder { margin-top: 16px; border: 1px solid #e3eded; border-radius: 12px; background: #ffffff; padding: 16px; box-shadow: 0 6px 16px rgba(19, 99, 255, 0.08); }
  .dg-builder-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .dg-builder-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .dg-builder-title { margin: 0; font-weight: 700; color: #1363ff; }
  .dg-builder-sub { margin: 2px 0 0 0; color: #7b92d7; font-size: 13px; }
  .dg-builder-modes { display: inline-flex; gap: 8px; }
  .dg-toggle { border: 1px solid #dce7ff; background: #f7fbff; color: #1363ff; padding: 8px 12px; border-radius: 10px; cursor: pointer; transition: all 0.12s ease; font-weight: 600; }
  .dg-toggle.active { background: #1363ff; color: #fff; border-color: #1363ff; }
  .dg-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
  .dg-fill-cta { border: 1px solid #1363ff; background: linear-gradient(180deg, #f3f7ff 0%, #e4ebff 100%); color: #0f44c8; padding: 10px 14px; border-radius: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(19, 99, 255, 0.12); transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
  .dg-fill-cta:hover { background: #1363ff; color: #fff; box-shadow: 0 10px 24px rgba(19, 99, 255, 0.18); transform: translateY(-1px); }
  .dg-fill-cta:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(19, 99, 255, 0.12); }
  .dg-builder-panel { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
  .dg-builder-fields { display: flex; flex-direction: column; gap: 10px; }
  .dg-field-card { border: 1px solid #dce7ff; border-radius: 10px; padding: 10px; background: #fbfdff; box-shadow: 0 4px 12px rgba(19, 99, 255, 0.06); }
  .dg-field-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .dg-field-input { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid #dce7ff; color: #1363ff; background: #fff; }
  .dg-field-input.subtle { background: #f7faff; }
  .dg-field-select { padding: 8px 10px; border-radius: 8px; border: 1px solid #dce7ff; color: #1363ff; background: #fff; }
  .dg-field-required { display: inline-flex; align-items: center; gap: 6px; color: #1363ff; font-size: 12px; }
  .dg-add-field { border: 1px dashed #1363ff; background: #f7fbff; color: #1363ff; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 700; transition: all 0.12s ease; }
  .dg-add-field:hover { background: #eef4ff; }
  .dg-preview { margin-top: 12px; border: 1px solid #dce7ff; border-radius: 10px; padding: 12px; background: #fbfdff; }
  .dg-preview-label { margin: 0 0 8px 0; color: #1363ff; font-weight: 700; }
  .dg-preview-input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #dce7ff; color: #1363ff; background: #fff; }
  .dg-preview-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
  .dg-preview-empty { color: #7b92d7; font-size: 13px; }
  .dg-modal-backdrop { position: fixed; inset: 0; background: rgba(19, 99, 255, 0.06); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
  .dg-modal { background: #fff; border: 1px solid #dce7ff; border-radius: 14px; box-shadow: 0 20px 60px rgba(19, 99, 255, 0.15); width: min(840px, 96%); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
  .dg-modal.wide { width: min(960px, 96%); }
  .dg-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
  .dg-modal-title { margin: 0; font-weight: 700; font-size: 18px; color: #1363ff; }
  .dg-modal-sub { margin: 4px 0 0 0; color: #6f86d9; font-size: 13px; }
  .dg-close { border: none; background: transparent; color: #7b92d7; font-size: 22px; cursor: pointer; padding: 2px 6px; }
  .dg-modal-body { padding: 0 20px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
  .dg-modal-field { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid #e6edff; border-radius: 10px; background: #fbfdff; }
  .dg-modal-label { font-weight: 600; font-size: 13px; color: #1363ff; display: flex; align-items: center; gap: 6px; }
  .dg-required { color: #ff4d4f; }
  .dg-optional { color: #7b92d7; font-weight: 600; }
  .dg-modal-input { width: 100%; border: 1px solid #dce7ff; border-radius: 10px; padding: 10px 12px; color: #1363ff; background: #fff; }
  .dg-modal-input:focus { outline: 2px solid rgba(19, 99, 255, 0.22); border-color: #1363ff; }
  .dg-field-error { color: #ff4d4f; font-size: 12px; }
  .dg-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid #edf2ff; background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%); }
  .dg-primary { border: none; background: linear-gradient(180deg, #1363ff 0%, #0f4cd6 100%); color: #fff; padding: 10px 14px; border-radius: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(19, 99, 255, 0.18); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.12s ease, box-shadow 0.12s ease; }
  .dg-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(19, 99, 255, 0.22); }
  .dg-primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
  .dg-ghost { border: 1px solid #dce7ff; background: #fff; color: #1363ff; padding: 10px 14px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: background 0.12s ease; }
  .dg-ghost:hover { background: #f2f6ff; }
  .dg-inline-error { margin: 0 20px 10px; color: #d93025; font-weight: 600; font-size: 13px; }
  .dg-preview-pane { padding: 16px; max-height: 60vh; overflow: auto; border-top: 1px solid #edf2ff; border-bottom: 1px solid #edf2ff; background: #fff; color: #222; line-height: 1.6; }

  @media (max-width: 768px) {
    .dg-shell {
      width: 100%;
      margin: 0;
      padding: 0 16px;
    }
    .dg-header {
      padding: 14px;
    }
    .dg-window {
      max-height: calc(100vh - 190px);
      padding: 12px;
    }
  }

  @media (max-width: 540px) {
    .dg-shell {
      border-radius: 0;
      width: 100%;
      margin: 0;
      height: 100vh;
      padding: 0 12px;
    }
    .dg-window {
      max-height: calc(100vh - 190px);
      padding: 12px 10px;
    }
    .dg-actions {
      gap: 6px;
    }
    .dg-chip {
      width: calc(50% - 6px);
      justify-content: center;
      text-align: center;
    }
  }

  @media (max-width: 400px) {
    .dg-shell {
      height: 100vh;
    }
    .dg-header {
      flex-direction: column;
      align-items: flex-start;
    }
    .dg-input-row {
      flex-wrap: wrap;
      gap: 6px;
    }
    .dg-input-row input {
      flex: 1 1 100%;
      min-width: 0;
    }
    .dg-send {
      width: 100%;
    }
    .dg-chip {
      width: 100%;
    }
  }


/*# sourceMappingURL=bundle.css.map*/