body {
    padding: 0px;
}

.upload-area {
    border: 2px dashed #1070ff;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.3s ease-in-out;
    min-height: 250px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    background: #061127;
    box-shadow: 0px 0px 0px 14px #0f1c37;
}
.upload-area.clr2{
    border-color: #28cfc7;
}

.upload-area.clr2 i{
    color: #28cfc7;
}

.upload-area:hover {
    border-color:#9cb4cd;
    background: #081735;
}

.upload-area.drag-over {
    background-color: #e3f2fd;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows images to move to a new row */
    justify-content: center;
    gap: 10px;
    /* Adds space between images */
    max-width: 100%;
    /* Prevents overflow */
    padding: 10px;
}

.image-box {
    width: 200px;
    /* Set a fixed width */
    height: 200px;
    /* Set a fixed height for uniformity */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255,0.9);
    position: relative;
    overflow: hidden;
    border-radius:16px;
    background: url(../images/trans-bg.webp)no-repeat;
    background-size: cover;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* GIF-based spinner overlay */
.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85) url('../images/loading-back.gif')no-repeat;
    display: none;
    justify-content: center;
    align-items: center;
    background-size: cover;
}

.loading-gif {
    width: 90px!important;
    height: 90px!important;
}

/* Download Button */
.download-btn {
    position: absolute;
    bottom: 1px;
    right: 1px;
    transform: translateX(-0%);
    background: rgba(0, 86, 179,0.9);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius:15px 0px 15px 0px;
    font-size: 14px;
    cursor: pointer;
    display: none;
    font-weight: 500;
}

.download-btn:hover {
    background: rgba(0, 86, 179,1);
}

.edit-btn {
    position: absolute;
    bottom: 1px;
    left: 1px;
    background: rgb(150, 32, 166,0.85);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius:0px 15px 0px 15px;
    font-size: 14px;
    cursor: pointer;
    display: none;
    font-weight: 500;
}

.edit-btn:hover {
    background: #770885;
}

/* Download All Button */
#downloadAllBtn {
    display: none;
    margin: 20px auto;
    padding: 10px 15px;
    font-size: 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#downloadAllBtn:hover {
    background: #218838;
}

/* .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
} */

.modal-content {
    text-align: center;
}

.edit-tools {
    margin-top: 10px;
}

.edit-tools input,
.edit-tools button {
    margin: 5px;
}

canvas {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 18px;
}

#frameGallery {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0px;
    margin-bottom: 20px;
}

.frame-thumbnail {
    width: 115px;
    height: 115px;
    border: 2px solid #234281;
    border-radius: 12px;
    transition: transform 0.2s ease-in-out;
    background: #060c18;
}

.frame-thumbnail:hover {
    transform: scale(1.1);
    border-color: #2958b5;
    cursor: pointer;
}


@media (max-width: 768px) {
    .image-box {
        width: 150px;
        height: 150px;
    }
}


.upload-area i{
    color: #007bff;
    font-size: 46px;
    margin-bottom: 20px;
}
.upload-area p.utitle{
    font-size: 22px;
    margin-bottom: 0px;
    font-family: "Space Grotesk", sans-serif;
}

.upload-area p span.usubtitle{
    margin-top: 5px;
    font-size: 16px;
    display: block;
    opacity: 0.7;
}



.uploaderbox{
    padding-top: 100px;
    padding-bottom: 200px;
}
.text-bg{
    display: inline-block;
    background: url(../images/text-back.webp)no-repeat;
    background-position: center;
    background-size: cover;
    padding: 4px 10px;
    color: #000;
}
/* .footer{
    background: url(../images/ft-bg.webp)no-repeat;
} */
.edit-btn::before {
    content: "\F4C9"; /* Unicode for "pencil" icon in Bootstrap Icons */
    font-family: bootstrap-icons !important; /* Very important! */
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 5px; /* Space between icon and button text */
    vertical-align: middle;
  }
  .download-btn::before {
    content: "\F30A"; /* Unicode for "pencil" icon in Bootstrap Icons */
    font-family: bootstrap-icons !important; /* Very important! */
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 5px; /* Space between icon and button text */
    vertical-align: middle;
  }
  .modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0,10px);
}
.modal-content {
    background-image: linear-gradient(to right, #172343, #04267d);
    
}
.modal .btn-close {
    border: 1px solid #da1818;
    border-radius: 50%;
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="red"><path d="M4.646 4.646a.5.5 0 011 0l2.354 2.354 2.354-2.354a.5.5 0 111 1L9.354 8l2.354 2.354a.5.5 0 11-1 1L8 9.354l-2.354 2.354a.5.5 0 01-1-1L6.646 8 4.292 5.646a.5.5 0 010-1z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    background-size: 25px;
}
.modal-body .canvas-container {
    background: url(../images/trans-bg.webp)no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0px auto;
    border-radius: 16px;
    overflow: hidden;
}
.modal-header, .modal-footer{
    border-color: #515560;
}
.modal.fade{
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}
.modal-body{
    padding-top: 29px;
    padding-bottom: 29px;
}
#cropSelectBtn, #cropBtn, #resizeBtn {
    border: none;
    border-radius: 5px;
    min-height: 32px;
    padding-left: 13px;
    padding-right: 13px;
    color: #172343;
    font-weight: 500;
    font-size: 14px;
}
#cropSelectBtn:before{
    content: "\F150"; /* Unicode for "pencil" icon in Bootstrap Icons */
    font-family: bootstrap-icons !important; /* Very important! */
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 5px; /* Space between icon and button text */
    vertical-align: middle;
    color: #0b5ed7;
}
#cropBtn:before{
    content: "\F2DD"; /* Unicode for "pencil" icon in Bootstrap Icons */
    font-family: bootstrap-icons !important; /* Very important! */
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 5px; /* Space between icon and button text */
    vertical-align: middle;
    color: #198754;
}
#resizeBtn:before{
    content: "\F14E"; /* Unicode for "pencil" icon in Bootstrap Icons */
    font-family: bootstrap-icons !important; /* Very important! */
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 5px; /* Space between icon and button text */
    vertical-align: middle;
    color: #dc3545;
}
.modiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0px;
}
.modiv-sec {
    display: flex;
    align-items: center;
    padding: 8px 0px;
}

#editModal .modal-content{
    color: #fff!important;
}

#bgImageUpload {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

/* Create a custom label that looks like a button */
#bgImageUpload + label {
    display: inline-block;
    padding: 5px 20px;
    background-color: #535865; /* Bootstrap primary blue */
    color: white;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 4px;
}

/* Hover effect */
#bgImageUpload + label:hover {
    background-color: #0b5ed7; /* Darker blue */
    transform: scale(1.02);
}

/* Focus effect */
#bgImageUpload + label:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Active click effect */
#bgImageUpload + label:active {
    background-color: #0a58ca;
    transform: scale(0.98);
}
#saveEditedImage {
    text-transform: uppercase;
    font-size: 15px;
    padding: 6px 24px;
    margin: 0 5px 0 30px;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 400;
    margin-top: 15px;
    background-color: #0d6efd;
    border: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
#saveEditedImage:before{
    content: "\F30A"; 
    font-family: bootstrap-icons !important; 
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 13px;
    vertical-align: middle;
    font-size: 22px;
}
.downbtnbox{
    display: flex;
    justify-content: center;
    align-items: center;
}
#downloadBtn{
    text-transform: uppercase;
    font-size: 15px;
    padding: 3px 24px;
    margin: 0 5px 0 0px;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 400;
    margin-top: 15px;
    background-color: #0d6efd;
    border: none;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
#downloadBtn:before{
    content: "\F30A"; 
    font-family: bootstrap-icons !important; 
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    margin-right: 13px;
    vertical-align: middle;
    font-size: 22px;
}

.custom-slider::-webkit-slider-runnable-track {
    background: #e6f598; /* Blue line */
    height: 6px;
    border-radius: 3px;
  }
  
  .custom-slider::-webkit-slider-thumb {
    background: #d53e4f; 
    border: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin-top: -7px; 
    appearance: none;
  }
  
  .custom-slider::-moz-range-track {
    background: #e6f598;
    height: 6px;
    border-radius: 3px;
  }
  
  .custom-slider::-moz-range-thumb {
    background: #d53e4f;
    border: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
  }


  


  .custom-slider-two::-webkit-slider-runnable-track {
    background: #cd5ce3; /* Blue line */
    height: 6px;
    border-radius: 3px;
  }
  
  .custom-slider-two::-webkit-slider-thumb {
    background: #df8d59; 
    border: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin-top: -7px; 
    appearance: none;
  }
  
  .custom-slider-two::-moz-range-track {
    background: #cd5ce3;
    height: 6px;
    border-radius: 3px;
  }
  
  .custom-slider-two::-moz-range-thumb {
    background: #df8d59;
    border: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
  }


  


  .custom-slider-three::-webkit-slider-runnable-track {
    background: #3288bd; /* Blue line */
    height: 6px;
    border-radius: 3px;
  }
  
  .custom-slider-three::-webkit-slider-thumb {
    background: #fee08b; 
    border: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    margin-top: -7px; 
    appearance: none;
  }
  
  .custom-slider-three::-moz-range-track {
    background: #3288bd;
    height: 6px;
    border-radius: 3px;
  }
  
  .custom-slider-three::-moz-range-thumb {
    background: #fee08b;
    border: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
  }


  /* Basic styles for header */
  
  #navmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }
  
  #navmenu ul li {
	margin: 0 5px;
}
  
  #navmenu ul li a {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-weight: 500;
}
  
  #navmenu ul li a.active {
    background-color: #2e2e2e;
    color:  var(--nav-hover-color);
  }
  
  #navmenu ul li a:hover {
    background-color: #555;
  }
  
  /* Styles for main content */
  #main-content .tab-content {
    display: none;  /* Hide all sections by default */
    padding: 20px;
    margin: 20px 0;
  }
  
  #main-content .tab-content.active {
    display: block;  /* Only show the active section */
  }
  


  .frameupload-area, #drop-zone {
    border: 2px dashed #b6aa07;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.3s ease-in-out;
    min-height: 250px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    background: #07142e;
    box-shadow: 0px 0px 0px 14px #0f2837;
    margin-bottom: 45px;
}
#drop-zone{
    min-height: 250px;
    display: flex;
    justify-content: center;
    color: #e9e9e9!important;
    font-size: 17px!important;
    margin-bottom: 40px!important;
    border-radius: 24px!important;
    border: 2px dashed #9b09da!important;
}
.frameupload-area:hover {
    border-color:#9cb4cd;
    background: #081735;
}

.frameupload-area i, #drop-zone i{
    color: #b6aa07;
    font-size: 46px;
    margin-bottom: 20px;
}
#drop-zone i{
    color: #9b09da;
}
.frameupload-area p.utitle, #drop-zone  p.utitle{
    font-size: 22px;
    margin-bottom: 0px;
    font-family: "Space Grotesk", sans-serif;
}

.frameupload-area p span.usubtitle, #drop-zone  p span.usubtitle{
    margin-top: 5px;
    font-size: 16px;
    display: block;
    opacity: 0.7;
}
input[type="file"].form-control.custom {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff!important;
    background-color: #0f2837!important;
    border: var(--bs-border-width, 1px) solid #9b09da!important;
    border-radius: 10px 10px 0px 0px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    margin-top: 40px;
    box-shadow: 0px 0px 0px 14px #0f2837;
    margin-bottom: 35px!important;
}

input[type="file"].form-control.custom::file-selector-button {
    background-color: #9b09da;
    color: #fff;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

input[type="file"].form-control.custom::file-selector-button:hover {
    background-color: #70089c!important;
    color: #000!important;
}

#compress::before {
    content: "\F390"; /* Unicode for bi-compress (or use another icon) */
    font-family: bootstrap-icons !important;
    font-weight: normal;
    display: inline-block;
    margin-right: 8px;
    font-size: 1.1rem;
    vertical-align: middle;
}
.bi-card-image{
    font-size: 25px;
}
.csoon{
    position: relative;
}
.csoon:before {
    content: 'coming soon';
    background: #fffd01;
    color: #000;
    line-height: 12px;
    border-radius: 44px 44px 10px 10px;
    font-weight: 500;
    letter-spacing: -0.5px;
    position: absolute;
    top: -5px;
    left: 61px;
    padding: 1px 5px;
    font-size: 12px;
}
.csoon:hover{
    background-color: transparent!Important;
    color: inherit!important;
}
.p-menu ul li{
    list-style: none;
    margin: 0 5px;
}
.p-menu ul li a {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 30px;
    transition: background-color 0.3s;
    font-weight: 500;
}
.p-menu ul li a i{
    margin-right: 5px;
}
.p-menu ul li a.active, .p-menu ul li a:hover {
    background: #2e2e2e;
    background-size: cover;
    color: var(--nav-hover-color);
}

.p-menu ul li a.active{
    background: #2e2e2e url(../images/nav-bg.gif)no-repeat;
    background-size: cover;
    color: #fff;
    box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.1);
}


/* ✅ Wrapper and slide-in effect */
.mobile-darknav-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .mobile-darknav {
    background-color: #121212;
    color: white;
    width: 300px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .mobile-darknav.open {
    transform: translateX(0);
  }
  
  .mobile-darknav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }
  
  .mobile-darknav-menu {
    list-style: none;
    padding-left: 0;
    margin-top: 3rem;
  }
  
  .mobile-darknav-menu li {
    margin-bottom: 1rem;
  }
  
  .mobile-darknav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
  }
  
  .mobile-darknav-menu .dropdown > .submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }
  
  .mobile-darknav-menu .dropdown.open > .submenu {
    display: block;
  }
  
  .mobile-darknav-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
  }
  .mobile-darknav-menu li{
    list-style-type: none;
  }
  .mobile-darknav-menu li i{
    margin-right: 7px;
  }
  .mobile-darknav-menu a{
    font-size: 15px;
  }
  .mobile-darknav {
    background-color: #011428;
}


  @media (max-width: 576px){

    .nav-tabs {
      border-radius: 24px;
      flex-direction: column;
      margin: 30px auto 0px auto;
    }
    .nav-tabs .nav-link {
      padding: 8px 10px;
      font-size: 1rem;
      width: calc(100% - 4px);
      display: flex;
      justify-content: center;
      align-items: center;
    }
    #myTabContent {
      border-radius: 10px;
      padding: 0px;
      margin-top: 10px;
    }
    #myTabContent .container.py-5 {
      padding-left: 0px;
      padding-right: 0px;
    }
    .card {
      margin-bottom: 0.5rem;
    }
    .card-img-top {
      height: 229px;
    }
    .p-menu.mx-auto {
        position: absolute;
        top: 60px;
        background-image: linear-gradient(#1d1d1d, #0f1c37);
        left: 0px;
        right: 0px;
    }
    .p-menu.mx-auto > ul {
      display: flex;
      flex-wrap: wrap;
      gap: 0px;
      padding: 8px 11px 8px 3px;
    }
    .p-menu.mx-auto > ul li{
      text-align: center;
      padding: 0px 0px;
      box-sizing: border-box;
      padding-left: 0px;
      flex: 1 1 calc(50% - 16px); 
    }
    .p-menu ul li a {
      color: #fff;
      padding: 4px 12px;
      text-decoration: none;
      font-size: 14px;
      border-radius: 5px;
      transition: background-color 0.3s;
      font-weight: 500;
      width: 100%!important;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      gap: 4px;
      height: 54px;
      text-align: left;
      margin: 4px;
      background-color: #102244;
      line-height: 17px;
    }
    .p-menu ul li a i {
        margin-right: 10px;
        font-size: 20px;
    }
    #bg-removal .row .col-xs-12.col-xl-6:first-child{
        order: 2;
    }
    #bg-removal .row .col-xs-12.col-xl-6:first-child img{
        width: 399px;
        margin-top: 50px;
    }
    #bg-removal .row .col-xs-12.col-xl-6:last-child{
        order: 1;
    }
    #frame-setup .row .col-xs-12.col-xl-6:first-child{
        order: 2;
    }
    #frame-setup .row .col-xs-12.col-xl-6:first-child img{
        width: 399px;
        margin-top: 50px;
    }
    #frame-setup .row .col-xs-12.col-xl-6:last-child{
        order: 1;
    }
    .imgrem-box {
        margin-top: 17px;
    }
    .upload-area p.utitle, .frameupload-area p.utitle {
        font-size: 20px;
    }
    .uploaderbox {
        padding-top: 154px;
        padding-bottom: 25px;
    }
    .image-box {
        width: 260px;
        height: 260px;
    }
    .frameupload-area p.utitle, #drop-zone  p.utitle {
        font-size: 20px;
    }
    .csoon:before {
        border-radius: 0px 5px 0px 0px;
        top: 0px;
        left: auto;
        padding: 1px 5px;
        font-size: 11px;
        right: 0px;
    }
    #cropSelectBtn, #cropBtn, #resizeBtn {
        font-size: 11px;
    }
    .modiv-sec {
        display: flex;
        align-items: center;
        padding: 8px 0px;
        flex-direction: column;
        gap: 5px;
    }
    .modiv-sec div{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .modiv-sec div label{
        width: 100px;
        text-align: left;
    }
  
}