﻿
/*=====================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;
}

.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: underline;
    color: blue;
}

.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;
}
