@import url("https://fonts.googleapis.com"); /* Using a url */

@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=DM+Sans:wght@400;500&display=swap"); /* Using a url */
@import url("https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.44.0/tabler-icons.min.css"); /* Using a url */


#tp-fab {
    position: fixed;
    bottom: 28px;
    right:100px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: var(--font-body);
}
#tp-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: var(--shadow-blue);
    transition: var(--transition);
    position: relative;
        position: relative;
     display: none;
}
#tp-toggle:hover {
    background: var(--deep-blue);
    transform: scale(1.06);
}
#tp-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
}
#tp-window {
    width: 360px;
    max-height: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
#tp-window.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}
#tp-head {
    background: linear-gradient(135deg, var(--deep-blue), var(--blue));
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.tp-logo {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    font-family: var(--font-body);
}
.tp-hname {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.8px;
}
.tp-hsub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1px;
}
.tp-online {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}
.tp-hdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #69f0ae;
    box-shadow: 0 0 5px #69f0ae;
    animation: tppulse 2s infinite;
}
@keyframes tppulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}
#tp-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--light-grey);
    min-height: 200px;
    max-height: 420px;
}
#tp-msgs::-webkit-scrollbar {
    width: 3px;
}
#tp-msgs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}
.tp-msg {
    max-width: 86%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.tp-msg.bot {
    align-self: flex-start;
}
.tp-msg.user {
    align-self: flex-end;
}
.tp-bbl {
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
}
.tp-msg.bot .tp-bbl {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark);
    border-radius: 4px 12px 12px 12px;
    box-shadow: var(--shadow-sm);
}
.tp-msg.user .tp-bbl {
    background: var(--blue);
    color: #fff;
    border-radius: 12px 4px 12px 12px;
}
.tp-t {
    font-size: 10px;
    color: #bbb;
}
.tp-msg.user .tp-t {
    text-align: right;
}
.tp-opts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
}
.tp-opt {
    background: var(--white);
    border: 1.5px solid rgba(21, 73, 155, 0.18);
    color: var(--blue);
    font-size: 12.5px;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
}
.tp-opt:hover {
    background: rgba(21, 73, 155, 0.06);
    border-color: var(--blue);
}
.tp-opt:disabled {
    opacity: 0.3;
    cursor: default;
}
.tp-back {
    background: none;
    border: none;
    color: var(--mid);
    font-size: 11.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 0 6px 0;
    font-family: var(--font-body);
    transition: color 0.2s;
}
.tp-back:hover {
    color: var(--red);
}
.tp-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 13px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px 12px 12px 12px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
}
.tp-typing span {
    width: 5px;
    height: 5px;
    background: #aac4f0;
    border-radius: 50%;
    animation: tpbop 1.2s infinite;
}
.tp-typing span:nth-child(2) {
    animation-delay: 0.2s;
}
.tp-typing span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes tpbop {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}
#tp-foot {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
#tp-in {
    flex: 1;
    background: var(--light-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 13px;
    padding: 9px 12px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
#tp-in:focus {
    border-color: var(--soft-blue);
}
#tp-in::placeholder {
    color: #bbb;
}
#tp-send {
    background: var(--blue);
    border: none;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.2s;
}
#tp-send:hover {
    background: var(--deep-blue);
}
.tp-req {
    color: var(--red);
    font-size: 11px;
    margin-left: 2px;
}
.tp-tag {
    display: inline-block;
    background: rgba(21, 73, 155, 0.08);
    color: var(--blue);
    border: 1px solid rgba(21, 73, 155, 0.2);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 4px;
}
.tp-lead {
    font-size: 11px;
    color: var(--blue);
    background: rgba(21, 73, 155, 0.06);
    border: 1px solid rgba(21, 73, 155, 0.15);
    border-radius: var(--radius-sm);
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}
#tp-bar {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    background: var(--deep-blue);
    text-align: center;
    padding: 5px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
