body {
    background-color: #f7f7fc;
    align-items: center;
}
.rc-anchor-checkbox-label {font-family: shabnam !important;}

.tools-container, #process {
    width: 100%;
    max-width: 1170px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    padding: 20px;
}
.tools-container.removeBg {
    background:#FFF;
    border-radius: 8px;
}
#process {
    text-align: center;
}
 #process img {
     margin-left: 10px;
 }

@media (min-width: 768px) {
    .tools-container {
        flex-direction: row;
        gap: 0;
    }
}
.button_set-gradient {
    background-image: linear-gradient(to right, #7814f7, #ff4286 50%, #ffbd57);
    transition: all 1s;
    background-size: 200%;
}
.button_set-gradient:hover {
    background-position: 100%;
}
.form-group.sidebar {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #f2f3f7;
    padding: 0;
}
.form-group.sidebar .title { 
    border-radius: 8px 8px 0 0;
    text-align: center;
    padding: 10px;
    background: rgb(72, 50, 212);
    background: linear-gradient(148deg, rgba(72, 50, 212, 1) 0%, rgba(147, 51, 234, 1) 49%, rgba(126, 34, 206, 1) 100%);
    color: #FFF;
}
.form-group.sidebar .title p {
    font-weight: bold;
    font-size: 20px;
}
.form-group.sidebar .title span {
    
}
.sidebar ul.cat {
    list-style: none;
    padding:0;
    margin-bottom: 0;
}
.sidebar ul.cat li{
    border-bottom: 1px solid #e5e7eb;
}

.sidebar ul.cat li a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    padding: 17px 10px 17px 10px;
    transition: all 0.3s ease-in-out;
}
.sidebar ul.cat li a:hover {
    background: rgb(72 50 212 / 7%);
    color: #4832d4;
}
.sidebar ul.cat li:last-child {
    border-bottom: none;
}
.sidebar ul.cat li .right {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .icon {
    padding: 14px;
    background: #eef2ff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 1px 4px rgb(72 50 212 / 4%);
}
.sidebar ul.cat li a:hover .icon {
     box-shadow: 0px 1px 10px rgb(72 50 212 / 19%);
    scale: 1.1;
 }
.sidebar .icon img {
    width: 20px;
    height: auto;
}
.sidebar ul.cat li .right .name {
    margin-right: 15px;
}
.sidebar ul.cat li .right .name p{
    transition: all 0.3s ease-in-out;
}
.sidebar ul.cat li a:hover .name p {
    padding-right: 10px;
}
.sidebar ul.cat li .left span {
    background: #eef2ff;
    padding: 2px 23px;
    border-radius: 25px;
    color: #4832d4;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 1px 4px rgb(72 50 212 / 12%);
    display: block;
}
.sidebar ul.cat li a:hover .left span {
     box-shadow: 0px 1px 10px rgb(72 50 212 / 19%);
    scale: 1.05;
    color: #4832d4;
 }
.form-group.main-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right:0;
    padding-left: 0;
}

label {
    font-weight: normal;
    margin-bottom: 8px;
    color: #333;
}

select, textarea, input {
    font-size: 15px;
    font-weight: 100;
    height: 55px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    outline: none;
    background-color: #eef4fd;
    
}
input {width: 100%;}

select {
    width: 100%;
    color: #2b73e3;
}

textarea {
    height: 100px;
    width: 97%;
    background: #f9fafc;
    border: 2px solid #f2f3f7;
}
#charCount {
    color: #CCC;
}



.btn:focus {color: #FFF;}
.tools-top-announce .inner {
    width: 70%;
    max-width: 1130px;
    margin: 10px auto;
    background: #d3d9f7;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
}
.tools-top-announce .inner .left {
    align-self: end;
    justify-self: left;
}
.tools-container .top-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #f2f3f7;
    padding: 20px;
}

select#language {
    width: 20%;
}

#area-title {
    width: 100%;
    padding-top: 37px;
}

.language-select {
    width: 100%;
    display: flex;
}

.input-entry {
    width: 100%;
}

.submit-btn {
    align-self: flex-end;
    margin-top: 20px;
    background-color: #1a22e4; 
    color: white;
    padding: 5px 55px 5px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    position: relative;
    transition: background 0.4s ease-in-out;
}
.submit-btn:before {
    content: "";
    background: url(../images/btn-icon.svg) no-repeat;
    position: absolute;
    width: 22px;
    height: 22px;
    right: 19px;
    bottom: 10px;
}
.submit-btn:hover {
    background-color: #6b58e1;
}


.bottom-section {
    width: 100%;
    max-width: 1170px;
    margin: 20px auto;
    box-sizing: border-box;
    
}
#disclaimer {
    background: #8bc34a0a;
    color: #989595;
    padding: 5px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 14px;
}
.bottom-section .result {
    background-color: white;
    border-radius: 8px;
    border: 1px solid #f2f3f7;
    padding: 40px;
}
.bottom-section p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.button-group {
    text-align: left;
}

.output-btn, .copy-btn {
    background-color: #a1e9d6;
    color: #FFF;
    padding: 12px 15px;
    font-size: 16px;
}

.output-btn:hover, .copy-btn:hover {
    background-color: #00cc86;
    color: white;
}


/* Notification Box */
.notification-box {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: white;
    border-radius: 5px;
    z-index: 1000;
    font-size: 16px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    padding: 0 10px;
}

.notification-box.success {
    background-color: #28a745; /* Green background for success */
}

.notification-box.error {
    background-color: #dc3545; /* Red background for error */
}

.notification-box.show {
    display: block;
    opacity: 1;
    bottom: 40px; /* Slightly higher when visible */
}


/* Container for the checkbox */
.checkbox-container {
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

/* Hide the default checkbox */
.checkbox-container input[type="checkbox"] {
    display: none;
}

/* Create a custom checkbox */
.custom-checkbox {
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 2px solid #00cc86;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2s ease;
    justify-content: center;
    align-items: center;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    position: relative;
}

/* Style the checkmark */
.custom-checkbox::after {
    content: "";
    width: 17px;
    height: 8px;
    border: solid #fff;
    border-width: 2px 2px 0px 0px;
    transform: rotate(126deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    position: absolute;
    bottom: 8px;
    right: 1px;
}

/* Change the background color and show the checkmark when checked */
.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #00cc86;
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

/* Style the label text */
.checkbox-container label {
    margin-left: 8px;
}
.tools-header {
    margin-top: 50px;
}
.report {
    padding-left: 35px;
    text-align: left;
}
.report a {
    border: 1px solid #CCC;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.4s ease-in-out;
    background: #CCC;
    opacity:0.7;
    color: #FFF;
}



.div-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.div-table-row {
    display: table-row;
}

.div-table-header {
    background-color: #f2f2f2;
    font-weight: bold;
}

.div-table-cell {
    display: table-cell;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.result.right .div-table-cell {
    text-align: right;
}

/* Optional: Add hover effect */
.div-table-row:hover {
    background-color: #f1f1f1;
}

.captcha-section {
    align-items: center;
    margin-bottom: 10px;
}
.captcha-section .captcha {
    float: right;
    padding-top: 7px;
}
.captcha-section .input {
    float: right;
    margin-right: 20px;
}

.captcha-section img {
    margin-right: 10px;
    border: 1px solid #ccc;
    height: 40px;
}

#refreshCaptcha {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #000;
    padding-right: 10px;
    padding-left:0;
}
#refreshCaptcha i {vertical-align: text-bottom;}

#captchaInput {
    width: 100%;
    padding: 5px;
    text-align: center;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
/*--------------------------------------------------------*/
/* INCLUDE MORE TOOLS */
/*--------------------------------------------------------*/
.more-tools {
    margin-top: 120px;
    margin-bottom: 100px; 
}
.more-tools .content img {
        width: 40px;
        float: right
    }
.more-tools h3 a {
    color: #333;
}
.more-tools h3 a:hover {
    color: #4832d4;
}
    .more-tools .main-title {
        padding-top: 20%
    }
    .more-tools .main-title h2 {
        font-size: 24px;
        color: #333;
    }
    .more-tools .main-title a{
    font-size: 15px;
    font-weight: normal;
    color: #fa7a12;
    }
    .more-tools .main-title a:hover {
    font-size: 15px;
    font-weight: normal;
    color: #4832d4;
    }
    
    .more-tools .content .item {
        margin-bottom: 20px;
        animation-name: fadeInUp;
        animation-duration: 1.25s;
    }
    .more-tools .content .item .inner {
        padding: 5px;
        border: 1px solid #DDD 
    }
    .more-tools .content .item .inner h3 {
        font-size: 20px;
        font-weight: bold;
    }
    .other-tools {
        margin-top: 40px;
        margin-bottom: 100px; 
    }
    .other-tools .item {
        margin-bottom: 20px;
    }
    .other-tools .item .inner {
        background: #eef4fd;
        border-radius: 10px;
        padding: 5px;
        animation-name: fadeInUp;
        animation-duration: 1.25s;
    }
    .other-tools .title {
        animation-name: fadeInUp;
        animation-duration: 1.25s;
    }
    .other-tools .title img, .other-tools .content .inner img { 
        float: right;
        width: 40px;
        margin-left: 15px;
    }
    .other-tools .content .inner img {
        padding-top: 15px; 
        width: unset;
    }
    
.related-tools {
    
}
.related-tools ul {
    list-style: none;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
    gap: 1.25rem;
}
.related-tools ul li {
    background: #FFF;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgb(72 50 212 / 15%);
    padding: 15px;
    transition: all 0.3s ease-in-out; 
    border: 1px solid #FFF;
}
.related-tools ul li:hover {
    scale: 105%;
    border: 1px solid #4832d4;
}
.related-tools ul li a {
    color: #333;
}
.related-tools ul li span {
    line-height: 1.7;
}
.related-tools ul li .content {
    gap: 7px
}
.related-tools ul li .content img { 
    max-width: 32px;
}
.related-tools .title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 30px;
}

.related-tools .description p {
    font-size: 14px;
    color: #444;
    margin-top: 30px;
    text-align: justify;
    background: #eef4fd;
    border-radius: 10px;
    padding: 5px;
    height: 175px;
    overflow: hidden;
}
.upload-container {
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    margin: 40px auto;
    background: #fff;
}
.upload-container label {
    padding: 5px 10px;
    border-radius: 5px;
    background: var(--color-brand);
    color: #f1f1f1;
}
  .upload-container .icon img {
    width: 60px;
    opacity: 0.4;
  }

.upload-container.dragover {
    border-color: #2d89ef;
    background: #eaf6ff;
  }

.upload-container p {
    color: #666;
    font-size: 12px;
  }

.upload-container input {
    display: none;
  }

.preview-container {
    margin-top: 15px;
    max-height: 150px;
    overflow: hidden;
    border-radius: 8px;
  }

.preview-container img {
    display: block;
    max-height: 150px;
    width: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.background-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-direction: column;
}
.bg-option {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--color-border);
}
.bg-option.color-picker-wrap {
    background: url(../images/color-picker.png);
    background-size: cover;
}
.bg-option:hover {
    box-shadow: 0 0 0 1px #fff, 0 0 6px #b4bab7;
}

.background-options .color, .background-options .gradient {
    display: flex;
    gap: 20px;
}
.bg-option.selected {
    border: 2px solid var(--color-brand);
}
.transparent-bg {
    background-image: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQDAwMDAwQDAwQGBAMEBgcFBAQFBwgGBgcGBggKCAkJCQkICgoMDAwMDAoMDA0NDAwRERERERQUFBQUFBQUFBT/2wBDAQQFBQgHCA8KCg8UDg4OFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAAoACgDAREAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAUGCP/EACIQAQAABQMFAQAAAAAAAAAAAAAFFUNjgqLB4RESEzVRkf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwDv4AE6K0stgTgAaIAE6K0stgTgAUZra1cATW1q4A9na8WXXu/PgEqu6eQJVd08gnAAowqrjuCiADOgAowqrjuCiAD/2Q==);
    background-size: 12px 12px;
}
.gradient1 { background: linear-gradient(315deg, #D595CF,#9D9BDF); }
.gradient2 { background: linear-gradient(135deg, #FFF8CA,#FF005B); }
.gradient3 { background: linear-gradient(45deg, #40BFA8, #FEECAD); }
.gradient4 { background: linear-gradient(90deg, #6D53DC, #DB8282); }
.gradient5 { background: linear-gradient(130deg, #02AABD, #00CDAC); }
.gradient6 { background: linear-gradient(200deg, #4E65FF, #92EFFD); }
.gradient7 { background: linear-gradient(45deg, #A9F1DF, #FFBBBB); }

.color-picker {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

canvas.remove-bg {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px auto;
    max-width: 80%;
    display: block;
}

.change-bg-color {
    width: 80%;
    margin: 20px auto;
    border-radius: 10px;
    background: #f7f7fc;
    padding: 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    position: relative;
    padding-top: 40px;
}
.change-bg-color h4 {
    position: absolute;
    right: 10px;
    top: 10px;
}
.change-bg-color .format-selection {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    align-items: self-end;
}
.change-bg-color .format-selection input {
    width: 18px;
    height: 18px;
    vertical-align: sub;
}
.change-bg-color .format-selection .btn-blue {
    font-size: 14px;
    padding: 5px 10px;
    outline: none;
    border: none;
    border-radius: 6px;
}
.removeBg #skeleton-wrap {
    width: 60%;
    max-height: 250px;
    margin: 20px auto;
    display: block;
}
.skeleton-loader {
    width: 100%;
    padding-top: 100%;

    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 2;
}
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.removeBg .skeleton-loader {
    height: 100%;
    padding: unset;
    height: 250px;
}
.skeleton-loader span {
    position: absolute;
    top:40%;
    right: 0;
    left: 0;
    margin: auto;
    width: max-content;
    height: 50px;
    padding-top: 60px;
    color: #CCC;
    background: url(../images/skeleton-image.svg) no-repeat center center;
    background-size: contain;
}
 .remove-bg-ex {
    position: relative;
    width: 600px; /* Adjust based on your image */
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.before-image, .after-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s ease-in-out;
}

.slider-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--color-brand);
    transition: left 2s ease-in-out;
}
           
/*--------------------------------------------------------*/
/* MEDIA QUERIES */
/*--------------------------------------------------------*/

@media (max-width: 767px) {
   
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    select#language {width: 100%;}
    .tools-header .title {line-height: 1.4 !important;}
    .more-tools .main-title {padding-top: 40px;}
    .more-tools {margin-top: 0;}
    #captchaInput {margin-top: 10px}
    .captcha-section .input {margin-right: 0;}
    .captcha-section .captcha {padding-top: 17px; margin-left: 15px;}
    .related-tools ul { grid-template-columns: repeat(2, minmax(0, 1fr));}
    .related-tools .description p { height: unset; }
    .tools-top-announce .inner {
        width: 90%;
        display: flex;
        flex-direction: column; 
   }
   .tools-top-announce .inner .left {align-self: center;}
   .bg-remove #skeleton-wrap {
        width: 100%;
     }
     .bg-remove .image-section {
        max-width: 100%;
     }
     .change-bg-color {
        display: flex;
        flex-direction: column;
        width: 100%;
     }
     canvas.remove-bg {
        max-width: 100%;
     }
     .bg-option {
        display: inline-block;
     }
     .background-options .color, .background-options .gradient {
        display: block;
     }
     .change-bg-color .format-selection {
        flex-direction: row;
     }
     .removeBg #skeleton-wrap {
        width: 100%;
     }
}
@media (max-width: 480px) {
    .related-tools ul { grid-template-columns: repeat(1, minmax(0, 1fr));}
}
