/**
 * ALEXA Voice Assistant Widget CSS
 * 100% identical to the original React/Tailwind project
 * 
 * Original: VoiceOrb.tsx, ChatDrawer.tsx with Tailwind CSS
 * Converted to pure CSS maintaining exact same look and feel
 * 
 * @author Israa M Shamkh
 */

/* ========================================
   CSS Variables (matching Tailwind theme)
======================================== */
:root {
    /* Light Mode Colors */
    --alexa-bg-white: #ffffff;
    --alexa-bg-slate-50: #f8fafc;
    --alexa-bg-slate-100: #f1f5f9;
    --alexa-bg-slate-200: #e2e8f0;
    --alexa-text-slate-400: #94a3b8;
    --alexa-text-slate-500: #64748b;
    --alexa-text-slate-700: #334155;
    --alexa-text-slate-800: #1e293b;
    --alexa-text-slate-900: #0f172a;
    --alexa-border-slate-200: #e2e8f0;
    --alexa-border-slate-700: #334155;
    
    /* Accent Colors (matching Tailwind) */
    --alexa-blue-500: #3b82f6;
    --alexa-blue-600: #2563eb;
    --alexa-cyan-400: #22d3ee;
    --alexa-cyan-500: #06b6d4;
    --alexa-cyan-600: #0891b2;
    --alexa-pink-500: #ec4899;
    --alexa-indigo-500: #6366f1;
    --alexa-green-500: #22c55e;
    --alexa-red-400: #f87171;
    --alexa-red-500: #ef4444;
    
    /* Shadows */
    --alexa-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --alexa-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --alexa-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --alexa-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --alexa-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ========================================
   Widget Container
======================================== */
.alexa-widget {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    direction: rtl;
}

.alexa-widget * {
    box-sizing: border-box;
}

/* ========================================
   Voice Orb Wrapper (matching VoiceOrb.tsx)
======================================== */
.alexa-orb-wrapper {
    position: absolute;
    pointer-events: auto;
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.3s ease;
    touch-action: none;
}

.alexa-orb-wrapper:hover {
    transform: scale(1.05);
}

.alexa-orb-wrapper:active,
.alexa-orb-wrapper.dragging {
    cursor: grabbing;
}

.alexa-orb-wrapper.dragging .alexa-orb-controls {
    opacity: 0.5;
}

.alexa-orb-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

/* Canvas (160x160 matching w-[160px] h-[160px]) */
.alexa-orb-canvas {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));
}

/* Orb Controls (matching -bottom-1 left-1/2 -translate-x-1/2) */
.alexa-orb-controls {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alexa-orb-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Mute Button (matching p-2 rounded-full shadow-lg border) */
.alexa-mute-btn {
    pointer-events: auto;
    padding: 8px;
    border-radius: 9999px;
    box-shadow: var(--alexa-shadow-lg);
    border: 1px solid var(--alexa-border-slate-200);
    background: rgba(255, 255, 255, 0.9);
    color: var(--alexa-text-slate-700);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alexa-mute-btn:hover {
    background: #fff;
}

.alexa-mute-btn.muted {
    background: var(--alexa-red-500);
    color: #fff;
    border-color: var(--alexa-red-400);
}

.alexa-mute-btn svg {
    width: 16px;
    height: 16px;
}

/* Orb Label (matching text-xs font-bold px-3 py-1 rounded-full) */
.alexa-orb-label {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: var(--alexa-shadow-sm);
    backdrop-filter: blur(12px);
    border: 1px solid var(--alexa-border-slate-200);
    background: rgba(255, 255, 255, 0.9);
    color: var(--alexa-text-slate-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.alexa-orb-label.error {
    background: var(--alexa-red-500);
    color: #fff;
    border-color: var(--alexa-red-400);
}

.alexa-reconnect-btn {
    pointer-events: auto;
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.alexa-reconnect-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.alexa-reconnect-btn svg {
    animation: spin-slow 2s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tap Hint (matching text-[9px] text-slate-400) */
.alexa-tap-hint {
    font-size: 9px;
    color: var(--alexa-text-slate-400);
}

/* ========================================
   Chat Drawer (matching ChatDrawer.tsx)
======================================== */
.alexa-drawer {
    position: fixed;
    pointer-events: auto;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--alexa-shadow-2xl);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--alexa-bg-white);
    border-left: 1px solid var(--alexa-border-slate-200);
}

.alexa-drawer.open {
    transform: translateX(0);
}

/* Drawer Header (matching px-6 py-5 border-b backdrop-blur) */
.alexa-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--alexa-bg-slate-100);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.alexa-header-info {
    display: flex;
    flex-direction: column;
}

.alexa-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--alexa-text-slate-800);
    margin: 0;
}

.alexa-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.alexa-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--alexa-text-slate-400);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.alexa-status-dot.connected {
    background: var(--alexa-green-500);
    animation: pulse 2s ease-in-out infinite;
}

.alexa-status-dot.error {
    background: var(--alexa-red-500);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.alexa-status-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--alexa-text-slate-500);
}

.alexa-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.alexa-header-btn {
    padding: 8px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: var(--alexa-text-slate-400);
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alexa-header-btn:hover {
    color: var(--alexa-blue-600);
}

.alexa-header-btn.muted {
    color: var(--alexa-red-500);
}

.alexa-header-btn.muted:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Error Bar (matching bg-red-500/10 border-b border-red-500/20) */
.alexa-error-bar {
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alexa-error-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--alexa-red-500);
    font-size: 12px;
    font-weight: 500;
}

.alexa-error-retry {
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--alexa-red-500);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alexa-error-retry:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ========================================
   Messages Area (matching flex-1 overflow-y-auto p-5 space-y-6)
======================================== */
.alexa-messages {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--alexa-bg-slate-50);
}

/* Hide scrollbar but keep functionality */
.alexa-messages::-webkit-scrollbar {
    display: none;
}

.alexa-messages {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Drag Overlay (matching absolute inset-0 z-50) */
.alexa-drag-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.alexa-drag-overlay.active {
    display: flex;
}

.alexa-drag-content {
    padding: 32px;
    border: 4px dashed var(--alexa-blue-500);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--alexa-blue-600);
}

.alexa-drag-content svg {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.alexa-drag-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.alexa-drag-content p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Empty State (matching h-full flex flex-col items-center justify-center) */
.alexa-empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
    padding: 40px 0;
}

.alexa-empty-icon {
    padding: 24px;
    border-radius: 9999px;
    background: var(--alexa-bg-slate-200);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.alexa-empty-icon svg {
    color: var(--alexa-blue-600);
}

.alexa-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--alexa-text-slate-800);
    margin: 0;
}

.alexa-empty-subtitle {
    font-size: 14px;
    color: var(--alexa-text-slate-500);
    padding: 0 40px;
    margin: 0;
}

/* Messages List */
.alexa-messages-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================
   Message Bubbles (matching ChatDrawer.tsx)
======================================== */
.alexa-message {
    display: flex;
    flex-direction: column;
}

.alexa-message-user {
    align-items: flex-end;
}

.alexa-message-model,
.alexa-message-system {
    align-items: flex-start;
}

/* Bubble (matching max-w-[95%] rounded-2xl px-5 py-3.5 text-sm) */
.alexa-bubble {
    max-width: 95%;
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alexa-message-user .alexa-bubble {
    background: var(--alexa-blue-600);
    color: #fff;
}

.alexa-message-model .alexa-bubble {
    background: var(--alexa-bg-white);
    color: var(--alexa-text-slate-700);
    border: 1px solid var(--alexa-border-slate-200);
    box-shadow: var(--alexa-shadow-sm);
}

.alexa-message-system .alexa-bubble {
    background: var(--alexa-bg-slate-100);
    color: var(--alexa-text-slate-500);
    font-size: 12px;
    font-style: italic;
}

/* Message Image */
.alexa-message-image {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Message Text */
.alexa-message-text {
    word-break: break-word;
}

.alexa-message-text p {
    margin: 0 0 8px 0;
}

.alexa-message-text p:last-child {
    margin-bottom: 0;
}

.alexa-message-text ul,
.alexa-message-text ol {
    margin: 0 0 8px 16px;
    padding: 0;
}

.alexa-message-text li {
    padding-left: 4px;
    margin-bottom: 4px;
}

.alexa-message-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.9;
    font-weight: 600;
}

.alexa-message-text a:hover {
    opacity: 1;
}

/* Inline Code (matching font-mono text-[11px] px-1.5 py-0.5 rounded) */
.alexa-inline-code {
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}

.alexa-message-user .alexa-inline-code {
    background: rgba(30, 64, 175, 0.5);
    color: #fff;
}

.alexa-message-model .alexa-inline-code {
    background: var(--alexa-bg-slate-200);
    color: var(--alexa-text-slate-800);
}

/* ========================================
   Code Block (matching SyntaxHighlighter style)
======================================== */
.alexa-code-block {
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: var(--alexa-shadow-md);
    direction: ltr;
    text-align: left;
}

.alexa-code-header {
    background: #1e293b;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--alexa-border-slate-700);
}

.alexa-code-lang {
    font-size: 10px;
    font-family: monospace;
    text-transform: uppercase;
    color: var(--alexa-cyan-400);
    font-weight: 700;
}

.alexa-code-header svg {
    color: var(--alexa-text-slate-400);
}

.alexa-code-block pre {
    margin: 0;
    padding: 16px;
    background: #0f172a;
    overflow-x: auto;
}

.alexa-code-block code {
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #e2e8f0;
}

/* Syntax Highlighting (matching vscDarkPlus) */
.syntax-keyword {
    color: #c792ea;
}

.syntax-string {
    color: #c3e88d;
}

.syntax-number {
    color: #f78c6c;
}

.syntax-comment {
    color: #546e7a;
    font-style: italic;
}

.syntax-function {
    color: #82aaff;
}

/* ========================================
   Grounding Sources (matching groundingChunks rendering)
======================================== */
.alexa-grounding {
    margin-top: 8px;
    max-width: 85%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alexa-message-user .alexa-grounding {
    justify-content: flex-end;
}

.alexa-message-model .alexa-grounding {
    justify-content: flex-start;
}

/* Source Link (matching px-3 py-1.5 rounded-lg text-xs font-medium) */
.alexa-source-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    border: 1px solid var(--alexa-border-slate-200);
    background: var(--alexa-bg-white);
    color: var(--alexa-blue-600);
    box-shadow: var(--alexa-shadow-sm);
}

.alexa-source-link:hover {
    background: var(--alexa-bg-slate-50);
}

.alexa-source-link span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Input Area (matching p-4 border-t)
======================================== */
.alexa-input-area {
    padding: 16px;
    border-top: 1px solid var(--alexa-border-slate-200);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--alexa-bg-white);
}

/* Image Preview (matching relative w-20 h-20 rounded-lg) */
.alexa-image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--alexa-cyan-500);
    box-shadow: var(--alexa-shadow-lg);
}

.alexa-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alexa-remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px;
    background: var(--alexa-red-500);
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alexa-image-preview:hover .alexa-remove-image {
    opacity: 1;
}

/* Input Form (matching flex gap-2 items-center) */
.alexa-input-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.alexa-input-actions {
    display: flex;
    gap: 4px;
}

/* Action Button (matching p-2.5 rounded-full) */
.alexa-action-btn {
    padding: 10px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: var(--alexa-text-slate-400);
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alexa-action-btn:hover {
    color: var(--alexa-blue-600);
}

/* Text Input (matching flex-1 rounded-full px-5 py-2.5 text-sm) */
.alexa-text-input {
    flex: 1;
    border-radius: 9999px;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid var(--alexa-border-slate-200);
    background: var(--alexa-bg-slate-100);
    color: var(--alexa-text-slate-900);
    box-shadow: var(--alexa-shadow-sm);
    transition: all 0.2s ease;
    outline: none;
}

.alexa-text-input::placeholder {
    color: var(--alexa-text-slate-400);
}

.alexa-text-input:focus {
    border-color: var(--alexa-blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.alexa-text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Send Button (matching p-3 rounded-full) */
.alexa-send-btn {
    padding: 12px;
    border-radius: 9999px;
    background: var(--alexa-blue-600);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--alexa-shadow-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alexa-send-btn:hover:not(:disabled) {
    background: var(--alexa-blue-500);
}

.alexa-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.alexa-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer (matching text-[10px] opacity-60) */
.alexa-footer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.alexa-footer p {
    font-size: 10px;
    opacity: 0.6;
    font-weight: 500;
    color: var(--alexa-text-slate-500);
    margin: 0;
}

/* ========================================
   Dark Mode (matching isDarkMode theme)
======================================== */
.alexa-widget.dark-mode .alexa-drawer {
    background: #0f172a;
    border-left-color: var(--alexa-border-slate-700);
}

.alexa-widget.dark-mode .alexa-drawer-header {
    border-bottom-color: #1e293b;
    background: rgba(15, 23, 42, 0.95);
}

.alexa-widget.dark-mode .alexa-title {
    color: var(--alexa-bg-slate-100);
}

.alexa-widget.dark-mode .alexa-status-text {
    color: var(--alexa-text-slate-400);
}

.alexa-widget.dark-mode .alexa-header-btn:hover {
    color: var(--alexa-cyan-400);
}

.alexa-widget.dark-mode .alexa-messages {
    background: #0f172a;
}

.alexa-widget.dark-mode .alexa-drag-overlay {
    background: rgba(15, 23, 42, 0.95);
}

.alexa-widget.dark-mode .alexa-drag-content {
    border-color: var(--alexa-cyan-500);
    color: var(--alexa-cyan-500);
}

.alexa-widget.dark-mode .alexa-empty-icon {
    background: #1e293b;
}

.alexa-widget.dark-mode .alexa-empty-icon svg {
    color: var(--alexa-cyan-400);
}

.alexa-widget.dark-mode .alexa-empty-title {
    color: var(--alexa-bg-slate-100);
}

.alexa-widget.dark-mode .alexa-empty-subtitle {
    color: var(--alexa-text-slate-400);
}

.alexa-widget.dark-mode .alexa-message-model .alexa-bubble {
    background: #1e293b;
    color: var(--alexa-bg-slate-200);
    border-color: var(--alexa-border-slate-700);
}

.alexa-widget.dark-mode .alexa-message-model .alexa-inline-code {
    background: var(--alexa-border-slate-700);
    color: var(--alexa-cyan-400);
}

.alexa-widget.dark-mode .alexa-source-link {
    border-color: var(--alexa-border-slate-700);
    background: #1e293b;
    color: var(--alexa-cyan-400);
}

.alexa-widget.dark-mode .alexa-source-link:hover {
    background: var(--alexa-border-slate-700);
}

.alexa-widget.dark-mode .alexa-input-area {
    border-top-color: #1e293b;
    background: #0f172a;
}

.alexa-widget.dark-mode .alexa-text-input {
    background: #1e293b;
    border-color: var(--alexa-border-slate-700);
    color: #fff;
}

.alexa-widget.dark-mode .alexa-text-input::placeholder {
    color: var(--alexa-text-slate-500);
}

.alexa-widget.dark-mode .alexa-action-btn:hover {
    color: var(--alexa-cyan-400);
}

.alexa-widget.dark-mode .alexa-send-btn {
    background: var(--alexa-cyan-600);
}

.alexa-widget.dark-mode .alexa-send-btn:hover:not(:disabled) {
    background: var(--alexa-cyan-500);
}

.alexa-widget.dark-mode .alexa-orb-label {
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    border-color: var(--alexa-border-slate-700);
}

.alexa-widget.dark-mode .alexa-footer p {
    color: var(--alexa-text-slate-400);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .alexa-drawer {
        max-width: 100%;
    }
}

/* ========================================
   RTL Adjustments
======================================== */
.alexa-drawer {
    direction: rtl;
}

.alexa-message-text {
    text-align: right;
}

.alexa-code-block,
.alexa-code-block pre,
.alexa-code-block code {
    direction: ltr;
    text-align: left;
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alexa-message {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   Elementor & Theme Compatibility Fixes
======================================== */
/* Fix input fields in themes/page builders */
.alexa-widget .alexa-text-input {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.alexa-widget .alexa-input-form {
    pointer-events: auto !important;
}

.alexa-widget .alexa-input-area {
    pointer-events: auto !important;
}

.alexa-widget .alexa-send-btn,
.alexa-widget .alexa-action-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure drawer is interactive */
.alexa-drawer.open {
    pointer-events: auto !important;
}

.alexa-drawer.open * {
    pointer-events: auto !important;
}

/* Fix z-index conflicts */
.alexa-widget {
    z-index: 999999 !important;
}

.alexa-drawer {
    z-index: 999998 !important;
}

.alexa-orb-wrapper {
    z-index: 999997 !important;
}
