/* LIGHT MODE */

body { background-color:#f2f2f2!important; color: #4f4f4f; } /* background-color:#E6E5E5!important; */

:root {
  --theme-color: #74a5e0;
  --default-text-color: #000;
  --gray-color: #6C757D;
}

.navbar { background-color: #fbfbfb!important; } /* e3f2fd */
.people-search, .fc-color, .users { background-color: #f4f4f4!important; }
.form-control, .select-arrow { color: #000!important; }
.select-option { background: #f4f4f4; }
.select-option:hover { background: #eee!important; }
.select-option.selected { background: #ddd!important; }
.select-option-text { color: #000; }

.mod-clr { background: #f4f4f4; color: #000; }
.f-out label { color: #000!important; }

.ui-widget-content { background: #f4f4f4; }
ul.ui-autocomplete { color: #000; border-bottom: 1px solid #ddd; }

.bg-clr { background: #fff; }
.mask { background-color: rgba(253, 253, 253, 0.15) }
.text-dark { color: #000!important; }

.txt-clr { color: #ddd; }
.text-clr { color: #4f4f4f; }
.text-clr-1 { color: #000!important; }

.bg-footer { background: #ddd!important; }
.footer-text-bg { background-color: rgba(0, 0, 0, 0.3)!important; }

.dropdwn-clr { background: #f4f4f4; }
.btn-clr { border-color: #ddd!important; color: #000!important; }


.ts-text-color { color: var(--default-text-color); }

.store-name-owner p, .store-name-owner h6, .store-name-owner a, .store-name-owner i, .rekl-block { padding: 0; margin: 0; }

.ts-badge { background-color: var(--theme-color)!important; color: #fff; margin: 10px 0 0 0; }


/* HOME STORE CARDS */
.card-clr { background-color: #fff!important; border: 1px solid #c6d8ed; border-radius: 20px!important; box-shadow: 20px 20px 30px rgb(0 0 0 / 2%); padding: 10px; overflow: hidden; }

.store-product-image { height: 250px; overflow: hidden; border-radius: 20px; }
.store-product-image img { border-radius: 20px; }
.badge-store { position: absolute; top: 5px; left: 0; }
.badge-store span { font-size: 12px; }
.store-ava-name { padding: 10px 5px; text-align: left; align-items: center; }
.store-name-owner { padding-left: 5px; }

.store-name-owner h6 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.a-name-owner { display: flex; align-items: center; width: 100%; text-decoration: none; }
.span-name-owner { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.store-location { font-size: 12px; margin: 0; padding: 0; }

.product-price-open-shop { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 18px; }
.open-store-btn { display: block; padding: 5px 8px; background-color: transparent; border: 1px solid var(--theme-color); color: var(--theme-color); 
	border-radius: 20px; font-size: 16px; }
.product-price-open-shop strong { padding-left: 5px; }

.product-desc-category { text-align: left; }
.product-desc-category p { margin: 0; padding: 0; }

.store-owner a { margin-bottom: 10px; color: var(--gray-color); }
.category-product-store a { color: var(--theme-color) }

.carousel-inner img { display: none; }

.ts-btn { background: linear-gradient(45deg, #74a5e0, #a35fb3) !important; color: #fff; margin-top: 60px; transition: all 0.3s ease !important; }
.ts-theme-btn { background-color: var(--theme-color); color: #fff; }

    .ts-btn-outline { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; text-decoration: none; color: #6C757D;
    border: none; outline: none; font-size: 14px; background-color: transparent; transition: all .4s ease; }
    .ts-btn-outline:hover { color: #000; transition: all .4s ease; }
    .ts-btn-outline:nth-of-type(4) { padding-left: 20px; }

.carousel-control-next, .carousel-control-prev { color: #000!important; }

.ts-btn:hover {
	color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(141, 67, 154, 0.4) !important;
    background: linear-gradient(45deg, #a35fb3, #74a5e0) !important;
}

.ts-wrapper { animation: scroll 100s linear infinite; background: url(../../img/dreamshop_banner.png); color: eee; height: 100%; width: 100%; display: flex; opacity: .33; justify-content: center; align-items: center; perspective: 1000px; perspective-origin: 50% 50%; position: absolute; top: 0; left: 0; }

@keyframes scroll {
    0% {
        background-position: 50% 0;
    }
    100% {
        background-position: 50% 100%; 
    }
}



.background-img {
    padding: 40px 0;
    display: flex;
    justify-content: center;
}


.rekl-block-2 {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); 
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
    text-align:center;
}

.rekl-block-2:hover {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}


.rekl-header h5 {
    font-weight: 700;
    color: #2d3436;
    line-height: 1.4;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}


.rekl-body {
    
}

.rekl-icon {
    font-size: 50px;
    color: #74a5e0; 
    margin-bottom: 15px;
    display: block;
}

.rekl-body h5 {
    color: #636e72;
    font-weight: 400;
    font-size: 1.1rem;
}

.rekl-body b {
    color: #74a5e0;
    background: rgba(141, 67, 154, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}


.rekl-btn {
    background: #333 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 35px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(116, 165, 224, 0.4) !important;
    transition: all 0.3s ease !important;
}

.rekl-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(116, 165, 224, 0.4) !important;
    background: #000 !important;
}



/*----------------------- INDIVIDUAL -- INDEX --------------------------*/




:root {
    --theme-color: #74a5e0;
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --secondary-gradient: linear-gradient(135deg, #f472b6, #db2777);
    --bg-color: #fff;
    --chat-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bot-message-bg: #f0f0f0;
    --user-message-bg: #e2f0ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --text-color: rgb(15, 20, 25);
    --text-color-reverse: rgb(15, 20, 25);
    --white-text: #fff;
    --black-text: rgb(15, 20, 25);
    --text-color-special: rgb(55, 67, 77);
    --btn-bg: rgba(247,249,249,1.00);
    --btn-hover: #eee;
    --btn-border: rgb(229, 234, 236);
    --textarea-bg: rgba(247,249,249,1.00);
}

.ai-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 74px;
    height: 74px;
    background-color: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-widget-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-select select option { color: var(--text-color); }

.ai-widget-container {
    font-family: "Sansation", sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 407px;
    height: 547px;
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    opacity: 0;
    transform: translateY(70px) scale(0.8);
    transform-origin: bottom right;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    border: 1px solid #ddd;
}

.ai-widget-container.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ai-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: **transparent**;
    border-bottom: none;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
}

.character-select select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, .5);
    background-color: transparent;
    color: #fff;
}

.header-buttons .control-button {
    margin-left: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    border: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    cursor: pointer;
}

.ai-model-area {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.model-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-history-area {
    position: absolute;
    top: 55px;
    bottom: 0;
    left: 0;
    right: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    display: none;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    z-index: 3;
}

.chat-message-list {
    width: 100%;
    height: calc(100% - 110px);
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.message-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 10px;
}

.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 90%;
}

.avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 40px);
}

.message-text {
    padding: 10px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    margin-right: auto;
}

.bot-message .avatar {
    margin-right: 8px;
}

.bot-message .message-text {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

.user-message .avatar {
    margin-left: 8px;
}

.user-message .message-content {
    align-items: flex-end;
}

.user-message .message-text {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
}

.action-button {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: none;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.action-button i {
    margin-right: 5px;
    color: #000;
}

.action-button .spanBtn {
    font-size: 12px;
}

.bot-message .action-button {
    color: #666;
}

.bot-message .action-button svg {
    fill: #666;
}

.user-message .action-button {
    color: #666;
}

.ai-widget-footer {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: transparent;
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 4;
}

.chat-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 18px;
}

.input-area-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
}

.input-area-group.is-chat-active {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
}

.input-area-group.is-chat-active .message-input::placeholder,
.input-area-group.is-chat-active .message-input:-ms-input-placeholder,
.input-area-group.is-chat-active .message-input::-ms-input-placeholder {
    color: #000;
}

.message-input {
    width: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    outline: none;
    overflow-y: auto;
    box-sizing: border-box;
    margin-bottom: 5px;
    font-size: 14px;
}

.message-input::placeholder,
.message-input:-ms-input-placeholder,
.message-input::-ms-input-placeholder {
    color: #fff;
    opacity: 1;
}

.input-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-controls {
    display: flex;
    gap: 5px;
}

.input-controls .control-button {
    border-radius: 10px;
    padding: 5px;
    border: none;
    color: #fff;
    cursor: pointer;
    border: 1px solid #fff;
    font-size: 14px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.1s;
}

.control-button span { padding-left: 5px; }

.input-area-group.is-chat-active .input-controls .control-button {
    color: #000;
    border-color: #888;
}

#send-voice-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    margin-left: 10px;
}

#send-voice-btn.active-send {
    background-color: var(--theme-color) !important;
}

#send-voice-btn.active-voice {
    background-color: #000 !important;
}

/* Состояние при активной записи (после клика) */
#send-voice-btn.recording {
    background-color: var(--theme-color) !important; /* Красный цвет для записи */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.control-panel {
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, .8);
    padding: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background-color: #ffffff;
}

.panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-panel-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.panel-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.panel-content select,
.panel-content button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.widget-position-select button[data-position] {
    margin-right: 10px;
}

.widget-position-select button:hover {
    background-color: #eee;
}

.memory-controls label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
    padding-right: 5px;
}

.memory-controls input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-container {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background-color: #eee;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.toggle-switch-container::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-color);
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.memory-controls input[type="checkbox"]:checked + .toggle-switch-container {
    background-color: var(--theme-color);
}

.memory-controls input[type="checkbox"]:checked + .toggle-switch-container::before {
    transform: translateX(20px);
}

@media (min-width: 601px) and (max-width: 1024px) {
    #ai-widget-container {
        width: 400px;
        height: 600px;
    }
}

@media (max-width: 600px) {
    #ai-widget-container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        border-radius: 0;
        box-shadow: none;
    }

    .ai-widget-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        left: auto;
    }

    #ai-widget-header {
        width: 100%;
    }

    #ai-widget-footer {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
    }

    .chat-history-area,
    .control-panel {
        top: 0px;
    }

    .chat-message-list {
        height: calc(100% - 90px);
    }
}

@media (max-width: 375px) {
    .control-button span { display: none; }
}




#message-input::placeholder {
    color: #fff;
    opacity: 1; 
}

#message-input::-webkit-input-placeholder {
    color: #fff;
}

#message-input:-ms-input-placeholder {
    color: #fff;
}


.input-area-group.is-chat-active #message-input::placeholder { color: #000 !important; }


