/* chatbot/assets/chat.css */
/* Modern Floating AI Chatbot Widget — FastSite365 Dark Cyber/Emerald Theme */

.doc-chat-widget {
    --doc-primary: #00E5FF;
    --doc-primary-hover: #10B981;
    --doc-primary-glow: rgba(0, 229, 255, 0.35);
    --doc-accent: #10B981;
    --doc-accent-glow: rgba(16, 185, 129, 0.25);
    --doc-gold: #F59E0B;
    --doc-bg: #0B1120;
    --doc-bg-surface: #111A2E;
    --doc-panel: #0D1627;
    --doc-panel-border: rgba(255, 255, 255, 0.12);
    --doc-text: #EAF0FB;
    --doc-text-muted: #9AA7C2;
    --doc-dim: #68759A;
    --doc-line: rgba(255, 255, 255, 0.08);
    --doc-line-strong: rgba(255, 255, 255, 0.16);
    --doc-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.1);

    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Floating Launcher Button */
.doc-chat-launcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, #00E5FF 0%, #10B981 100%);
    color: #04141A;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 0 10px 30px var(--doc-primary-glow), 0 4px 14px rgba(0, 229, 255, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    will-change: transform, box-shadow;
    animation: launcherPulseAura 3.5s infinite, launcherNudge 6s ease-in-out infinite;
}

.doc-chat-launcher::before {
    content: "";
    position: absolute;
 inset: -5px;
 border-radius: 999px;
 border: 2px solid rgba(0, 229, 255, 0.4);
 opacity: 0;
 animation: launcherRadarWave 3.5s infinite;
}

@keyframes launcherPulseAura {
 0%, 100% { box-shadow: 0 10px 30px var(--doc-primary-glow), 0 4px 14px rgba(0, 229, 255, 0.35); }
 50% { box-shadow: 0 14px 40px rgba(0, 229, 255, 0.6), 0 6px 20px rgba(16, 185, 129, 0.45); }
}

@keyframes launcherRadarWave {
 0% { transform: scale(0.95); opacity: 0.8; }
 50% { transform: scale(1.15); opacity: 0; }
 100% { transform: scale(1.25); opacity: 0; }
}

@keyframes launcherNudge {
 0%, 100% { transform: translateY(0); }
 50% { transform: translateY(-3px); }
}

.doc-chat-launcher:hover {
 transform: translateY(-3px) scale(1.03);
 box-shadow: 0 16px 45px rgba(0, 229, 255, 0.6);
}

.doc-chat-launcher svg {
 width: 20px;
 height: 20px;
 fill: none;
 stroke: currentColor;
 stroke-width: 2.2;
 stroke-linecap: round;
 stroke-linejoin: round;
}

/* Chat Box Window */
.doc-chat-box {
 position: absolute;
 bottom: 68px;
 right: 0;
 width: 390px;
 height: 580px;
 max-height: calc(100vh - 110px);
 background: var(--doc-panel);
 border: 1px solid var(--doc-panel-border);
 border-radius: 22px;
 box-shadow: var(--doc-shadow);
 display: flex;
 flex-direction: column;
 overflow: hidden;
 opacity: 0;
 pointer-events: none;
 transform: translateY(20px) scale(0.95);
 transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
 backdrop-filter: blur(16px);
}

.doc-chat-box.open {
 opacity: 1;
 pointer-events: auto;
 transform: translateY(0) scale(1);
}

/* Header */
.doc-chat-header {
 padding: 16px 20px;
 background: var(--doc-bg-surface);
 border-bottom: 1px solid var(--doc-panel-border);
 display: flex;
 align-items: center;
 justify-content: space-between;
}

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

.doc-chat-avatar {
 width: 36px;
 height: 36px;
 border-radius: 10px;
 background: linear-gradient(120deg, #00E5FF, #10B981);
 color: #04141A;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 800;
 font-size: 1.05rem;
 font-family: 'Outfit', sans-serif;
 box-shadow: 0 4px 14px var(--doc-primary-glow);
}

.doc-chat-title-group h4 {
 font-size: 0.95rem;
 color: var(--doc-text);
 font-weight: 700;
 font-family: 'Outfit', sans-serif;
 line-height: 1.2;
}

.doc-chat-title-group .doc-chat-status {
 font-size: 0.72rem;
 color: var(--doc-accent);
 display: flex;
 align-items: center;
 gap: 5px;
 font-weight: 600;
}

.doc-chat-status-dot {
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: var(--doc-accent);
 display: inline-block;
 box-shadow: 0 0 8px var(--doc-accent);
 animation: docPulse 2s infinite;
}

@keyframes docPulse {
 0% { transform: scale(0.95); opacity: 0.8; }
 50% { transform: scale(1.3); opacity: 1; }
 100% { transform: scale(0.95); opacity: 0.8; }
}

.doc-chat-actions {
 display: flex;
 align-items: center;
 gap: 8px;
}

.doc-chat-btn-icon {
 background: none;
 border: none;
 color: var(--doc-text-muted);
 cursor: pointer;
 padding: 6px;
 border-radius: 8px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.2s ease;
}

.doc-chat-btn-icon:hover {
 color: var(--doc-text);
 background: var(--doc-line);
}

/* Reference Badge */
.doc-chat-ref-badge {
 padding: 7px 16px;
 background: rgba(0, 229, 255, 0.08);
 border-bottom: 1px solid rgba(0, 229, 255, 0.18);
 font-size: 0.75rem;
 color: var(--doc-primary);
 display: flex;
 align-items: center;
 justify-content: space-between;
 font-weight: 600;
}

.doc-chat-ref-badge button {
 background: rgba(0, 229, 255, 0.15);
 border: 1px solid rgba(0, 229, 255, 0.3);
 color: var(--doc-primary);
 border-radius: 6px;
 padding: 2px 8px;
 cursor: pointer;
 font-size: 0.7rem;
 font-weight: 700;
 transition: all .2s;
}

.doc-chat-ref-badge button:hover {
 background: var(--doc-primary);
 color: #04141A;
}

/* Body / Message Area */
.doc-chat-body {
 flex: 1;
 overflow-y: auto;
 padding: 18px;
 display: flex;
 flex-direction: column;
 gap: 14px;
 background: var(--doc-bg);
}

/* Registration Form View */
.doc-chat-auth-view {
 display: flex;
 flex-direction: column;
 justify-content: center;
 height: 100%;
 padding: 10px;
 text-align: center;
}

.doc-chat-auth-view h3 {
 font-size: 1.25rem;
 margin-bottom: 8px;
 color: var(--doc-text);
 font-family: 'Outfit', sans-serif;
}

.doc-chat-auth-view p {
 font-size: 0.86rem;
 color: var(--doc-text-muted);
 margin-bottom: 22px;
}

.doc-chat-form-group {
 margin-bottom: 14px;
 text-align: left;
}

.doc-chat-form-group label {
 display: block;
 font-size: 0.75rem;
 font-weight: 700;
 color: var(--doc-text);
 margin-bottom: 6px;
 text-transform: uppercase;
 letter-spacing: 0.05em;
}

.doc-chat-form-group input {
 width: 100%;
 padding: 11px 14px;
 border-radius: 10px;
 border: 1px solid var(--doc-line-strong);
 background: var(--doc-bg-surface);
 color: var(--doc-text);
 font-size: 0.88rem;
 outline: none;
 transition: all 0.2s ease;
}

.doc-chat-form-group input:focus {
 border-color: var(--doc-primary);
 box-shadow: 0 0 0 3px var(--doc-primary-glow);
}

.doc-chat-btn-submit {
 width: 100%;
 padding: 13px;
 margin-top: 8px;
 border-radius: 999px;
 background: linear-gradient(120deg, #00E5FF 0%, #10B981 100%);
 color: #04141A;
 border: none;
 font-weight: 700;
 font-size: 0.9rem;
 cursor: pointer;
 transition: all 0.2s ease;
 box-shadow: 0 6px 20px var(--doc-primary-glow);
}

.doc-chat-btn-submit:hover {
 transform: translateY(-2px);
 box-shadow: 0 8px 25px rgba(0, 229, 255, 0.55);
}

.doc-chat-resume-link {
 margin-top: 16px;
 font-size: 0.8rem;
 color: var(--doc-text-muted);
}

.doc-chat-resume-link a {
 color: var(--doc-primary);
 text-decoration: underline;
 cursor: pointer;
 font-weight: 600;
}

/* Chat Bubbles */
.doc-chat-msg {
 display: flex;
 flex-direction: column;
 max-width: 86%;
 animation: docMsgIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.doc-chat-msg.user {
 align-self: flex-end;
}

.doc-chat-msg.assistant {
 align-self: flex-start;
}

.doc-chat-bubble {
 padding: 12px 16px;
 border-radius: 16px;
 font-size: 0.88rem;
 line-height: 1.55;
 word-break: break-word;
}

.doc-chat-msg.user .doc-chat-bubble {
 background: linear-gradient(120deg, #00E5FF 0%, #10B981 100%);
 color: #04141A;
 font-weight: 500;
 border-bottom-right-radius: 4px;
}

.doc-chat-msg.assistant .doc-chat-bubble {
 background: var(--doc-bg-surface);
 color: var(--doc-text);
 border: 1px solid var(--doc-panel-border);
 border-bottom-left-radius: 4px;
 box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.doc-chat-time {
 font-size: 0.68rem;
 color: var(--doc-dim);
 margin-top: 4px;
 align-self: flex-end;
}

.doc-chat-msg.assistant .doc-chat-time {
 align-self: flex-start;
}

/* Typing Indicator */
.doc-chat-typing {
 display: none;
 align-self: flex-start;
 padding: 10px 16px;
 background: var(--doc-bg-surface);
 border: 1px solid var(--doc-panel-border);
 border-radius: 16px;
 border-bottom-left-radius: 4px;
 gap: 4px;
}

.doc-chat-typing.active {
 display: flex;
 align-items: center;
}

.doc-chat-typing-dot {
 width: 6px;
 height: 6px;
 border-radius: 50%;
 background: var(--doc-primary);
 animation: docTyping 1.4s infinite ease-in-out;
}

.doc-chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.doc-chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes docTyping {
 0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
 40% { transform: scale(1.2); opacity: 1; }
}

/* Footer / Input */
.doc-chat-footer {
 padding: 12px 16px;
 background: var(--doc-bg-surface);
 border-top: 1px solid var(--doc-panel-border);
 display: flex;
 align-items: center;
 gap: 10px;
}

.doc-chat-input {
 flex: 1;
 padding: 11px 16px;
 border-radius: 999px;
 border: 1px solid var(--doc-line-strong);
 background: var(--doc-bg);
 color: var(--doc-text);
 font-size: 0.88rem;
 outline: none;
 transition: all 0.2s ease;
}

.doc-chat-input:focus {
 border-color: var(--doc-primary);
 box-shadow: 0 0 0 3px var(--doc-primary-glow);
}

.doc-chat-send-btn {
 width: 38px;
 height: 38px;
 border-radius: 50%;
 background: linear-gradient(120deg, #00E5FF 0%, #10B981 100%);
 color: #04141A;
 border: none;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.2s ease;
 flex-shrink: 0;
}

.doc-chat-send-btn:hover {
 transform: scale(1.06);
 box-shadow: 0 4px 14px var(--doc-primary-glow);
}

.doc-chat-send-btn svg {
 width: 17px;
 height: 17px;
 fill: none;
 stroke: currentColor;
 stroke-width: 2.2;
}

/* Mobile full-screen adaptation */
@media (max-width: 480px) {
 .doc-chat-widget {
 right: 15px;
 bottom: 15px;
 }
 .doc-chat-box {
 position: fixed;
 inset: 0;
 width: 100%;
 height: 100%;
 max-height: 100%;
 border-radius: 0;
 bottom: 0;
 right: 0;
 }
}
