/* Genel Stil Tanımlamaları */
body {
    background: #fdfeff;
    font-family: 'Poppins', sans-serif;
}

body.embed {
    overflow-y: hidden;
}

body.embed .bg-img,
body.embed .info {
    display: none;
}

input,
input:focus,
input:active {
    outline: none;
    outline: 0;
}

/* Ana Konteyner ve Bölümler */
.main-container {
    min-height: 100vh;
}

.left-section {
    flex: 0 0 30%;
    max-width: 30%;
    border-right: 1px solid rgba(202, 216, 227, 0.73);
    position: relative;
}

.right-section {
    flex: 0 0 70%;
    max-width: 70%;
    background-color: #e4f4fc;
}

/* Header, Main, Footer */
header {
    padding-top: 20px !important;
    margin-bottom: 40px;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee;
}

main {
    padding-top: 0;
    overflow-y: auto;
    max-height: calc(100vh - 85px);
    transition: all .2s ease-in-out;
}

footer {
    margin-bottom: 20px;
    width: 68%;
    background-color: #e4f4fc;
}

/* Karşılama ve Robot Animasyonları */
.welcome-text {
    color: #000;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 50px;
    text-align: center;
}

.welcome-info {
    bottom: 20px;
    width: 100%;
    font-size: 0.8rem;
}

.robot-container {
    position: relative;
    margin-bottom: 2rem;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    transform: scale(1);
    box-shadow: none;
}

.robot-image {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 2s ease-in-out infinite;
}

.robot-anim {
    transform: scale(0.5);
}

.robot {
    width: 100%;
    animation: upDown 3s ease-in-out infinite;
}

.robotshadow {
    padding-left: 20px;
    width: 100%;
    margin-top: -260px;
    z-index: -1;
}

/* Slider Animasyonları */
.slider-container {
    position: relative;
    width: 280px;
    height: 250px;
    margin: 30px;
    transform: scale(1.10);
}

.background-img {
    position: absolute;
    top: 0;
    left: 15px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 2;
    object-fit: contain;
    animation: floatY .7s ease-in-out infinite alternate;
}

.shadow-img {
    position: absolute;
    left: 10px;
    bottom: -45px;
    width: 100%;
    height: 34px;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    object-fit: contain;
    animation: shadowScale .7s ease-in-out infinite alternate;
    transform-origin: 50% 160%;
}

/* Keyframe Animasyonları */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes upDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

@keyframes shadowScale {
    0% {
        transform: scaleX(1) scaleY(1);
    }
    100% {
        transform: scaleX(1.4) scaleY(1.1);
        opacity: .6;
    }
}

@keyframes fadeInUp {
    from {
        transform: translate3d(0, 15px, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes thinking-loader {
    0% {
        bottom: 0;
    }
    20% {
        bottom: 5px;
    }
    40% {
        bottom: 0;
    }
}

/* Navbar ve Profil */
.navbar-actions {
    display: flex;
    align-items: center;
    z-index: 100;
    background: white;
    padding: 10px;
    border-radius: 30px;
    box-shadow: rgba(112, 144, 176, 0.18) 14px 17px 40px 4px;
}

.navbar-actions a {
    color: #444;
    text-decoration: none;
}

.profile-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

/* Arka Plan Stilleri */
.bg-img {
    position: fixed;
    width: 350px;
    left: 50%;
    top: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.blur-background {
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.8);
    transition: backdrop-filter 0.3s, background-color 0.3s;
}

/* Giriş Formu Stilleri */
.wrap-login {
    color: #fff;
    width: 390px;
    border-radius: 10px;
    overflow: hidden;
    padding: 67px 55px 33px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .1);
    background-color: #22144d !important;
}

.login-form {
    width: 100%;
}

.login-form-title {
    display: block;
    font-size: 30px;
    color: #333;
    line-height: 1.2;
    text-align: center;
}

.login-form-title i {
    font-size: 60px;
}

.wrap-input {
    width: 100%;
    position: relative;
    border-bottom: 2px solid #adadad;
    margin-bottom: 27px;
}

.input {
    border: 0 !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    display: block;
    width: 100%;
    height: 45px;
    background: transparent;
    padding: 0;
    outline: none;
}

.input::placeholder {
    color: #fff;
    font-size: 16px;
    font-weight: normal;
}

.focus-input {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    border: 0;
}

.focus-input::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: all .4s;
    background: #fff;
}

.focus-input::after {
    font-size: 15px;
    color: #fff;
    line-height: 1.2;
    content: attr(data-placeholder);
    display: block;
    width: 100%;
    position: absolute;
    top: 16px;
    left: 0;
    padding-left: 0;
    transition: all .4s;
}

.input:focus + .focus-input::after {
    top: -15px;
}

.input:focus + .focus-input::before {
    width: 100%;
}

.has-val.input + .focus-input::after {
    top: -15px;
}

.has-val.input + .focus-input::before {
    width: 100%;
}

.login-form-btn {
    font-size: 15px;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 50px;
}

.wrap-login-form-btn:hover .login-form-bgbtn {
    left: 0;
}

#captcha_img {
    position: absolute;
    right: 0;
    bottom: 10px;
}

.big-button {
    border-radius: 25px;
    background-color: #fff;
    padding: 15px;
    width: 95%;
    font-size: 1em;
    color: #000;
    line-height: 1.2;
    text-transform: uppercase;
    border: 0;
}

/* Soru ve Sohbet Alanı */
.questions-container {
    position: relative;
    bottom: 1px;
    background: #edf5fb;
    backdrop-filter: blur(3px);
}

.questions {
    padding-bottom: 10px;
    padding-top: 20px !important;
}

.questions .button {
    background-color: #fff;
    border: none;
    color: #000;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 50px;
}

.chat-input {
    border-radius: 45px;
    padding: 15px 20px;
    border: 1px solid rgb(226, 232, 240) !important;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0, rgba(27, 31, 35, 0.15) 0 0 0 1px !important;
    outline: none;
    width: calc(100% - 80px);
}

.chat-send {
    color: #fff !important;
    height: 47px;
    width: 47px;
    border-radius: 50%;
    border: 0;
    box-shadow: 0 21px 27px -10px rgba(96, 60, 255, 0.48) !important;
    background: linear-gradient(15.46deg, #3b6cf9 26.3%, #3b6cf9 86.4%) !important;
    position: absolute;
    right: 15px;
    top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sohbet Mesajları */
.chat {
    margin-top: auto;
    margin-bottom: auto;
}

.chat .card-body {
    padding: 10px;
    padding-bottom: 100px;
}

.msg_card_body .msg_content {
    display: flex;
    flex-direction: row;
    max-width: 80%;
}

.msg_card_body a {
    color: #000;
}

.container {
    align-content: center;
}

.active {
    background-color: rgba(0, 0, 0, 0.3);
}

.user_img {
    height: 65px;
    width: 65px;
    border: 1.5px solid #f5f6fa;
}

.user_img_msg {
    height: 35px;
    width: 35px;
    border: 1.5px solid #f5f6fa;
}

.img_cont {
    position: relative;
    height: 70px;
    width: 70px;
}

.img_cont_msg {
    height: 65px;
    width: 65px;
    min-width: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img_cont_msg img {
    width: 60px;
    height: auto;
    border: 0;
}

.img_cont_msg.user {
    background: #fff;
    border: 1px solid #3b6cf9;
    color: #3b6cf9;
    display: none;
}

.msg_score {
    margin-left: 76px;
    margin-top: 8px;
}

.msg_score[data-mid="0"],
.msg_score[data-mid="undefined"] {
    display: none !important;
}

.msg_score svg {
    height: 18px;
    color: #708c9d;
}

.msg_container {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
    border-radius: 15px;
    background-color: #fff;
    color: rgb(24, 36, 51);
    line-height: 30px;
    padding: 10px 20px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px 0;
}

.msg_container h1,
.msg_container h2 {
    font-size: 16px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.msg_container h3 {
    font-size: 16px;
    padding-bottom: 10px;
}

.msg_container p:last-child {
    margin-bottom: 0;
}

.msg_container table {
    width: 100%;
    border-collapse: collapse;
}

.msg_container table td {
    border: 1px solid #ccc;
    padding: 8px 15px;
}

.msg_container ol ul {
    padding-bottom: 15px;
}

.msg_container ol li {
    padding-bottom: 5px;
}

.msg_container_send {
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 10px;
    border-radius: 15px;
    background-color: #3b6cf9;
    color: #fff;
    line-height: 30px;
    padding: 10px 20px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
}

.thinking .msg_score {
    display: none;
}

.msg_time {
    position: absolute;
    left: 0;
    bottom: -15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.msg_time_send {
    position: absolute;
    right: 0;
    bottom: -15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.msg_head {
    position: relative;
}

/* Aksiyon Menüsü */
#action_menu_btn {
    position: absolute;
    right: 10px;
    top: 10px;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.action_menu {
    z-index: 1;
    position: absolute;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 15px;
    top: 30px;
    right: 15px;
    display: none;
}

.action_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action_menu ul li {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 5px;
}

.action_menu ul li i {
    padding-right: 10px;
}

.action_menu ul li:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Animasyon Yardımcı Sınıfları */
.animated {
    animation-duration: .1s;
    animation-fill-mode: both;
}

.animatedFadeInUp {
    opacity: 0;
}

.fadeInUp {
    opacity: 0;
    animation-name: fadeInUp;
}

/* Yükleniyor Animasyonu */
.thinking-loader span {
    position: relative;
    bottom: 0;
    font-size: 14px;
    padding-left: 2px;
    animation: thinking-loader 1s infinite;
}

.thinking-loader .dot-1 {
    animation-delay: 100ms;
}

.thinking-loader .dot-2 {
    animation-delay: 200ms;
}

.thinking-loader .dot-3 {
    animation-delay: 300ms;
}

.thinking-border {
    border: 1px solid #3b6cf9;
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(0, 212, 255, 0.56);
        box-shadow: 0 0 3px rgba(0, 212, 255, 0.3);
    }
    50% {
        border-color: #00d4ff;
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.8);
    }
}

/* Scrollbar Stilleri */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

/* Medya Sorguları (Responsive Tasarım) */

@media (max-width: 1300px) {
    .left-section {
        max-width: 40%;
        flex: 0 0 40%;
    }

    .right-section {
        max-width: 60%;
        flex: 0 0 60%;
    }

    footer {
        width: 58% !important;
    }
}

@media (max-width: 1100px) {
    .left-section {
        max-width: 45%;
        flex: 0 0 45%;
    }

    .right-section {
        max-width: 55%;
        flex: 0 0 55%;
    }

    .robot-container {
        transform: scale(0.8);
    }

    .msg_card_body .msg_content {
        display: flex;
        flex-direction: row;
        max-width: 100%;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .slider-container {
        margin-bottom: 70px;
    }

    footer {
        width: 52% !important;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        overflow: hidden;
    }

    .left-section {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: 40vh;
        border-right: none;
        border-bottom: 1px solid rgba(202, 216, 227, 0.73);
        padding: 2rem 1rem;
    }

    .right-section {
        flex: 1;
        max-width: 100%;
        min-height: 60vh;
    }

    .welcome-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
        margin-top: 20px;
    }

    .robot-image {
        max-width: 120px;
    }

    .robot-container {
        margin-bottom: 1rem;
        transform: scale(1);
    }

    .welcome-info {
        position: static;
        width: 100%;
        font-size: 0.75rem;
        margin-top: 1rem;
    }

    .welcome-title div:first-child {
        width: 50px !important;
        font-size: 2rem;
    }

    .slider-container {
        margin-left: 0 !important;
        margin-bottom: 70px !important;
        transform: scale(1) !important;
    }


    footer {
        width: 100% !important;
        margin-left: 5px;
    }
}

@media (max-width: 587px) {
    body {
        font-size: 14px;
    }

    header {
        padding-top: 4px !important;
        margin-bottom: 20px;
        padding-bottom: 6px !important;
    }

    main {
        max-height: calc(100vh - 140px);
    }

    .msg_card_body .msg_content {
        max-width: 100%;
    }

    .msg_container {
        width: calc(100% - 60px) !important;
    }

    .info {
        max-width: 80%;
        margin: 0 auto;
    }

    body.embed main {
        max-height: calc(100vh - 150px);
        margin-top: 75px;
    }

    body.embed .wrap-inputx {
        margin-bottom: 35px;
    }

    body.embed .blur-background {
        background-color: #001474;
        color: #fff;
    }

    body:not(.embed) .navbar-actions {
        box-shadow: none !important;
    }

    .backdrop-overlay {
        background-color: rgb(34, 20, 77) !important;
        opacity: 1 !important;
    }

    .wrap-login {
        height: 100%;
        min-height: 100%;
        overflow: auto;
        box-shadow: none !important;
    }
}

@media (max-width: 576px) {
    .contacts_card {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .left-section {
        min-height: 35vh;
        padding: 1rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .robot-container {
        transform: scale(0.7);
    }
}

/* Embed Modu Stilleri */
body.embed .navbar h1 {
    color: #fff;
}

body.embed .navbar img {
    filter: invert(1);
}

body.embed .navbar-actions {
    background: none;
    box-shadow: none;
}

body.embed .navbar-actions svg {
    color: #fff;
}

body.embed .blur-background {
    background-color: #001474;
    color: #fff;
}

body.embed .backdrop-overlay {
    background-color: rgb(34, 20, 77) !important;
    opacity: 1 !important;
}

body.embed .wrap-login {
    height: 100%;
    min-height: 100%;
    overflow: auto;
    box-shadow: none !important;
}

body.embed .msg_card_body .mb-5 {
    margin-bottom: 30px !important;
}

body.embed .chat .card-body {
    padding-bottom: 35px;
}

body.embed .msg_container {
    width: auto !important;
}

body.embed .chat-input {
    border-radius: 0;
    border: 0 !important;
    border-top: 1px solid #dadcdd !important;
    box-shadow: none !important;
    margin-left: -15px;
    margin-right: -15px !important;
    width: calc(100% + 30px);
    padding-top: 20px;
    padding-bottom: 0;
}

body.embed .chat-send {
    border-radius: 15px;
    right: 5px;
    top: 12px;
    height: 40px;
    width: 40px;
}

/* Karanlık Tema Stilleri */
html[data-bs-theme="dark"] header {
    border-bottom: 1px solid #3e3e3e;
}

html[data-bs-theme="dark"] .blur-background,
html[data-bs-theme="dark"] body {
    background: #272727;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .bg-white {
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

html[data-bs-theme="dark"] .text-primary {
    color: #fff !important;
}

html[data-bs-theme="dark"] .wrap-login {
    background-color: #1d1d1d !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] h1 {
    color: #fff;
}

html[data-bs-theme="dark"] .navbar-actions svg,
html[data-bs-theme="dark"] .info a {
    color: #fff !important;
}

html[data-bs-theme="dark"] .questions-container {
    background: #272727;
}

html[data-bs-theme="dark"] .img_cont_msg,
html[data-bs-theme="dark"] .questions .button,
html[data-bs-theme="dark"] .chat-input,
html[data-bs-theme="dark"] .navbar-actions {
    background-color: #80808018 !important;
    box-shadow: none;
    border: none !important;
    color: #fff !important;
}

html[data-bs-theme="dark"] .img_cont_msg.user {
    background: #3b6cf9 !important;
    color: #fff;
}

html[data-bs-theme="dark"] .chat-send {
    background: #fff !important;
}

html[data-bs-theme="dark"] .chat-send svg {
    color: #000 !important;
}

html[data-bs-theme="dark"] .img_cont_msg img,
html[data-bs-theme="dark"] .navbar-brand img {
    filter: invert(1);
    opacity: 0.9;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar {
    width: 12px;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #333;
}

html[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 3px solid #333;
}
