/* Powertech Ai Pricing — Custom styles (Tailwind handles the rest) */

:root {
  --content-max: 72rem;
  --content-pad: clamp(0.75rem, 2vw, 1.5rem);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
}

.responsive-shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > table {
  min-width: 760px;
}

/* Scrollbar styling */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Smooth textarea resize */
textarea { transition: height 0.1s ease; }

/* Tab active state (used by admin.js) */
.tab-btn.active {
  background-color: rgb(51 65 85); /* slate-700 */
  color: white;
}

/* Animate streaming cursor */
.streaming-cursor::after {
  content: '▍';
  display: inline-block;
  animation: blink 0.8s step-end infinite;
  color: #60a5fa;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Session list items */
.session-item { border-radius: 0.5rem; }

/* Example buttons */
.example-btn { line-height: 1.4; }

/* Number input — remove spinner */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Mobile/touch layout */
@media (max-width: 1200px), (hover: none) and (pointer: coarse) {
  body {
    overflow: auto !important;
  }

  .app-shell {
    flex-direction: column;
    overflow: visible;
  }

  .app-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #334155;
  }

  .app-sidebar .flex-1 {
    max-height: 180px;
    overflow-y: auto;
  }

  .app-main {
    min-height: 0;
    overflow: visible !important;
  }

  #chat-messages {
    padding: 12px;
  }

  #chat-messages .max-w-xl,
  #chat-messages .max-w-2xl {
    max-width: 100%;
  }

  .app-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .app-asking-input {
    width: 100% !important;
  }

  #send-btn {
    width: 100%;
    height: 42px;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .table-responsive > table {
    min-width: 680px;
  }
}

/* Better kinetic scrolling on mobile browsers */
#chat-messages,
.app-sidebar .flex-1 {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
