﻿.toast-bg-success {
    background-color: green;
    color: #fff;
}

.toast-bg-danger {
    background-color: red;
    color: #fff;
}

.toast-bg-warning {
    background-color: peru;
    color: #fff;
}

.toast-bg-info {
    background-color: gray;
    color: #fff;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.rating>input {
    display: none;
}

.rating>label {
    position: relative;
    width: 1em;
    color: #FFD600;
    cursor: pointer;
}

.rating>label::before {
    content: "\2605";
    position: absolute;
    opacity: 0;
}

.rating>label:hover:before,
.rating>label:hover~label:before {
    opacity: 1 !important;
}

.rating>input:checked~label:before {
    opacity: 1;
}

.rating:hover>input:checked~label:before {
    opacity: 0.4;
}

.projeUl {
    padding: 0;
}

#prgLoader {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(6, 6, 6, 0.59);
    display: none;
    z-index: 10000;
}

.progressLoading {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.pictureP img {
    width: 120px;
    resize: both;
}

.up-arrow {
    width: 0;
    height: 0;
    border: solid 5px transparent;
    background: transparent;
    border-bottom: solid 7px gray;
    border-top-width: 0;
    cursor: pointer;
}

.down-arrow {
    width: 0;
    height: 0;
    border: solid 5px transparent;
    background: transparent;
    border-top: solid 7px gray;
    border-bottom-width: 0;
    margin-top: 1px;
    cursor: pointer;
}

#Photo-error {
    margin-top: -10px;
}

.image-previewer {
    height: 220px;
    width: 220px;
    display: flex;
    border-radius: 10px;
    border: 1px solid lightgrey;
    object-fit: cover;
}

#FormFile {
    margin-top: 15px;
    width: 220px;
    border-radius: 1rem;
    padding: 10px;
    color: transparent;
    font-weight: bold;
    border: 1px solid lightgrey;
}

.input-title {
    position: relative;
    margin-bottom: .5rem;
}

.infoimg {
    resize: both;
    width: 12px;
    top: 5px;
    right: 5px;
    position: absolute;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #dedbdb;
    border-radius: 10px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0.17rem 0.75rem 0.17rem 0.75rem;
    min-height: 28px;
}

.select2-container .select2-selection--single {
    height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 0px;
    top: 50%;
    right: 3px;
}

.select2-container .select2-selection--multiple {
    height: 36px !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #dedbdb;
    border-radius: 10px;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    height: 30px !important;
    overflow-y: auto !important;
    width: 100%;
    margin: 2px;
}

.projeTitle {
    padding-left: 5px;
    font-weight: 600;
    font-size: 1.5em;
    color: #2f3132;
    margin-bottom: 10px;
}

gallery .box {
    width: 220px;
    position: relative
}

.delete {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
}

.gallery .box img {
    width: 100%
}

.zoom {
    transition: transform .2s;
}

.zoom:hover {
    -ms-transform: scale(3) !important;
    -webkit-transform: scale(3) !important;
    transform: scale(3) !important;
    z-index: 20000;
    position: absolute;
}


.fav-toggle {
    display: inline-flex;
    align-items: center;
    opacity: .55;
    cursor: pointer;
}

.fav-toggle:hover {
    opacity: 1;
}

.fav-toggle.is-fav {
    opacity: 1;
}



/* Chat Konteyner */
#support-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
}

/* Launcher button (balon) */
.sc-launcher {
    border-radius: 999px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Chat window */
.sc-window {
    width: 340px;

    max-height: 320px;
   
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    bottom: 52px;
    z-index: 1;
}
.sc-window.sc-window-tall {
    max-height: min(640px, calc(100vh - 80px));
}

.sc-header {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.sc-body {
    padding: 10px;
    background: #f5f5f7;
    overflow-y: auto;
    flex: 1 1 auto;
}

.sc-footer {
    padding: 8px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    flex: 0 0 auto;
}

/* Mesajlar */
.sc-message {
    display: flex;
    margin-bottom: 8px;
}

.sc-message-bot {
    flex-direction: row;
}

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



.sc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sc-avatar-bot {
    background-image: url('/fonangels-icon.png');
    background-size: cover;
    background-position: center;
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sc-avatar-bot img {
    display: block;
    max-width: 24px;
    max-height: 24px;
}

.sc-avatar-user {
    background-color: #6c757d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.sc-bubble {
    max-width: 75%;
    padding: 7px 10px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.4;
    margin: 0 6px;
}

.sc-message-bot .sc-bubble {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    color: #222;
}

.sc-message-user .sc-bubble {
    background: #0d6efd;
    color: #fff;
}

/* Bot yazıyor animasyonu */
.sc-message.sc-typing .sc-bubble {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sc-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: sc-typing 1s infinite ease-in-out;
}

.sc-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.sc-typing-dot:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes sc-typing {

    0%,
    80%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}


/* Maskot konumu */
#supportChatWidget,
#support-chat-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1050;
}



@keyframes fa-wave {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(8deg);
    }

    60% {
        transform: rotate(-8deg);
    }

    80% {
        transform: rotate(6deg);
    }

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

/* Launcher’daki küçük logo */
.sc-avatar-launcher {
    position: absolute;
    left: -20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: 20% 80%; /* sallama pivot’u */
    z-index: 2;                /* pencerenin ÜSTÜNDE dursun – bkz. madde 2 */
}

.sc-avatar-launcher img {
    max-width: 24px;
    max-height: 24px;
}

/* Sallama */
.sc-avatar-launcher.is-waving {
    animation: fa-wave 1s ease-in-out 3;
}

#supportChatWindow {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

#support-chat-widget.sc-open #supportChatWindow {
    opacity: 1;
    transform: translateY(0);
}

#support-chat-widget.sc-open .sc-avatar-launcher {
    transform: translate(-120px, -220px);
    opacity: 0;
}

/* Chat kapalıyken normal hali */
#support-chat-widget .sc-launcher {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Chat AÇIKKEN launcher butonu görünmesin */
#support-chat-widget.sc-open .sc-launcher {
    opacity: 0;
    pointer-events: none;
}

#support-chat-widget {
    background: transparent !important;
}

/* Mobil düzen – sadece chat kutusu, overlay yok */
@media (max-width: 576px) {
    #support-chat-widget.sc-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.25); 
        z-index: 0;                      
    }

    #support-chat-widget {
        position: fixed;
        bottom: 0.75rem;
        z-index: 1050;
        left: 2.0rem;
        right: auto;               
    }

    .sc-window {
        width: calc(100vw - 5.0rem);
        left: 0rem;
        right: auto;
        bottom: 0px;
        max-height: 70vh;
    }

    .sc-avatar-launcher {
        z-index: 2;
    }

    .sc-launcher {
        z-index: 2;
    }
}

/* FonAI chat widget - public site parity */
#supportChatWidget,
#support-chat-widget {
    position: fixed;
    right: 0;
    bottom: 74px !important;
    z-index: 1050;
    background: transparent !important;
}

.sc-launcher {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: center;
}

.sc-launcher-icon-card {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0E2F43;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.18);
}

.sc-launcher-icon-card img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.sc-window {
    width: 340px;
    max-height: 320px;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 56px;
    bottom: 0;
    z-index: 1;
}

.sc-window.sc-window-tall {
    max-height: min(640px, calc(100vh - 140px));
}

.sc-chat-close-btn {
    border: 0;
    background: transparent;
    color: #f47f49;
    padding: 0;
    box-shadow: none !important;
    font-size: 20px;
    line-height: 1;
}

.sc-chat-close-btn:focus,
.sc-chat-close-btn:hover {
    border: 0;
    background: transparent;
    color: #f47f49;
    box-shadow: none !important;
}

.sc-chat-input {
    border: 0;
    box-shadow: none !important;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.sc-chat-input:focus {
    border: 0;
    box-shadow: none !important;
    background: transparent;
}

.sc-chat-input::placeholder {
    color: #8a8f98;
}

.sc-chat-send-btn {
    width: auto;
    height: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #ff893b;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    line-height: 1;
}

.sc-chat-send-btn:focus,
.sc-chat-send-btn:hover {
    border: 0;
    background: transparent;
    color: #ff893b;
    box-shadow: none !important;
}

.sc-chat-send-btn i {
    display: block;
    color: #f47f49;
    padding: 10px;
    font-size: 18px;
    line-height: 1;
}

#supportChatWindow {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

#support-chat-widget.sc-open #supportChatWindow {
    opacity: 1;
    transform: translateY(0);
}

#support-chat-widget.sc-open .sc-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.96);
}

@media (max-width: 576px) {
    #support-chat-widget {
        right: 0;
        left: auto;
        z-index: 21050;
    }

    .sc-window {
        width: min(340px, calc(100vw - 32px));
        position: fixed;
        right: auto;
        left: 50%;
        bottom: 74px;
        max-height: 70vh;
    }

    #supportChatWindow {
        transform: translate(-50%, 10px);
    }

    #support-chat-widget.sc-open #supportChatWindow {
        transform: translate(-50%, 0);
    }
}
