/**
 * Twilio MCP UI Kit — Interactive Styles (Dark Theme)
 */

/* ─── Clickable Rows ──────────────────────────────────── */
.clickable-row { cursor: pointer; transition: background 0.1s; }
.clickable-row:hover { background: #1e2333 !important; }

/* ─── Modal ───────────────────────────────────────────── */
.mcp-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex;
  align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(2px);
}
.mcp-modal {
  background: #1a1d27; border: 1px solid #2a2d3a; border-radius: 10px;
  width: 90%; max-width: 360px; box-shadow: 0 8px 30px rgba(0,0,0,0.4); overflow: hidden;
}
.mcp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #2a2d3a;
}
.mcp-modal-title { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.mcp-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #94a3b8; padding: 0 4px; }
.mcp-modal-close:hover { color: #e2e8f0; }
.mcp-modal-body { padding: 12px 14px; }

/* ─── Toast ───────────────────────────────────────────── */
.mcp-toast {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 6px 16px; border-radius: 8px; font-size: 11px; font-weight: 500;
  z-index: 2000; opacity: 0; transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); pointer-events: none;
}
.mcp-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mcp-toast-success { background: #16a34a; color: white; }
.mcp-toast-error { background: #dc2626; color: white; }
.mcp-toast-info { background: #1e293b; color: white; }

/* ─── Inbox Split ─────────────────────────────────────── */
.inbox-layout { display: grid; grid-template-columns: 280px 1fr; height: 100vh; overflow: hidden; }
.inbox-sidebar { background: #151822; border-right: 1px solid #2a2d3a; overflow-y: auto; }
.inbox-main { overflow-y: auto; padding: 16px; }
.inbox-item {
  padding: 10px 14px; border-bottom: 1px solid #1e293b; cursor: pointer;
  transition: background 0.1s;
}
.inbox-item:hover { background: #1a1d27; }
.inbox-item-active { background: #1e2333; border-left: 3px solid #6366f1; }
.inbox-item-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.inbox-item-preview { font-size: 11px; color: #64748b; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.inbox-item-time { font-size: 10px; color: #64748b; }
.inbox-channel-badge {
  padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 600;
  text-transform: uppercase;
}
.badge-sms { background: rgba(99,102,241,0.15); color: #818cf8; }
.badge-whatsapp { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-chat { background: rgba(59,130,246,0.15); color: #60a5fa; }
