/* EZ Peptides - Research Concierge & Customer Assistant Styles */

:root {
    --ez-concierge-primary: #06b6d4;
    --ez-concierge-primary-hover: #0891b2;
    --ez-concierge-dark: #0a0f1a;
    --ez-concierge-surface: #111827;
    --ez-concierge-border: rgba(255, 255, 255, 0.1);
    --ez-concierge-text: #f3f4f6;
    --ez-concierge-muted: #9ca3af;
}

/* Floating Launcher */
.ez-assistant-launcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a, #0a0f1a);
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 15px rgba(6, 182, 212, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ez-assistant-launcher:hover {
    transform: translateY(-2px);
    border-color: var(--ez-concierge-primary);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 22px rgba(6, 182, 212, 0.35);
}

.ez-assistant-launcher .pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--ez-concierge-primary);
    border-radius: 50%;
    position: relative;
}

.ez-assistant-launcher .pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--ez-concierge-primary);
    animation: ezPulse 2s infinite;
}

@keyframes ezPulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Assistant Chat Modal */
.ez-assistant-modal {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 120px);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ez-assistant-modal.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.ez-assistant-header {
    background: linear-gradient(135deg, #0a0f1a, #111827);
    border-bottom: 1px solid var(--ez-concierge-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ez-assistant-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ez-assistant-avatar {
    width: 36px;
    height: 36px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ez-assistant-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.ez-assistant-header p {
    margin: 0;
    font-size: 11px;
    color: var(--ez-concierge-primary);
}

.ez-assistant-close {
    background: transparent;
    border: none;
    color: var(--ez-concierge-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.ez-assistant-close:hover {
    color: #fff;
}

/* Compliance Banner */
.ez-assistant-disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    padding: 8px 14px;
    font-size: 11px;
    color: #fcd34d;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

/* Messages Area */
.ez-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.ez-msg {
    max-width: 88%;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 14px;
    word-break: break-word;
}

.ez-msg-bot {
    align-self: flex-start;
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top-left-radius: 4px;
}

.ez-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    border-top-right-radius: 4px;
}

/* Quick Action Chips */
.ez-assistant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.ez-chip {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67e8f9;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ez-chip:hover {
    background: var(--ez-concierge-primary);
    color: #0a0f1a;
    font-weight: 600;
}

/* Input Area */
.ez-assistant-input-area {
    padding: 12px 14px;
    background: #0a0f1a;
    border-top: 1px solid var(--ez-concierge-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.ez-assistant-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.ez-assistant-input:focus {
    border-color: var(--ez-concierge-primary);
}

.ez-assistant-send {
    background: var(--ez-concierge-primary);
    border: none;
    color: #0a0f1a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background 0.2s, transform 0.1s;
}

.ez-assistant-send:hover {
    background: #22d3ee;
    transform: scale(1.05);
}

/* Timeline & Card components inside chat */
.ez-status-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
}

.ez-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ez-badge-pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.ez-badge-paid { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.ez-badge-shipped { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }

.ez-calc-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
}

.ez-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.ez-calc-row:last-child {
    border-bottom: none;
    font-weight: bold;
    color: var(--ez-concierge-primary);
}

/* Adjustments for Mobile */
@media (max-width: 480px) {
    .ez-assistant-modal {
        left: 12px;
        right: 12px;
        width: calc(100vw - 24px);
        bottom: 80px;
        height: 520px;
    }
    .ez-assistant-launcher {
        left: 16px;
        bottom: 16px;
        padding: 8px 14px;
        font-size: 13px;
    }
}
