@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary: #0d6efd;
    /* --secondary: #f56527; */
    --textcolor: #696969;
    --black: #141414;
    --white: #ffffff;
    --warning: #e03131;
    --border-color: #e9ecef;
}

body {
    font-family: "Inter", sans-serif;
    font-weight: normal;
    background: #ffffff;
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--black);
}

html,
body {
    height: 100%;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.hero-section {
    padding: 50px 0;
    background: #e3f1ff;
}

.header-cover {
    background: #ffffff;
    /* backdrop-filter: blur(10px); */
    /* border-radius: 20px; */
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 7px 28px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.header-cover .navbar-brand {
    color: var(--primary);
}

.header-cover .navbar-brand img {
    width: 110px;
}

.header-navbar-nav a,
.header-navbar-nav button {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    border-radius: 8px;
    padding: 8px 15px !important;
    display: inline-flex;
    gap: 5px;
}

.header-navbar-nav {
    display: inline-flex;
    width: auto;
}

.hero-card {}

/* .login-card,
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
} */

.btn-login,
.btn-register {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 10px 25px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.btn-login:hover,
.btn-register:hover,
.btn-register:active,
.btn-login:active {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3); */
    background-color: #0060f0 !important;
}

.btn-nav {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(45deg, #007bff, #0056b3); */
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* .login-section,
.register-section {
    padding: 50px 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
} */

.login-section{
    margin-top: 25px;
    padding: 15px;
    width: 100%;
}

input.form-control {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    padding: 12px 16px;
    transition: all 0.3s ease;
    height: 40px;
}
textarea.form-control {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    padding: 12px 16px;
    transition: all 0.3s ease;
    height: 250px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border-color: #e0e6ed;
    background-color: #f8f9fa;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.register-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.welcome-text {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.welcome-text.register {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.form-label {
    font-weight: 400;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 14px;
}
.form-text{
    color: rgba(20, 20, 20, 0.4) !important;
}

.alert {
    border-radius: 12px;
    border: none;
}

.auth-cover .input-group .form-control {}

.auth-cover .input-group .form-control:focus {
    border-color: #e0e6ed;
    box-shadow: inherit;
    transform: inherit;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {}

.logo-icon-cover img {
    width: 80px;
}

.dashboard-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-card .card-body {
    border-radius: 15px;
}

.card a {
    color: inherit;
}

.card a:hover {
    color: inherit;
    text-decoration: none;
}

/**** Chat Page CSS Start ****/
.chat-section {
    /* height: 100vh; */
    height: calc(100vh - 80px);
    background: #e3f1ff;
    overflow: hidden;
}

.chat-container {
    /* height: 100vh; */
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

/* .chat-header {
    background: #003c94;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
} */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #ffffff;
}

.message-wrapper {
    margin-bottom: 1rem;
    display: flex;
}

.message-wrapper.user-message {
    justify-content: flex-end;
}

.message-wrapper.agent-message {
    justify-content: flex-start;
}

.message {
    display: flex;
    max-width: 80%;
    align-items: flex-start;
}

.user-message .message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.agent-message .message-avatar {
    /* background: #4d4d4d; */
    color: white;
}

.agent-message .message-text{
    background: rgba(20, 20, 20, 0.04);
}
.message-text{

}
.user-message .message-avatar {
    background: #4d4d4d;
    color: white;
}

.message-content {
    flex: 1;
    min-width: 0;
}
.user-message .message-text{
    text-align: left;
}
.agent-message{}
.message-text {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message .message-text {
    background: rgba(20, 20, 20, 0.04);
    color: #000000;
    width: auto;
    display: inline-block;
}

.message-time {
    display: block;
    color: #6c757d;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.user-message .message-time {
    text-align: right;
}

.user-message .message-content{
    text-align: right;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.chat-input {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    /* border-color: #11998e; */
    box-shadow: inherit;
    transform: inherit;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary);
    transform: inherit;
    /* box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4); */
}

.typing-indicator {
    margin-top: 0.5rem;
}

.typing-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #6c757d;
    margin: 0 1px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-status .badge {
    font-size: 0.75rem;
    padding: 12px;
}

/* Streaming content styles */
.streaming-content {
    min-height: 20px;
    word-wrap: break-word;
}

.streaming-content:empty::before {
    content: "...";
    color: #6c757d;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #11998e;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #0e8074;
}

.view-icon {
    cursor: pointer;
    color: var(--primary);
}

.view-icon:hover,
.active .view-icon {
    color: #ffffff;
    /* Bootstrap primary color */
}

/* Chat Room Item */
.chat-room-item {
    margin-bottom: 10px;
    border-radius: 10px !important;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid #e7e7e7 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

/* Hover State */
.chat-room-item:hover {
    background-color: #f5f9ff;
    border-color: #cbd9ff;
    transform: translateY(-2px);
}

/* Active Room */
.chat-room-item.active {
    background-color: var(--primary);
    border-color: #0b5ed7;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-room-item.active .chat-room-info,
.chat-room-item.active .chat-room-time {
    color: white !important;
}

/* Icon + Name Section */
.chat-room-info {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Timestamp */
.chat-room-time {
    font-size: 13px;
    color: #8f9aa7;
}

.chat-main-cover-set {
    height: 100%;
    position: relative;
}

#chatMessages {
    /* height: 100%;
    min-height: 430px;
    max-height: 430px; */
    overflow-y: auto;
    height: calc(100vh - 290px);
}

.chat-main-cover-set .chat-sidebar {
    padding-right: 0px;
}

.chat-sidebar-body {
    height: 100%;
    min-height: 430px;
    max-height: 430px;
    overflow-y: auto;
}

.chat-messages-right-box {
    position: relative;
    padding-left: 0px;
}

.loading-set {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    text-align: center;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-model-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.empty-state {
    margin-top: 100px;
    opacity: 0.85;
}

.empty-state-icon i {
    font-size: 3rem;
}

.add-new-roombtn {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    border-radius: 8px;
    padding: 8px 12px !important;
    display: inline-flex;
    gap: 5px;
    border: 0;
    outline: inherit;
}

.logo-forgot {
    margin-bottom: 20px !important;
    display: inline-block;
}

.logo-forgot img {
    width: 150px;
}

.prof-details-cover-card {
    box-shadow: 0 3px 18px rgb(224 238 253);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.prof-details-cover-card h2 {
    font-size: 24px;
    color: #000000;
    font-weight: 700;
}

.prof-details-cover-card p {
    font-size: 14px;
    color: #000000;
}

/**** Chat Page CSS Start ****/



/** Login Style Start **/

/* body{
    background: #e3f1ff;
} */
.logo-head {
    margin-bottom: 24px;
}

.left-form-auth-cov {
    padding: 30px;
    display: inline-flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: center;
    height: 100vh;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    width: 100%;
    align-items: center;
}

.left-form-auth-cov form {
    padding: 0px;
    padding-top: 10px;
    width: 100%;
}

.auth-title {
    width: 100%;
    text-align: center;
    margin-bottom: 35px;
}

.auth-title h3 {
    font-size: 25px;
    color: #141414;
    font-weight: 700;
}

.welcome-right-main {
    height: 100vh;
}

.welcome-right-box {
    /* background: url(../svg/welcome-back-img-bg.svg) bottom center no-repeat; */
    background-size: cover;
    text-align: center;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.welcome-right-box img {
    width: 85%;
}

.welcome-right-box p {
    width: 100%;
    color: var(--black);
    font-size: 16px;
}

.left-form-auth-cov .input-group {
    position: relative;
}

.left-form-auth-cov .input-group .form-control {
    border-radius: 10px !important;
    padding-left: 40px;

}

.left-form-auth-cov .input-group .input-group-text {
    border: 0;
    background: transparent;
    position: absolute;
    left: 0px;
    top: 8px;
    z-index: 9;
}

.left-form-auth-cov .input-group .input-group-text i {}

.left-form-auth-cov .btn-login {
    border-radius: 10px;
}

.submit-form-btn-cover {
    width: 100%;
    margin-top: 28px;
}

@media screen and (max-width: 1080px) {
    .welcome-right-main {
        display: none;
    }

    .login-main-cover .col-lg-5 {
        width: 100%;
    }
}

@media (max-height: 825px) {
    .left-form-auth-cov {
        height: auto !important;
    }

    .welcome-right-main {
        height: auto !important;
    }
}

/** Login Style End **/


/* new login style start */
.login-main-cover {}

.new-login-hed {
    width: 100%;
    padding: 45px;
}

.new-login-hed img {
    width: 190px;
}

.new-login-form {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    /* height: 100%; */
    height: calc(100vh - 240px);
}

.input-group-cover {
    width: 100%;
}

.input-group-cover input {
    background-color: #F5F5F5;
    border: 0px !important;
    box-shadow: inherit !important;
    height: 42px;
    padding: 12px;
    border-radius: 8px;
}

.input-group-cover input::placeholder {
    color: rgba(20, 20, 20, 0.2);
}

.input-group-cover input:focus {
    background-color: #F5F5F5 !important;
}

.new-login-form-cover {
    width: 350px;
}

.new-login-form-cover form {
    width: 100%;
}

.new-login-formbtn-list {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.new-login-formbtn-list a {
    color: #ADADFB;
    text-decoration: none;
    font-size: 14px;
}

.submit-form-btn-cover button {
    color: var(--white) !important;
    background-color: var(--black) !important;
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border-radius: 10px;
    border: 0;
    font-weight: 500;
}

.submit-form-btn-cover button:hover {
    color: var(--white) !important;
    background-color: var(--black) !important;
}

.submit-form-btn-cover button:disabled {
    background-color: #e9ecef !important;
    color: #adb5bd !important;
}

.new-login-footer {
    display: inline-flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 28px;
}

.new-login-footer ul {
    width: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 15px;
}

.new-login-footer ul li {
    color: rgba(20, 20, 20, 0.2);
}

.new-login-footer ul li a {
    color: rgba(20, 20, 20, 0.2);
    text-decoration: none;
    font-size: 14px;
}

.new-login-footer p {
    width: 100%;
    color: rgba(20, 20, 20, 0.2);
    margin-bottom: 22px;
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
}

/* new login style end */

button.loader-active,
a.loader-active,
div.loader-active {
    background-color: #9e9e9e !important;
    pointer-events: none;
}

.loader-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.loader-cust {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #424242;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: none;
}

.loader-active .loader-cust {
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Mobile responsiveness */
@media (max-width: 991px) {
    .chat-model-header select {
        width: 180px;
    }

    .chat-main-cover-set {
        height: 100%;
        position: relative;
        display: inline-flex;
        flex-wrap: nowrap;
    }

    .chat-main-cover-set .chat-sidebar {
        width: 290px;
    }

    .chat-messages-right-box {
        flex: inherit;
    }
}

@media (max-width: 768px) {
    #chatMessages {
        height: calc(100vh - 350px);
    }

    .chat-model-header {
        justify-content: flex-start !important;
        margin-top: 15px;
    }

    .chat-header .chat-header-iner {
        display: inline-flex !important;
        width: 100%;
        flex-wrap: wrap;
    }

    .chat-header .chat-header-iner #chat_model_header {
        width: 100%;
    }

    /* .chat-container {
        margin: 5px;
        border-radius: 10px;
    } */

    .message {
        max-width: 95%;
    }

    .chat-header h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 650px) {
    .empty-state {
        margin-top: 0px;
    }

    .chat-sidebar-body {
        border-bottom: 1px solid #b8b8b8;
    }

    .chat-messages-right-box {
        padding-left: 12px;
    }

    .chat-section {
        height: auto;
    }

    #chatMessages {
        height: 100%;
        min-height: 450px;
        max-height: 450px;
        overflow: auto;
    }

    .chat-main-cover-set {
        flex-wrap: wrap;
    }

    .chat-container {
        height: auto;
    }

    .chat-main-cover-set .chat-sidebar {
        padding-right: 11px;
        width: 100%;
        border: 0 !important;
    }
}

@media (max-width: 414px) {
    .header-cover .navbar-brand img {
        width: 90px;
    }

    .header-navbar-nav a,
    .header-navbar-nav button {
        padding: 6px 8px !important;
    }
}