﻿
/*=====================Img Editor Start======================*/
.image-wrapper {
    margin-top: 20px;
}

.cropper-bg {
    width: 100% !important;
}

.image-wrapper img {
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 100%;
}

.btn-parent {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.delete-btn {
    padding: 8px 20px;
    background-color: #df1111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 24px;
}
/*=====================Color Editor start======================*/
.color-btn {
    padding: 10px 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    position: relative;
}

.color-popup {
    display: none;
    position: absolute;
    top: 106%;
    width: 150%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 999;
    white-space: nowrap;
}

.color-section {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 1px solid #999;
}

.color-footer {
    border-top: 1px solid #ccc;
    padding-top: 5px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    color: #212122;
}

.color-container {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

/*=====================Img Editor End======================*/



.delete-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

    .delete-button:hover {
        background-color: darkred;
    }

.whole-theme {
    padding: 10px;
    max-height: 69vh;
    overflow-y: auto;
}
#maincontent .fadein {
    opacity: initial;
    transform: none;
    transition: none;
}

.whole-theme .fadein {
    opacity: initial;
    transform: none;
    transition: none;
}

.editor-theme {
    padding: 0px;
    max-height: 31vh;
    overflow-y: auto;
}

.btn-orange {
    background-color: #facd12;
    color: #000;
}

.editor-theme .btn {
    padding: 5px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-gray {
    background-color: #313130;
    color: #ffffff;
}

.btn-orange:hover {
    border: 1px solid #f25dac;
    color: #f25dac;
    background: none;
}

.btn-gray:hover {
    background-color: transparent;
    color: #313130;
    border: 1px solid #313130;
}

.top-re--d {
    font-size: 25px;
    font-weight: bold;
    color: #000000;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaac33;
    border-radius: 4px;
    cursor: pointer;
}

.top-blu--e {
    font-size: 25px;
    font-weight: bold;
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #095c04;
    border-radius: 4px;
    cursor: pointer;
}

.custom-chck-box {
    width: 30px;
    height: 30px;
    border: 1px solid #000000;
}

/*-------------------------------------*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

#Texteditor1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.same-btn-st, select, input[type="color"] {
    /* padding: 6px 10px;*/
    font-size: 14px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

select {
    min-width: 40px;
}

.color {
    display: flex;
    align-items: center;
    gap: 5px;
}

#editor {
    min-height: 400px;
    padding: 12px;
    border: 1px solid #ccc;
    margin: 10px;
    background: #fff;
    overflow-y: auto;
}

    #editor h1 {
        color: #fef2f2;
    }

    #editor h2 {
        color: #eff6ff;
    }

    #editor h3 {
        color: #f3e8ff;
    }



    #editor p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        gap: 10px;
        align-items: flex-start;
    }

        #editor p.flex-media {
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

    #editor:focus {
        outline: none;
    }

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th, td {
    border: 1px solid #000;
    padding: 6px;
    position: relative;
    overflow: hidden;
}

th {
    background: #f0f0f0;
}

.col-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 1;
}



.row-controls {
    margin-top: 5px;
}

    .row-controls button {
        margin-right: 5px;
        padding: 3px 6px;
    }

#htmlModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #aaa;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 400px; /* 👈 Add this */
    max-width: 90vw; /* Optional: keeps it responsive */
}


#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

#htmlInput {
    width: 100%;
    max-width: 100%;
    height: 150px;
    font-family: monospace;
    box-sizing: border-box; /* Ensures padding/borders don't overflow */
}


.resizable-image {
    width: 200px;
    height: auto;
    cursor: ew-resize;
    user-select: none;
    transition: all 0.1s ease-out;
    position: relative;
}


/*------------------------whatsapp----------------------------*/

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}
/* ===============================
   FLOATING CHAT BUTTON
================================ */
#chatToggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    padding: 14px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ===============================
   CHAT POPUP CONTAINER
================================ */
#chatBox {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 420px;
    height: 420px;
    background: #f0f2f5;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* ===============================
   HEADER
================================ */
.chat-header {
    background: #1f1f1f;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

    .chat-header strong {
        font-size: 16px;
    }

.chat-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

#closeChat {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

/* ===============================
   CHAT BODY (SCROLLABLE)
================================ */
.chat-body {
    flex: 1;
    min-height: 0;
    padding: 16px;
    background: #efeae2;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    /* SCROLLBAR */
    .chat-body::-webkit-scrollbar {
        width: 6px;
    }

    .chat-body::-webkit-scrollbar-thumb {
        background: #bdbdbd;
        border-radius: 10px;
    }

    .chat-body::-webkit-scrollbar-track {
        background: transparent;
    }

/* ===============================
   MESSAGE BUBBLES
================================ */
.bot-msg {
    background: #ffffff;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px 12px 12px 4px;
    font-size: 14px;
    line-height: 1.4;
    align-self: flex-start;
    margin-top: 10px;
    margin-right: auto;
}

.user-msg {
    background: #dcf8c6;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px 12px 4px 12px;
    font-size: 14px;
    line-height: 1.4;
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
    margin-top: 10px;
}

/* ===============================
   FAQ QUESTION BUTTONS
================================ */
#questionList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-btn {
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .question-btn:hover {
        background: #f5f5f5;
    }

/* ===============================
   INPUT BAR
================================ */
.chat-input {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #ddd;
}

    .chat-input input {
        flex: 1;
        border: none;
        outline: none;
        padding: 12px 16px;
        border-radius: 22px;
        background: #f1f1f1;
        font-size: 14px;
    }

    .chat-input button {
        width: 44px;
        height: 44px;
        margin-left: 8px;
        border-radius: 50%;
        border: none;
        background: #25d366;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .chat-input button svg {
            width: 20px;
            height: 20px;
            fill: #ffffff;
        }

    /* ===============================
   INPUT HIGHLIGHT (NO ANSWER)
================================ */
    .chat-input.highlight {
        box-shadow: 0 0 0 2px #ff9800;
        border-radius: 30px;
    }

/* ===============================
   MOBILE FULLSCREEN MODE
================================ */
@media (max-width: 576px) {
    #chatBox {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    #chatToggle {
        bottom: 16px;
        right: 16px;
    }
}



