/* =======================================================
   PREMIUM GLASSMORPHISM FLOATING CHAT WIDGET STYLES (2026)
   ======================================================= */

/* Widget Launcher Button */
.vj-chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(255, 111, 0, 0.4), var(--shadow-glow);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    border: 1px solid var(--glass-border-highlight);
}

.vj-chat-launcher:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(255, 111, 0, 0.5), 0 0 30px rgba(255, 179, 0, 0.4);
}

.vj-chat-launcher i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.vj-chat-launcher.active i {
    transform: rotate(90deg);
}

/* Pulse Animation for Launcher */
.vj-chat-launcher::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    opacity: 0;
    pointer-events: none;
    animation: vj-pulse 2.2s infinite;
}

@keyframes vj-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Chat Container Panel */
.vj-chat-container {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 420px;
    height: 620px;
    max-height: calc(100vh - 140px);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
}

.vj-chat-container.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Header */
.vj-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vj-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vj-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border-highlight);
}

.vj-chat-avatar i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.vj-chat-header-text {
    text-align: left;
}

.vj-chat-header-text h3 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.vj-chat-header-text span {
    font-size: 0.72rem;
    color: #4caf50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vj-chat-header-text span i {
    font-size: 0.45rem;
}

.vj-chat-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition-fast);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vj-chat-close:hover {
    color: var(--accent-electric);
    background: rgba(255, 255, 255, 0.05);
}

/* Body / Views Wrapper */
.vj-chat-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.vj-chat-view {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.vj-chat-view.hidden {
    display: none !important;
}

/* Form Styles */
.vj-chat-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.vj-chat-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vj-chat-form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
}

.vj-chat-input-wrapper {
    position: relative;
    width: 100%;
}

.vj-chat-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: 2;
}

.vj-chat-input-wrapper input,
.vj-chat-input-wrapper select {
    padding-left: 40px !important;
}

.vj-chat-form input,
.vj-chat-form select,
.vj-chat-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
}

.vj-chat-form select option {
    background: var(--bg-base);
    color: var(--text-primary);
}

.vj-chat-form input:focus,
.vj-chat-form select:focus,
.vj-chat-form textarea:focus {
    outline: none;
    border-color: var(--glass-border-highlight);
    background: var(--input-bg-focus);
}

.vj-chat-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-slow);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.2);
}

.vj-chat-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.3);
}

.vj-chat-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Navigation Links inside forms */
.vj-chat-footer-link {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-decoration: none;
    align-self: center;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.vj-chat-footer-link:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* Resume Form Specifics */
.vj-chat-resume-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

.vj-chat-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

/* Chat Messages Layout */
.vj-chat-messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.08);
}

.vj-chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.vj-chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-electric));
    color: white;
    border-bottom-right-radius: 4px;
}

.vj-chat-msg.pandit {
    align-self: flex-start;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
}

.vj-chat-msg-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    align-self: flex-end;
    margin-top: 3px;
}

.vj-chat-msg.pandit .vj-chat-msg-time {
    color: var(--text-secondary);
}

/* Chat Message Input Footer */
.vj-chat-footer {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.vj-chat-footer input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.vj-chat-footer input:focus {
    outline: none;
    border-color: var(--glass-border-highlight);
    background: var(--input-bg-focus);
}

.vj-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.vj-chat-send-btn:hover {
    transform: scale(1.08);
}

/* Mobile Screens (Responsiveness Overrides) */
@media (max-width: 480px) {
    .vj-chat-container {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    .vj-chat-launcher {
        bottom: 20px;
        right: 20px;
    }
    
    .vj-chat-launcher.panel-open {
        display: none; /* Hide button when full screen is open */
    }
}
