/* Chat Widget Styles */
/* Form Labels */
.llc-field-group {
    margin-bottom: 16px;
    text-align: left;
}

.llc-field-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.llc-field-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.llc-field-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.llc-field-group input::placeholder {
    color: #adb5bd;
}

#llc-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Pre-chat Form Styles */
#llc-prechat-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(248, 249, 250, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.llc-prechat-content {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.llc-prechat-content h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.llc-prechat-content p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

#llc-prechat-name,
#llc-prechat-email {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#llc-prechat-name:focus,
#llc-prechat-email:focus {
    outline: none;
    border-color: #667eea;
}

.llc-start-chat-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.llc-start-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.llc-login-notice {
    margin-top: 15px;
    font-size: 13px;
}

.llc-login-notice a {
    color: #667eea;
    text-decoration: none;
}

/* Typing Indicator */
#llc-typing-indicator {
    padding: 10px 20px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.llc-typing-dots {
    animation: typingDots 1.5s infinite;
}

@keyframes typingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


#llc-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#llc-chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#llc-chat-container {
    display: none;
    width: 380px;
    height: 500px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#llc-chat-widget.open #llc-chat-container {
    display: flex;
}

#llc-chat-widget.open #llc-chat-toggle {
    display: none;
}

#llc-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#llc-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#llc-close-chat {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

#llc-close-chat:hover {
    background: rgba(255,255,255,0.3);
}

#llc-messages {
    flex: 1;
    min-height: 0;
    padding: 20px;
    overflow-y: auto;
    background: rgba(248, 249, 250, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.llc-welcome {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-size: 14px;
}

.llc-message {
    margin-bottom: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.llc-visitor {
    margin-left: auto;
}

.llc-visitor .llc-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.llc-agent .llc-message-content {
    background: white;
    color: #333;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.llc-message-content {
    padding: 12px 16px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.llc-message-time {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 4px;
    text-align: right;
}

.llc-visitor .llc-message-time {
    color: rgba(255,255,255,0.7);
}

#llc-chat-form {
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
}

#llc-message-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#llc-message-input:focus {
    border-color: #667eea;
}

#llc-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#llc-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Scrollbar styling */
#llc-messages::-webkit-scrollbar {
    width: 6px;
}

#llc-messages::-webkit-scrollbar-track {
    background: transparent;
}

#llc-messages::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 3px;
}
/* Pre-chat Form Fixes */
#llc-prechat-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(248, 249, 250, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.llc-prechat-content {
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.llc-prechat-content h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.llc-prechat-content p {
    color: #6c757d;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

#llc-prechat-name,
#llc-prechat-email {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

#llc-prechat-name:focus,
#llc-prechat-email:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.llc-start-chat-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.llc-start-chat-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.llc-start-chat-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.llc-login-notice {
    margin-top: 20px;
    font-size: 13px;
    color: #6c757d;
}

.llc-login-notice a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.llc-login-notice a:hover {
    text-decoration: underline;
}

/* Chat Interface */
#llc-chat-interface {
    flex: 1;
    display: none; /* Hidden by default */
    flex-direction: column;
    min-height: 0;
}

/* Show interface when active */
#llc-chat-interface.active {
    display: flex;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #llc-chat-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
    }
    
    #llc-chat-widget {
        bottom: 10px;
        right: 10px;
    }
}