:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass: rgba(255, 255, 255, 0.95);
    --user-bg: #4f46e5;
    --bot-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --danger: #ef4444;
}

* { box-sizing: border-box; transition: all 0.25s ease; }

body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background: var(--bg-gradient);
    margin: 0; display: flex; align-items: center; justify-content: center; 
    height: 100vh; overflow: hidden; 
}

#landing-page {
    position: absolute; width: 100%; height: 100%; z-index: 100;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-gradient); color: white; text-align: center; padding: 20px;
}

.hero-content { max-width: 800px; animation: slideUp 0.6s ease; }
.hero-content h1 { font-size: 3.5rem; margin: 0; font-weight: 800; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.feature-card { 
    background: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 20px; 
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-card i { margin-bottom: 10px; display: block; }
.feature-card h3 { margin: 10px 0; font-size: 1rem; }
.feature-card p { font-size: 0.85rem; opacity: 0.8; margin: 0; }

.start-btn { 
    background: white; color: #764ba2; border: none; padding: 18px 45px; 
    border-radius: 40px; font-weight: 700; font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.start-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.app-container {
    width: 95%; max-width: 1150px; height: 85vh;
    background: var(--glass); backdrop-filter: blur(15px);
    border-radius: 28px; display: none; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0; transform: scale(0.96);
}

.sidebar { 
    width: 320px; background: rgba(249, 250, 251, 0.5); 
    border-right: 1px solid rgba(0,0,0,0.05); padding: 25px; 
    display: flex; flex-direction: column; 
}
.sidebar h2 { margin: 0 0 20px 0; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.inventory-scroll { flex: 1; overflow-y: auto; }

.item-card { 
    background: white; padding: 12px; border-radius: 14px; margin-bottom: 10px; 
    display: flex; align-items: center; border-left: 4px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.chat-section { flex: 1; display: flex; flex-direction: column; background: #f9fafb; position: relative; }
#chat-box { flex: 1; padding: 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }

.msg-row { display: flex; gap: 12px; align-items: flex-end; max-width: 85%; animation: slideIn 0.3s ease; }
.user-row { align-self: flex-end; flex-direction: row-reverse; }
.avatar-circle { 
    width: 38px; height: 38px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    background: white; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
    font-size: 1.2rem;
}
.bubble { padding: 12px 18px; border-radius: 20px; font-size: 0.95rem; line-height: 1.5; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.user-row .bubble { background: var(--user-bg); color: white; border-bottom-right-radius: 4px; }
.bot-row .bubble { background: var(--bot-bg); border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; color: var(--text-main); }

#quick-actions { display: none; flex-wrap: wrap; gap: 8px; padding: 15px 25px; background: white; border-top: 1px solid #eee; justify-content: center; }
.action-btn { padding: 8px 16px; border-radius: 20px; border: 2px solid var(--primary); background: white; color: var(--primary); cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.action-btn:hover { background: var(--primary); color: white; }

.input-container { padding: 20px; background: white; border-top: 1px solid #eee; display: flex; gap: 12px; }
input { flex: 1; padding: 12px 18px; border: 1px solid #e5e7eb; border-radius: 12px; outline: none; }
input:focus { border-color: var(--primary); }
button#send-btn { background: var(--primary); color: white; border: none; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; }

.qty-badge { margin-left: auto; padding: 2px 10px; border-radius: 10px; font-weight: 800; font-size: 0.8rem; background: #f3f4f6; }
.qty-badge.low { background: #fee2e2; color: #b91c1c; animation: pulse 2s infinite; }

.reset-btn { margin-top: 20px; background: none; border: 1px solid #ddd; color: var(--text-muted); padding: 8px; border-radius: 8px; cursor: pointer; font-size: 0.75rem; width: 100%; }
.reset-btn:hover { background: #fee2e2; color: var(--danger); border-color: var(--danger); }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
