.sikshabot-widget,
.sikshabot-widget * {
    box-sizing: border-box;
}

.sikshabot-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: inherit;
    color: #16201d;
}

.sikshabot-launcher-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sikshabot-help-bubble {
    max-width: 188px;
    padding: 10px 12px;
    border: 1px solid rgba(25, 200, 161, 0.35);
    border-radius: 8px;
    background: #ffffff;
    color: #18483e;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 12px 28px rgba(16, 56, 48, 0.16);
}

.sikshabot-launcher {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, #19c8a1 0%, #0f8f78 100%);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 143, 120, 0.28);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sikshabot-launcher:hover,
.sikshabot-launcher:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(15, 143, 120, 0.36);
    outline: none;
}

.sikshabot-face {
    position: relative;
    display: block;
    width: 42px;
    height: 34px;
    margin: 13px auto 5px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
}

.sikshabot-face::before,
.sikshabot-face::after {
    content: "";
    position: absolute;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
}

.sikshabot-face::before {
    left: 9px;
}

.sikshabot-face::after {
    right: 9px;
}

.sikshabot-antenna {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 3px;
    height: 10px;
    border-radius: 3px;
    background: #ffffff;
    transform: translateX(-50%);
}

.sikshabot-antenna::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateX(-50%);
}

.sikshabot-launcher-text {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.sikshabot-panel {
    position: absolute;
    right: 0;
    bottom: 92px;
    width: 340px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border: 1px solid rgba(25, 200, 161, 0.32);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(8, 42, 36, 0.22);
    opacity: 0;
    transform: translateY(14px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.sikshabot-widget.is-open .sikshabot-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.sikshabot-widget.is-open .sikshabot-help-bubble {
    display: none;
}

.sikshabot-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 13px;
    background: #113f36;
    color: #ffffff;
}

.sikshabot-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sikshabot-mini-face {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: #19c8a1;
}

.sikshabot-mini-face::before,
.sikshabot-mini-face::after {
    content: "";
    position: absolute;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.sikshabot-mini-face::before {
    left: 8px;
}

.sikshabot-mini-face::after {
    right: 8px;
}

.sikshabot-title {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.sikshabot-subtitle {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.25;
}

.sikshabot-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.sikshabot-close:hover,
.sikshabot-close:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.sikshabot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 230px;
    max-height: 330px;
    padding: 14px;
    overflow-y: auto;
    background: #f7fffc;
}

.sikshabot-message {
    position: relative;
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(12, 45, 38, 0.08);
}

.sikshabot-message.bot {
    align-self: flex-start;
    border: 1px solid #d9eee8;
    background: #ffffff;
    color: #193b34;
}

.sikshabot-message.user {
    align-self: flex-end;
    background: #19c8a1;
    color: #ffffff;
}

.sikshabot-message.user::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 0 solid transparent;
    border-left: 7px solid #19c8a1;
}

.sikshabot-message.bot::before {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 0 solid transparent;
    border-right: 7px solid #ffffff;
}

.sikshabot-form {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-top: 1px solid #dceee9;
    background: #eef8f5;
}

.sikshabot-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #cfe8e1;
    border-radius: 8px;
    background: #ffffff;
    color: #16201d;
    font: inherit;
    font-size: 14px;
}

.sikshabot-input:focus {
    border-color: #19c8a1;
    box-shadow: 0 0 0 3px rgba(25, 200, 161, 0.16);
    outline: none;
}

.sikshabot-send {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #19c8a1;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(25, 200, 161, 0.28);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sikshabot-send:hover,
.sikshabot-send:focus {
    background: #0f8f78;
    box-shadow: 0 10px 20px rgba(15, 143, 120, 0.32);
    transform: translateY(-1px);
    outline: none;
}

.sikshabot-send-icon {
    position: relative;
    display: block;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #ffffff;
}

.sikshabot-send-icon::before {
    content: "";
    position: absolute;
    left: -14px;
    top: -3px;
    width: 9px;
    height: 6px;
    border-top: 2px solid #19c8a1;
    transform: rotate(-18deg);
}

@media (max-width: 575px) {
    .sikshabot-widget {
        right: 14px;
        bottom: 14px;
    }

    .sikshabot-launcher-wrap {
        align-items: flex-end;
        flex-direction: column;
    }

    .sikshabot-help-bubble {
        max-width: 176px;
        font-size: 12px;
    }

    .sikshabot-launcher {
        width: 64px;
        height: 64px;
    }

    .sikshabot-face {
        width: 38px;
        height: 31px;
        margin-top: 11px;
    }

    .sikshabot-panel {
        bottom: 82px;
        width: calc(100vw - 28px);
    }

    .sikshabot-messages {
        min-height: 210px;
        max-height: 300px;
    }
}
