/* VOID - Matching BLACK BOX Style */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #333333;
  --gray-light: #666666;
  --gray-dark: #111111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Courier New', monospace;
  position: relative;
}

/* Landing Page - Clean black background */
.landing {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  background: var(--black);
  position: relative;
  overflow-y: auto; /* Allow scrolling on mobile */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem; /* Extra padding for mobile */
}

/* Page Logo */
.page-logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  display: block;
  width: auto;
  height: auto;
}

.page-logo:hover {
  opacity: 1;
}

.page-logo .void-logo {
  display: block !important;
  margin: 0;
  padding: 0;
}

/* Header Logo */
.header-logo {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
  opacity: 0.8;
}

/* ASCII Hero Container */
.ascii-hero-container {
  flex: 1;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Actions - Matching BLACK BOX layout */
.bottom-actions {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0 1rem;
  width: 100%;
  max-width: 28rem;
}

.actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.actions-row:last-child {
  margin-bottom: 0;
}

.actions-row:only-child {
  grid-template-columns: 1fr 1fr;
}

.actions-row:has(button:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
}

/* Buttons - Matching BLACK BOX style */
.btn {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  position: relative;
  display: inline-block;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--white);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-count {
  font-size: 0.7rem;
  color: var(--gray-light);
  font-weight: normal;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-left: 0.3rem;
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--black);
  color: var(--white);
}

.btn-black {
  background: var(--black);
  color: var(--white);
  border-color: var(--white);
}

.btn-black:hover {
  background: var(--white);
  color: var(--black);
}

.btn-social {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
}

/* Join Modal */
.join-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.join-modal.active {
  display: flex;
}

.join-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 400px;
}

.join-modal-content input {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  padding: 1rem;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.join-modal-content input::placeholder {
  color: var(--gray-light);
}

.join-modal-content input:focus {
  border-color: var(--white);
}

/* Nickname Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--black);
  border: 2px solid var(--white);
  padding: 3rem;
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-title {
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.modal-content input {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  padding: 1rem;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.modal-content input::placeholder {
  color: var(--gray-light);
}

.modal-content input:focus {
  border-color: var(--white);
}

/* Info Modal */
.info-modal-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-prefix {
  color: var(--gray-light);
  font-family: 'Courier New', monospace;
  display: inline-block;
  margin-right: 0.5rem;
}

.info-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-block;
}

.info-label {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: bold;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 0.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1rem;
}

.info-item {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  line-height: 1.6;
}

.info-section:has(.info-prefix) {
  flex-direction: row;
  align-items: flex-start;
}

.info-section:has(.info-prefix) .info-text {
  flex: 1;
}

/* ==================== CHAT PAGE ==================== */

.chat-container {
  padding-top: 0;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: var(--black);
  font-family: 'Courier New', monospace;
  padding-bottom: 2rem; /* Extra padding for mobile */
}

/* Connection Status */
.connection-status {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  z-index: 100;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-bracket {
  color: var(--gray-light);
}

.connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  display: inline-block;
}

.connection-dot.disconnected {
  background: var(--gray-light);
  animation: pulse 1s infinite;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--white);
  background: var(--black);
  position: sticky;
  top: 2rem;
  z-index: 100;
}

.room-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.void-logo {
  display: block;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  font-family: 'Courier New', monospace;
  color: var(--white);
  white-space: pre;
  user-select: none;
}

.header-prefix {
  color: var(--gray-light);
}

.room-name {
  font-size: 0.9rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  font-weight: bold;
}

.header-separator {
  color: var(--gray-light);
  margin: 0 0.3rem;
}

.room-code {
  font-size: 0.75rem;
  color: var(--gray-light);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
}

.room-code:hover {
  color: var(--white);
}

.user-count {
  font-size: 0.75rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray-light);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-btn:hover {
  border-color: var(--white);
  color: var(--white);
  background: var(--gray-dark);
}

.icon-text {
  display: block;
}

/* Terminal Prompt */
.terminal-prompt {
  padding: 0.5rem 0;
  color: var(--gray-light);
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.prompt-prefix {
  color: var(--white);
  margin-right: 0.5rem;
}

.prompt-text {
  color: var(--gray-light);
  text-transform: uppercase;
}

/* Messages Wrapper */
.messages-wrapper {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Messages Area */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.messages-container::-webkit-scrollbar {
  width: 2px;
}

.messages-container::-webkit-scrollbar-track {
  background: var(--black);
}

.messages-container::-webkit-scrollbar-thumb {
  background: var(--gray);
}

/* Messages - Terminal Style */
.message {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  animation: fadeIn 0.3s ease;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
}

.message-self {
  align-self: flex-end;
  max-width: 70%;
}

.message-other {
  align-self: flex-start;
  max-width: 70%;
}

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

.message-self {
  align-self: flex-end;
  border-color: var(--white);
  background: var(--gray-dark);
}

.message-other {
  align-self: flex-start;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
}

.message-prefix {
  color: var(--gray-light);
}

.message-sender {
  text-transform: uppercase;
  color: var(--white);
  font-weight: bold;
}

.message-sender.admin-name {
  color: #ff3333; /* Red color for admin */
  text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
  font-weight: bold;
}

.message-time {
  color: var(--gray-light);
  opacity: 0.6;
}

.message-content {
  padding-left: 1.5rem;
  word-break: break-word;
  color: var(--white);
}

/* System messages */
.system-message {
  align-self: center;
  max-width: none;
  border: none;
  color: var(--gray-light);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  text-align: left;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.system-message.join {
  color: var(--white);
}

.system-message.leave {
  color: var(--gray-light);
}

/* File messages */
.file-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 1.5rem;
}

.file-message:hover {
  border-left-color: var(--white);
  background: var(--gray-dark);
}

.file-icon {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-info {
  flex: 1;
}

.file-name {
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: var(--white);
}

.file-size {
  font-size: 0.7rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
}

/* Crypto transfer messages */
.transfer-message {
  border-left: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.transfer-amount {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.3rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.transfer-link {
  font-size: 0.7rem;
  color: var(--gray-light);
  text-decoration: none;
  margin-top: 0.3rem;
  display: inline-block;
}

.transfer-link:hover {
  color: var(--white);
}

/* Typing indicator */
.typing-indicator {
  font-size: 0.7rem;
  color: var(--gray-light);
  padding: 0.5rem 2rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.typing-prefix {
  color: var(--gray-light);
  margin-right: 0.5rem;
}

/* Input Area */
.input-area {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--gray);
  background: var(--black);
}

.input-prompt {
  padding-top: 1rem;
  color: var(--white);
  font-size: 0.9rem;
}

.prompt-arrow {
  color: var(--white);
  font-weight: bold;
}

.message-input {
  flex: 1;
  resize: none;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  padding: 0.8rem;
  border: none;
  border-bottom: 1px solid var(--gray);
  background: transparent;
  color: var(--white);
  outline: none;
  min-height: 40px;
  max-height: 150px;
  letter-spacing: 0.02em;
}

.message-input:focus {
  border-bottom-color: var(--white);
}

.message-input::placeholder {
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.input-actions {
  display: flex;
  align-items: center;
}

.send-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.send-btn:hover {
  background: var(--white);
  color: var(--black);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-bracket {
  color: var(--gray-light);
}

/* Quick Actions Sidebar (Right) */
.quick-actions-sidebar {
  width: 180px;
  background: var(--black);
  border-left: 1px solid var(--gray);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.quick-actions-header {
  padding: 1rem;
  border-bottom: 1px solid var(--gray);
}

.quick-actions-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.quick-actions-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-action-btn {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--white);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  text-align: center;
}

.quick-action-btn:hover {
  border-color: var(--white);
  background: var(--gray-dark);
}

.quick-action-label {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
}

.quick-action-desc {
  font-size: 0.7rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar (Modal) */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--black);
  border-left: 1px solid var(--gray);
  z-index: 3000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  right: 0;
}

#profileSidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray);
}

.sidebar-prefix {
  color: var(--gray-light);
  margin-right: 0.5rem;
}

.sidebar-title {
  font-size: 0.85rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  flex: 1;
}

.close-sidebar {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray-light);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.close-sidebar:hover {
  border-color: var(--white);
  color: var(--white);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* User list */
.user-list {
  list-style: none;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem;
  border-left: 2px solid var(--gray-dark);
  transition: all 0.2s ease;
}

.user-item:hover {
  border-left-color: var(--white);
  background: var(--gray-dark);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-btn {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--gray);
  background: transparent;
  color: var(--gray-light);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.admin-btn:hover {
  border-color: var(--white);
  color: var(--white);
  background: var(--gray-dark);
}

.kick-btn:hover {
  border-color: var(--gray-light);
  color: var(--gray-light);
}

.ban-btn:hover {
  border-color: #ff4444;
  color: #ff4444;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  color: var(--gray-light);
}

.user-name {
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--white);
}

.user-name.admin-name {
  color: #ff3333; /* Red color for admin */
  text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
  font-weight: bold;
}

.user-avatar.admin-avatar {
  border-color: #ff3333;
  box-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

/* Profile panel */
.profile-panel {
  padding: 1rem;
}

.profile-avatar-container {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border: 2px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: var(--gray-dark);
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  line-height: 1;
  padding: 0.5rem;
}

.profile-avatar pre {
  margin: 0;
  color: var(--white);
  text-align: center;
}

.profile-stats {
  margin-top: 0.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-dark);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 0.85rem;
  color: var(--white);
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

/* Wallet panel */
.wallet-panel {
  padding: 1rem;
  border: 1px solid var(--gray);
  margin: 1rem;
}

.wallet-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
}

.wallet-dot.connected {
  background: var(--white);
}

.wallet-address {
  font-size: 0.75rem;
  color: var(--gray-light);
  word-break: break-all;
}

.wallet-balances {
  margin: 0.5rem 0;
}

.wallet-balance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-dark);
}

.wallet-balance-item:last-child {
  border-bottom: none;
}

.balance-label {
  font-size: 0.8rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2500;
  display: none;
}

.overlay.active {
  display: block;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  font-family: 'Courier New', monospace;
}

.toast.success {
  border-color: var(--white);
}

.toast.error {
  border-color: var(--gray-light);
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--gray);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover {
  border-color: var(--white);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.drop-icon {
  font-size: 1.5rem;
  color: var(--gray-light);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.drop-text {
  color: var(--gray-light);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.drop-subtext {
  color: var(--gray);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Responsive */
@media (max-width: 768px) {
  .bottom-actions {
    bottom: 2rem;
    max-width: 90%;
  }
  
  .actions-row {
    gap: 0.5rem;
  }
  
  .btn {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }
  
  .btn-count {
    font-size: 0.65rem;
  }
  
  .chat-container {
    padding-bottom: 4rem; /* Extra padding for mobile */
    min-height: 100dvh;
  }
  
  .chat-header {
    padding: 1rem;
    position: sticky;
    top: 2.5rem; /* Account for testing banner */
  }
  
  .messages-container {
    padding: 1rem;
    padding-bottom: 2rem; /* Extra padding at bottom */
  }
  
  .input-area {
    padding-bottom: 2rem; /* Extra padding for mobile keyboard */
  }
  
  .quick-actions-sidebar {
    width: 140px;
  }
  
  .quick-action-btn {
    padding: 0.8rem 0.5rem;
  }
  
  .quick-action-label {
    font-size: 0.75rem;
  }
  
  .landing {
    padding-bottom: 6rem; /* Extra padding for mobile */
  }
  
  .bottom-actions {
    padding-bottom: 2rem; /* Extra padding for mobile */
  }
  
  .quick-action-desc {
    font-size: 0.65rem;
  }
  
  .input-area {
    padding: 1rem;
  }
  
  .message {
    max-width: 85%;
  }
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
