@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

.login-container {
    margin: 15px;
}

.btn-modal-bg {
    background: linear-gradient(to left, #8ed1f8, #2d9fd8);
}

.btn-modal-text {
    color: #2d9fd8;
}

.login-container .login-sideimage {
    width: 100%;
    border-radius: 20px;
    height: calc(100vh - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to left bottom, #8ed1f8, #2d9fd8),
        url(../login/Stars.png) repeat;
    background-size: cover;
    background-blend-mode: screen;
}

.login-box {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.login-text {
    text-align: center;
}

.login-text h2 {
    font-weight: 500;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 2%;
    overflow-y: hidden;
}

.login-text p {
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
}

.toggle-container {
    width: 100%;
    height: 50px;
    background: #ddd;
    border-radius: 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.forgot-password {
    text-decoration: none;
    color: #6f6f6f;
}

.toggle-option {
    flex: 1;
    text-align: center;
    z-index: 1;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: color 0.3s ease;
}

.slider {
    position: absolute;
    width: 50%;
    height: 90%;
    background: linear-gradient(to right, #56b3ea, #1177aa);
    border-radius: 30px;
    top: 5%;
    left: 0;
    transition: left 0.3s ease;
    z-index: 0;
}

.toggle-container.active .slider {
    left: 50%;
}

.toggle-container.active .login {
    color: #555;
}

.toggle-container.active .register {
    color: white;
}

.toggle-container:not(.active) .login {
    color: white;
}

.toggle-container:not(.active) .register {
    color: #555;
}

.login-button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #eceff3;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background-color: #eceff3;
}

.login-side-content .login-box .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-weight: 600;
}

.login-side-content .login-box .divider hr {
    flex: 1;
    border: none;
    border-top: 3px solid #c1c7d0;
}

#profileimage {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto;
}

.login-side-content .login-box .divider span {
    padding: 0 10px;
    white-space: nowrap;
    font-size: 14px;
}

.login-side-content .login-box .btn-google {
    width: 100%;
    padding: 10px;
    background-color: #f8fafb;
    color: #444;
    border: 1px solid #dfe1e7;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.login-side-content .login-box .btn-google:hover {
    background-color: #f5f5f5;
}

.login-form {
    width: 100%;
}

.login-form .form-group {
    position: relative;
    margin: 0 0 20px 0;
}

.login-form .form-group:nth-child(1) {
    position: relative;
    /* margin: 20px  0 20px 0; */
    margin: 20px 0;
}

.parsley-error {
    background-color: #fff !important;
    border: 2px solid #df1c4083 !important;
    box-shadow: 1px 7px 18px 4px #df1c4083 !important;
}

.parsley-errors-list {
    display: none;
}

.alert-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 2% 0;
    text-align: center;
    background: rgb(244 227 231);
    border-radius: 10px;
}

.alert-box .icon {
    color: #df1c40;
}

.alert-box .message {
    font-weight: 500;
    font-size: 16px;
    line-height: 155%;
    letter-spacing: 0%;
}

input.parsley-success,
select.parsley-success,
textarea.parsley-success {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #212529 !important;
}

.check-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
}

.modal-btn {
    background: linear-gradient(#1177aa 26.19%, #56b3ea 82.94%);
    color: #fff;
}

.modal-heading-slaes {
    overflow-y: hidden;

    font-weight: 500;
    font-size: 32px;
    line-height: 140%;
    letter-spacing: -2%;
}

#loginSuccessModal p {
    font-weight: 500;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    text-align: center;
}

.Goback a {
    text-decoration: none;
    margin-left: 10px;
    color: rgba(28, 12, 55, 1);
}

/* OTP Styles */
.otp-container {
    text-align: center;
    margin: 40px 0;
}

.otp-label {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #2c2c5b;
    display: block;
    margin-bottom: 16px;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-box {
    width: 48px;
    height: 56px;
    font-size: 28px;
    text-align: center;
    border: 1px solid #dcdde1;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.otp-box:focus {
    border-color: #4d6fff;
    box-shadow: 0 0 0 3px rgba(77, 111, 255, 0.2);
}

#mobileHeaderUserProfile {
    display: none;
}

/* chat page   */
.main-container {
    height: 100vh;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.chatsidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.chatsidebar .nav-link {
    color: #333;
}

.chatsidebar .nav-link:hover {
    color: #0d6efd;
}

.chatsidebar h6 {
    font-size: 12px;
    color: #888;
}

.conversation-item {
    font-size: 14px;
    margin-bottom: 0.3rem;
    cursor: pointer;
    color: #444;
}

.conversation-item:hover {
    color: #0d6efd;
}

.input-group input::placeholder {
    font-size: 14px;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.logout {
    color: red;
    cursor: pointer;
}

body {
    background-color: #fff;
    height: 100vh;
    margin: 0;
    font-family: "Segoe UI", sans-serif;
}

.chatsidebar {
    background: rgba(251, 251, 251, 1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-right: 1px solid #dee2e6;
    width: 23%;
    height: calc(100vh + 2rem);
    padding: 1rem;
    position: fixed;
}

.chatsidebar .menu-section h6 {
    overflow: visible;
    font-size: 16px;
    color: #888;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.chatsidebar .menu-link {
    font-size: 16px;
    padding: 0.3rem 0;
    color: #000;
    display: block;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.chatsidebar .menu-link:hover {
    color: #0d6efd;
}

.chatsidebar-footer {
    height: 20%;
    z-index: 5;
    width: 22%;
    font-size: 16px;
    padding-top: 2rem;
}

.chatsidebar-footer a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 0.25rem 0;
}

.chatsidebar-footer .logout {
    color: red;
}

.main-content {
    display: flex;
    text-align: center;
    position: relative;
    height: calc(100vh - 5rem);
}

.main-content .welcome-title {
    /* font-size: 2rem;
    font-weight: 600; */
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 150%;
    letter-spacing: 2%;
}

.main-content .highlight {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 150%;
    letter-spacing: 2%;

    background: linear-gradient(209.48deg, #1177aa 26.19%, #56b3ea 82.94%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.main-content .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 2rem;
}

.input-group-custom {
    max-height: 500px;
    width: 40rem;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    background-color: #fdfdfd;
    border: 2px solid #1177aa;
    position: relative;
}

.input-group-custom textarea {
    border: none;
    flex: 1;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.input-group-custom .icon-btn {
    background: linear-gradient(209.48deg, #1177aa 26.19%, #56b3ea 82.94%);
    border: none;
    color: white;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    position: sticky;
    right: 0;
    top: 50%;
}

.icon-label {
    position: sticky;
    right: 0;
    top: 50%;
}

.user-info {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.icon {
    display: block;
    height: fit-content;
    color: #0d6efd;
    margin: 0 0.5rem;
    padding: 6px;
    font-size: 20px;
    cursor: pointer;
    background-color: rgba(254, 254, 254, 1);
    border: 1px solid #1177aa;
    border-radius: 50%;
    transition: color 0.3s;
}

.user-icon {
    margin: 0;
    border: 0;
    padding: 0;
    line-height: 1.4;
    height: 50px;
    width: -webkit-fill-available;
    max-width: 25%;
}

.icon:hover {
    opacity: 0.7;
}

.user-info-chat {
    position: absolute;
    top: 1.5rem;
    left: 14rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -2%;
    color: #000;
}

.chat-section-icon {
    margin-top: 11px;
    font-size: 19px;
    margin-right: 14px;
    color: rgba(17, 119, 170, 1);
}

.sidebar-toggler {
    display: none !important;
}

.sidebar-footer-toggler {
    display: none !important;
}

#sidebarshow {
    display: none;
    padding: 1rem;
}

.logo-toggler {
    display: block !important;
}

.logo-under-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* //overlay for input  */

.drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drop-overlay .icon {
    font-size: 4rem;
    color: #00f7ff;
    margin-bottom: 1rem;
}

.drop-overlay h4 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 150%;
    color: rgba(254, 254, 254, 1);
    letter-spacing: 2%;
    text-transform: capitalize;
}

.drop-overlay p {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 150%;
    letter-spacing: 2%;
    text-transform: capitalize;
    color: rgba(254, 254, 254, 1);
}

#fileInput {
    display: none;
}

/* //chat screen  */

.main {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message.user>p,
.message.ai>p {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.message {
    max-width: 70%;
    overflow: visible;
}

.message.user {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    border-radius: 14px;
    border-width: 1px;
}

.message.user>p {
    font-family: Source Sans Pro;
    font-weight: 400;
    font-size: 17px;
    color: rgba(27, 37, 89, 1);
    background-color: rgba(254, 254, 254, 1);
    border: 1px solid rgba(226, 232, 240, 1);
}

.message.ai {
    align-self: flex-start;
}

.message-response-text {
    background-color: #ffffff;
    text-align: left;
    padding: 16px;
    color: rgba(27, 37, 89, 1);
    margin-bottom: 5%;
}

.message ol {
    padding-left: 20px;
    margin-top: 12px;
}

.message ol li {
    margin-bottom: 10px;
}

.regenerate-btn {
    margin: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 17px;
    overflow-x: visible;
    color: #1177aa;
    cursor: pointer;
    border: none;
    background: none;
}

.regenerate-btn:hover {
    text-decoration: underline;
}

.ai {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.ai>.message-response-icon {
    height: 100%;
    width: 7%;
}

.ai>.message-response-icon>img {
    margin-bottom: 267%;
}

/* //payment page  */

.payment-btn {
    margin-bottom: 8%;
    width: fit-content;
    border-radius: 6px;
    gap: 10px;
    padding-top: 5px;
    padding-right: 34px;
    padding-bottom: 5px;
    padding-left: 34px;
    background-color: #fff;
    color: #00c1ff;
}

.plan-card {
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    background-color: white;
    position: relative;
    text-align: left;
    height: 100%;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: white;
    color: #1177aa;
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.current-badge {
    background: linear-gradient(90deg, #1177aa, #00c6ff);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    padding: 4px 12px;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: #1177aa;
    text-align: left;
}

.plan-features li {
    font-family: Poppins;
    font-weight: 500;
    font-size: 15px;
    overflow: visible;
    letter-spacing: 0px;
    margin-bottom: 10px;
}

.plan-features li::before {
    content: "✔";
    margin-right: 10px;
    font-size: 13px;
    background: #cdcdcd;
    color: rgba(53, 63, 99, 1);
    border-radius: 50%;
    padding: 4px;
    overflow: visible;
}

.btn-selected {
    background: linear-gradient(90deg, #1177aa, #00c6ff);
    color: white;
    border: none;
    margin-top: 81px;
}

.btn-upgrade {
    background-color: white;
    border: 1px solid #fff;
    color: #1177aa;
    font-weight: 600;
}

.premium {
    background: linear-gradient(209.48deg, #1177aa 26.19%, #56b3ea 82.94%);
    color: white;
}

.premium .plan-price {
    color: white;
}

.premium .plan-features li::before {
    color: white;
}

.premium .btn-upgrade {
    background: white;
    color: #1177aa;
}

.plan-card h5 {
    font-family: Poppins;
    font-weight: 500;
    font-size: 28px;
    color: rgba(86, 179, 234, 1);
    letter-spacing: 0px;
}

.plan-card p {
    font-family: Poppins;
    font-weight: 500;
    font-size: 15px;

    letter-spacing: 0px;
}

.premium .plan-features li::before {
    content: "✔";
    margin-right: 10px;
    font-size: 12px;
    background: rgba(86, 179, 234, 1);
    color: #fff;
    border-radius: 50%;
    padding: 2px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header h1 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -2%;
}

.ghost {
    visibility: hidden;
    white-space: nowrap;
    position: absolute;
}

.typing-text {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

#videoContainer .card {
    width: 100px;
    /* width: 102px; */
    height: auto;
}

#videoContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
}

/* //live chat  */
#search-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.popup-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-box {
    background-color: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    padding: 1rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

.popup-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.popup-header input {
    flex-grow: 1;
    background: #2d2d2d;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #fff;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}

.popup-results {
    max-height: 300px;
    overflow-y: auto;
}

.chat-item {
    padding: 0.6rem 1rem;
    color: #000;
    cursor: pointer;
    border-radius: 6px;
    text-align: left;
    text-decoration: none;
}

.menu-section {
    height: 50%;
}

.searchModalInput {
    height: 3.5vw;
}

.chat-item:hover {
    color: #0d6efd;
}

#newchatscreen {
    overflow-x: visible;
    margin: 5% 0;
    /* margin-top: 35%; */
}

.swal2-title {
    overflow: hidden;
}

.swal2-success {
    overflow: hidden;
}
