/* Live Support Widget Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --ls-primary: #00e5a0;
    --ls-primary-dark: #00b87a;
    --ls-bg: #0d0d1a;
    --ls-bg-light: #1a1a2e;
    --ls-bg-dark: #050510;
    --ls-text: #e8e8f0;
    --ls-text-muted: #666;
    --ls-border: rgba(0, 229, 160, 0.15);
    --ls-shadow: 0 16px 56px rgba(0, 0, 0, 0.6);
}

.ls-widget-container {
    position: fixed;
    z-index: 10000;
    background: var(--ls-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ls-border);
    box-shadow: var(--ls-shadow);
    font-family: 'Outfit', sans-serif;
    transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease, right 0.3s ease;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.ls-minimized {
    position: fixed;
    z-index: 9999;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 229, 160, 0.25);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: var(--ls-text);
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: bottom 0.3s ease, right 0.3s ease;
}

.ls-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00e5a0;
    display: inline-block;
}

.ls-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--ls-bg-dark);
    flex-shrink: 0;
    cursor: grab;
}

.ls-video-container:active {
    cursor: grabbing;
}

.ls-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ls-bg-dark);
    z-index: 1;
}

.ls-badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 61, 61, 0.88);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    z-index: 2;
}

.ls-viewers {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 10px;
    color: #aaa;
    z-index: 2;
}

.ls-unmute-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.ls-video-controls {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 4;
}

.ls-ctrl-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ls-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ls-agent-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    padding: 3px 8px;
}

.ls-agent-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: #051a0e;
}

.ls-agent-name {
    font-size: 11px;
    font-weight: 600;
    color: #f1f5f9;
}

.ls-action-bar {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #050510;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ls-chat-btn {
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-primary-dark));
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    color: #05150e;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.ls-chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ls-chat-header {
    padding: 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ls-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-message {
    display: flex;
    flex-direction: column;
}

.ls-msg-me {
    align-items: flex-end;
}

.ls-msg-other {
    align-items: flex-start;
}

.ls-msg-info {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 1px;
    padding: 0 2px;
}

.ls-msg-bubble {
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 88%;
    color: #ddd;
    border-radius: 12px;
}

.ls-msg-me .ls-msg-bubble {
    background: rgba(124, 111, 255, 0.1);
    border: 1px solid rgba(124, 111, 255, 0.18);
    border-radius: 12px 12px 3px 12px;
}

.ls-msg-agent .ls-msg-bubble {
    background: rgba(0, 229, 160, 0.08);
    border: 1px solid rgba(0, 229, 160, 0.14);
    border-radius: 12px 12px 12px 3px;
}

.ls-msg-visitor .ls-msg-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px 12px 12px 3px;
}

.ls-suggestions {
    padding: 3px 12px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
}

.ls-suggestion-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 10px;
    color: #666;
    cursor: pointer;
}

.ls-suggestion-tag:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ls-chat-input-area {
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.ls-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px 12px;
    color: #ddd;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
}

.ls-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-primary-dark));
    color: #05150e;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Name Form */
.ls-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}

.ls-modal {
    background: #1a1a2e;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 160, 0.2);
    padding: 40px 36px;
    width: 360px;
    text-align: center;
}

.ls-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.ls-modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    outline: none;
    text-align: center;
    margin-bottom: 14px;
}

.ls-modal-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--ls-primary), var(--ls-primary-dark));
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #05150e;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}