/* Jobli floating chatbot */
.jobli-root {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99990;
    font-family: inherit;
}

.jobli-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 14px 14px;
    border: 2px solid #f5b700;
    border-radius: 999px;
    background: #111111;
    color: #f5b700;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jobli-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(245, 183, 0, 0.25);
}

.jobli-fab-glow {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 1px solid rgba(245, 183, 0, 0.35);
    animation: jobliPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes jobliPulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

.jobli-fab-icon {
    width: 22px;
    height: 22px;
}

.jobli-fab-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff7d6;
    white-space: nowrap;
}

.jobli-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 380px;
    max-width: calc(100vw - 24px);
    height: 560px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    transform-origin: bottom right;
    animation: jobliOpen 0.28s ease;
}

.jobli-panel[hidden] {
    display: none !important;
}

@keyframes jobliOpen {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jobli-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    background: linear-gradient(135deg, #111111 0%, #242424 100%);
    color: #ffffff;
}

.jobli-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jobli-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    flex-shrink: 0;
}

.jobli-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f5b700;
    line-height: 1.2;
}

.jobli-subtitle {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.jobli-header-actions {
    display: flex;
    gap: 6px;
}

.jobli-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff7d6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.jobli-icon-btn:hover {
    background: rgba(245, 183, 0, 0.15);
}

.jobli-svg {
    width: 18px;
    height: 18px;
}

.jobli-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #faf9f6;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jobli-messages::-webkit-scrollbar {
    display: none;
}

.jobli-msg {
    display: flex;
    margin-bottom: 12px;
}

.jobli-msg-user {
    justify-content: flex-end;
}

.jobli-msg-bot {
    justify-content: flex-start;
}

.jobli-bubble {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.jobli-msg-bot .jobli-bubble {
    background: #fff7d6;
    color: #111111;
    border: 1px solid #f0e6a8;
    border-bottom-left-radius: 4px;
}

.jobli-msg-user .jobli-bubble {
    background: #111111;
    color: #f5b700;
    border-bottom-right-radius: 4px;
}

.jobli-msg-error .jobli-bubble {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.jobli-typing .jobli-bubble {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 54px;
}

.jobli-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111111;
    opacity: 0.35;
    animation: jobliDot 1.2s infinite ease-in-out;
}

.jobli-typing span:nth-child(2) { animation-delay: 0.15s; }
.jobli-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes jobliDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.jobli-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 0;
    background: #ffffff;
    border-top: 1px solid #efefef;
    max-height: 110px;
    overflow-y: auto;
    scrollbar-width: none;
}

.jobli-suggestions::-webkit-scrollbar {
    display: none;
}

.jobli-chip {
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #111111;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.jobli-chip:hover {
    border-color: #f5b700;
    background: #fff7d6;
}

.jobli-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #efefef;
}

.jobli-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafafa;
    color: #111111;
}

.jobli-input:focus {
    outline: none;
    border-color: #f5b700;
    box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.2);
}

.jobli-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #111111;
    color: #f5b700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.jobli-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.jobli-send-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .jobli-root {
        right: 12px;
        left: 12px;
        bottom: 16px;
    }

    .jobli-fab {
        width: 100%;
        justify-content: center;
    }

    .jobli-panel {
        left: 0;
        right: 0;
        width: auto;
        bottom: 90px;
        max-height: 78vh;
        height: auto;
        min-height: 420px;
    }
}
