html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    /*box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb; commented By Ganesh on 13 Dec 2025*/
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
}

.layout-page {
    padding-top: 50px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.modal.right.fade.in .modal-dialog {
    right: 0 !important;
    transform: translateX(-50%);
}

.modal.right .modal-content {
    height: 100%;
    overflow: auto;
    border-radius: 0;
}

.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.modal.right.fade.in .modal-dialog {
    transform: translateX(0%);
}

.modal.right.fade .modal-dialog {
    right: 0px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right .modal-header::after {
    content: "";
    display: inline-block;
}

.modal.right .close {
    text-shadow: none;
    opacity: 1;
    font-size: 26px
}

.modallinkbtn {
    cursor: pointer;
    float: right;
    font-weight: 500;
}

.text-right {
    text-align: right;
}

/*.row {
    margin-right: 5px !important;
    margin-left: 5px !important;
}

    .row > * {*/
        /*margin-top: 0.4rem;*/
        /*padding-left: 0px;
        padding-right: 0px;
    }*/

.cards-section {
    display: block;
    margin: 0;
}

    .cards-section ul {
        display: inline-block;
        padding: 0 1px;
        width: 100%;
    }

        .cards-section ul li {
            display: inline-block;
            margin: 0;
            padding: 10px 10px;
        }

.block {
    display: block;
    margin: 0;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    height: 390px;
    border-top: 5px solid #00a0e3;
}

    .block h2 {
        display: block;
        margin: 0;
        padding: 10px 20px;
        font-size: 15px;
        color: #786C67;
        font-weight: 400;
        text-transform: uppercase;
        background: white;
        border-bottom: solid 1px #eee;
    }

.block-middle {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
    position: relative;
    min-height: 253px;
}


    .block-middle span {
        display: block;
        margin: 30px 0 20px;
        padding: 0;
        font-size: 18px;
        color: #786C67;
        font-weight: 400;
    }

/* Layouts */
.chat-layout {
    display: flex;
    height: 100vh;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #0d6efd;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat */
#chatBox {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
}

.chat-box-wrapper {
    display: flex;
    flex-direction: column;
}

.chat-message {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    color: var(--text);
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.5;
    background-color: var(--bot-bg);
}

.user-message {
    align-self: flex-end;
    background-color: var(--user-bg);
    text-align: right;
}

.bot-message {
    align-self: flex-start;
    background-color: var(--bot-bg);
    text-align: left;
}

.typing {
    font-style: italic;
    opacity: 0.6;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

#chatForm {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--input-bg);
}

    #chatForm .input-group {
        border-radius: var(--radius);
        overflow: hidden;
    }

    #chatForm input {
        border: none;
        padding: 0.75rem;
        background-color: var(--input-bg);
        color: var(--text);
    }

        #chatForm input:focus {
            outline: none;
            box-shadow: none;
        }

    #chatForm .btn {
        border-radius: 0;
    }

#chatInterface {
    height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--bot-bg);
}

/* Identity account pages */
.identity-shell {
    --identity-bg-1: #f2f7ff;
    --identity-bg-2: #e9f8f3;
    --identity-ink: #0f172a;
    --identity-muted: #526079;
    --identity-accent: #0078d4;
    --identity-accent-2: #00a57a;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    isolation: isolate;
}

.identity-shell::before,
.identity-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
}

.identity-shell::before {
    width: 280px;
    height: 280px;
    left: 4%;
    top: 8%;
    background: radial-gradient(circle at 30% 30%, #bfe7ff 0%, transparent 68%);
}

.identity-shell::after {
    width: 320px;
    height: 320px;
    right: 4%;
    bottom: 6%;
    background: radial-gradient(circle at 70% 70%, #c9f5df 0%, transparent 70%);
}

.identity-card {
    width: min(100%, 520px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.97));
    border: 1px solid rgba(0, 120, 212, 0.15);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(26, 40, 72, 0.14);
    backdrop-filter: blur(6px);
    animation: identityReveal 420ms ease-out;
}

.identity-card-wide {
    width: min(100%, 760px);
}

.identity-message-card {
    text-align: center;
}

.identity-logo {
    width: 76px;
    height: auto;
    margin-bottom: 0.85rem;
}

.identity-branding {
    margin-bottom: 1.25rem;
}

.identity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--identity-bg-1), var(--identity-bg-2));
    color: var(--identity-accent);
    border: 1px solid rgba(0, 120, 212, 0.2);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.identity-title {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    color: var(--identity-ink);
    line-height: 1.2;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.identity-subtitle {
    color: var(--identity-muted);
    margin: 0;
}

.identity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.identity-link {
    color: var(--identity-accent);
    text-decoration: none;
    font-weight: 600;
}

.identity-link:hover {
    color: #035493;
    text-decoration: underline;
}

.identity-helper {
    color: var(--identity-muted);
    text-align: center;
    margin-bottom: 0;
}

.identity-card .form-control,
.identity-card .form-select {
    border-radius: 0.8rem;
    border-color: #d5deeb;
    min-height: calc(3.15rem + 2px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.identity-card .form-control:focus,
.identity-card .form-select:focus {
    border-color: #87bfe8;
    box-shadow: 0 0 0 0.23rem rgba(0, 120, 212, 0.15);
}

.identity-card .btn-primary {
    border-radius: 0.85rem;
    border: 0;
    background: linear-gradient(90deg, var(--identity-accent), var(--identity-accent-2));
    box-shadow: 0 10px 26px rgba(0, 120, 212, 0.3);
    transition: transform .18s ease, box-shadow .18s ease;
}

.identity-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 120, 212, 0.36);
}

@keyframes identityReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .identity-shell {
        min-height: auto;
        padding: 1rem 0.6rem;
    }

    .identity-card {
        padding: 1.25rem;
        border-radius: 18px;
    }
}

/* Pre-Chat Form */
#preChatForm {
    padding: 2rem;
    background-color: var(--bot-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
}

#chatContainer {
    height: 85vh;
    background-color: var(--bg);
    /*padding: 2rem 1rem;*/
}

.rating-wrapper {
    text-align: center;
    margin-top: 1rem;
}

    .rating-wrapper button {
        width: 60px;
        border-radius: 8px;
        font-size: 1rem;
    }

/* Scrollbar (Optional) */
#chatBox::-webkit-scrollbar {
    width: 8px;
}

#chatBox::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
/*AiBot related code start*/
.voice-wave {
    width: 6px;
    height: 12px;
    background: #0d6efd;
    margin: 0 2px;
    display: inline-block;
    animation: wave 1s infinite ease-in-out;
}

    .voice-wave:nth-child(2) {
        animation-delay: 0.2s;
    }

    .voice-wave:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes wave {
    0%,100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1.6);
    }
}
/*AiBot related code end*/