/* LinguaChatAI style.css - 20/11/2026 */
/* All rights reserved. Do not copy or redistribute without ToanCreator permission. */

    *, *::before, *::after {
      border-radius: 0px !important;
      box-sizing: border-box;
    }

    html, body {
      height: 100dvh;
      max-height: 100dvh;
      margin: 0;
      padding: 0;
      background-color: #030508;
      color: #E2E8F0;
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
    }

    .artcraft-grid {
      background-image:
        linear-gradient(to right, rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
      background-size: 28px 28px;
    }

    .smooth-box {
      transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
    }

    ::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }
    ::-webkit-scrollbar-track {
      background: #030508;
    }
    ::-webkit-scrollbar-thumb {
      background: #1E293B;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #0EA5E9;
    }

    .h-scroll-clean {
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
    }
    .h-scroll-clean::-webkit-scrollbar {
      display: none;
    }

    .composer-box {
      flex-shrink: 0;
      border: 1px solid #1E293B;
      background: #070B12;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    }
    .composer-box:hover {
      border-color: #0284C7;
      background: #090F19;
    }
    .composer-box:focus-within {
      border-color: #38BDF8;
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 6px 20px rgba(2, 132, 199, 0.14);
      background: #0A111C;
    }

    @media (max-width: 640px) {
      input, textarea, select {
        font-size: 16px !important;
      }
    }

    .saved-vocab-highlight {
      color: #4ADE80;
      background-color: rgba(20, 83, 45, 0.5);
      border-bottom: 1.5px solid #22C55E;
      padding: 0 3px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.15s ease, color 0.15s ease;
    }
    .saved-vocab-highlight:hover {
      background-color: rgba(34, 197, 94, 0.32);
      color: #86EFAC;
    }

    @keyframes unreadGlow {
      0%, 100% { box-shadow: inset 3px 0 0 #38BDF8, 0 0 0 rgba(56, 189, 248, 0); }
      50% { box-shadow: inset 3px 0 0 #7DD3FC, 0 0 12px rgba(56, 189, 248, 0.16); }
    }
    .role-unread-card {
      background: linear-gradient(90deg, rgba(14, 165, 233, 0.16) 0%, rgba(12, 18, 29, 0.92) 100%);
      animation: unreadGlow 2.4s ease-in-out infinite;
    }

    .role-swipe-foreground {
      touch-action: pan-y;
      user-select: none;
      -webkit-user-select: none;
      will-change: transform;
    }

    @keyframes wavePulse {
      0%, 100% { transform: scaleY(0.25); }
      50% { transform: scaleY(1); }
    }
    .wave-bar {
      animation: wavePulse 0.9s ease-in-out infinite;
      transform-origin: center;
    }

    .sq-segment {
      cursor: pointer;
      transition: opacity 0.15s ease, stroke-width 0.15s ease;
    }
    .sq-segment:hover {
      opacity: 0.85;
    }

    .safe-bottom {
      padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    }

    .website-link {
      color: #38BDF8;
      text-decoration: underline;
      text-decoration-color: #0284C7;
      text-underline-offset: 2px;
      overflow-wrap: anywhere;
    }
    .website-link:hover {
      color: #7DD3FC;
    }
    .website-preview-card {
      display: block;
      width: min(100%, 30rem);
      margin-top: 0.6rem;
      overflow: hidden;
      border: 1px solid #1E293B;
      background: #030508;
      text-align: left;
      cursor: zoom-in;
    }
    .website-preview-card img {
      display: block;
      width: 100%;
      max-height: 12rem;
      object-fit: cover;
    }
    .website-preview-card.preview-unavailable img {
      display: none;
    }
    .website-preview-label {
      display: block;
      padding: 0.35rem 0.5rem;
      color: #7DD3FC;
      font: 10px "JetBrains Mono", monospace;
    }

    .editor-format-btn {
      min-width: 2rem;
      border: 1px solid #1E293B;
      background: #0C121D;
      padding: 0.35rem 0.55rem;
      color: #E2E8F0;
      font: 600 0.75rem "JetBrains Mono", monospace;
    }
    .editor-format-btn:hover {
      border-color: #38BDF8;
      color: #7DD3FC;
    }
    .admin-rich-editor {
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }
    .admin-rich-editor:empty::before {
      content: attr(data-placeholder);
      color: #64748B;
      pointer-events: none;
    }

    .not-found-page {
      display: flex;
      min-height: 100dvh;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }
    .not-found-card {
      width: min(100%, 36rem);
      border: 1px solid #0369A1;
      background: rgba(12, 18, 29, 0.96);
      padding: clamp(1.5rem, 6vw, 3rem);
      text-align: center;
      box-shadow: 0 0 32px rgba(14, 165, 233, 0.12);
    }
    .not-found-code {
      color: #38BDF8;
      font: 700 clamp(4rem, 18vw, 7rem)/1 "JetBrains Mono", monospace;
      letter-spacing: -0.08em;
    }
    .not-found-title {
      margin-top: 1rem;
      color: #F8FAFC;
      font-size: clamp(1.25rem, 4vw, 1.75rem);
      font-weight: 700;
    }
    .not-found-description {
      margin: 0.75rem auto 1.5rem;
      max-width: 28rem;
      color: #94A3B8;
      font-size: 0.875rem;
      line-height: 1.6;
    }
    .not-found-home {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #38BDF8;
      background: #0C4A6E;
      padding: 0.7rem 1rem;
      color: #F8FAFC;
      font: 700 0.75rem "JetBrains Mono", monospace;
      text-decoration: none;
      transition: background-color 0.16s ease, color 0.16s ease;
    }
    .not-found-home:hover {
      background: #0EA5E9;
      color: #030508;
    }
