.asset-row{
    height: 275px;
}


/* Asset Mod Style */
.new-asset-mod {
    display: flex;
    width: 100%;
    max-width: 1500px;
    min-width: 350px;
    height: auto;
    margin: 5vh auto 0 auto;
    background: var(--background);
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 700px;
    top: 0;
}

.asset-left-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 1px solid var(--border);
    background: inherit;
    position: relative;
    padding: 24px 12px;
}

.asset-right-panel {
    width: 500px;
    min-width: 320px;
    background: #fff;
    position: relative;
    z-index: 1;
    padding: 24px 16px;
}

.asset-preview {
    display: block;
    width: 100%;
    max-width: 900px;   /* Or whatever max you want */
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 1px 1px 8px var(--shadow);
    background: #f1f1f1;
    margin-top: 30px;
    min-width: 200px;
}


.text-overlay-canvas {
    position: absolute;
    top: 0; left: 90px;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 2;
}

.img-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width:90%;
}

.portrait-video{
    top: -46px !important;
    background: rgba(255, 255, 255, .8) !important;
    max-width: 252px;
    position: relative;
}



/* Laptop screens: 1024px–1440px */
@media (max-width: 1440px) {
    .new-asset-mod {
        display: flex;
        width: 100%;
        max-width: 1500px;
        min-width: 350px;
        height: auto;
        margin: 5vh auto 0 auto;
        background: var(--background);
        border-radius: 10px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        min-height: 600px;
        top: 0;
    }

    .preview-image{
        max-height: 460px;
        top: -50px;
        position: relative;
    }

    .pdd-apply {
        margin-top: 20px;
        position: absolute;
        width: 250px;
        height: 50px;
        bottom: 25px;
        right: 0;
        left: 275px;
        margin: auto;
    }

    .add-text-btn{
        margin-top: 20px;
        position: absolute;
        width: 250px;
        height: 50px;
        bottom: 25px;
        left: 0;
        right: 275px;
        margin: auto;
    }

    .landscape-video{
        background: rgba(255, 255, 255, .8) !important;
        top: -20px !important;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        width: 90%;
        border-radius: 10px;
        position:relative;
    }
    
    

  }
  
  /* Big desktop screens: 1441px and up */
  @media (min-width: 1441px) {
    .new-asset-mod {
        display: flex;
        width: 100%;
        max-width: 1500px;
        min-width: 350px;
        height: auto;
        margin: 5vh auto 0 auto;
        background: var(--background);
        border-radius: 10px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        min-height: 700px;
        top: 9vh;
    }

    .pdd-apply {
        margin-top: 20px;
        position: absolute;
        width: 250px;
        height: 50px;
        bottom: 25px;
        right: 0;
        left: 275px;
        margin: auto;
    }

    .add-text-btn{
        margin-top: 20px;
        position: absolute;
        width: 250px;
        height: 50px;
        bottom: 25px;
        left: 0;
        right: 275px;
        margin: auto;
    }

    .preview-image{
        max-height: 515px;
        top: -25px;
        position: relative;
    }

    .landscape-video{
        background: rgba(255, 255, 255, .8) !important;
        top: -40px !important;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        width: 90%;
        border-radius: 10px;
        position:relative;
    }
    

  }





  .video-voiceover-btn {
    width: 42%;
    position: absolute;
    bottom: 30px;
    border: 0 !important;
    height: 55px !important;
    left: 5%;
}

.voice-selection-btn {
    width: 43%;
    position: absolute;
    bottom: 30px;
    background: var(--shadow) !important;
    color: var(--icon) !important;
    border: 0 !important;
    height: 55px !important;
    right: 5% !important;
}
  

/* End Asset Mod Style */

.upload-asset-mod{
    width: 420px !important;
    height: 225px !important;
    margin: auto;
    margin-top: 35vh;
}

.upload-modal-title{
    font-size: 17px;
    color:var(--text);
}

.upload-modal-text{
    font-weight: normal;
    color:var(--text);
}


#new-image-btn{
    position: absolute;
    left: 5%;
    bottom: 20px;
    width: 90%;
    height: 50px;
}


#new-video-btn{
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 150px;
    height: 50px;
}

.close-asset-upload{
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor:pointer;
}

.video-script-btn{
    width: 42%;
    position: absolute;
    bottom: 31px;
    border: 0 !important;
    height: 55px !important;
    left: 5%;
}


.voice-option{
    background: var(--background);
    border-radius: 10px;
    margin-bottom: 15px;
    height: 60px;
    position: relative;
    top: 10px;
}

.voice-option-list{
    width: 90%;
    position: relative;
    left: 5%;
    top: 25px;
    height: auto;
}

.vl-scroll{
    height: 370px;
    overflow: auto;
}

.back-voices-btn{
    position: absolute;
    bottom: -73px;
    right: 0px;
    width: 150px;
    height: 45px;
}

.voice{
    position: absolute;
    left: 75px;
    top: 8px;
}

.voice-desc{
    position: absolute;
    left: 75px;
    top: 28px;
    font-size: 12px;
    font-weight: normal;
}

.audio-btn{
    font-size: 30px;
    position: absolute;
    left: 21px;
    top: 15px;
    cursor:pointer;
}

.select-voice-option{
    position: absolute;
    font-size: 30px !important;
    top: 14px;
    right: 15px;
    cursor:pointer;
    transition:.5s;
    color:var(--text);
}

.select-voice-option:hover{
    color:var(--chartColor);
}

.empty-asset-ad-btn{
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    width: 350px;
    height: 60px;
    top: 43vh;
}



.confirm-modal{
    position: fixed !important;
    left: 50px;
    right: 0;
    margin: auto;
    width: 500px;
    top: 35vh;
    height: 220px;
    border-radius: 10px !important;
}

.video-table-player{
    border-radius: 10px;
    position: relative;
    top: 5px;
}

.confirm-modal-title, .confirm-upload-title{
    position: relative;
    left: 20px;
    font-size: 18px;
    font-weight: bold;
    top: 10px;
}

.confirm-modal-text{
    position: relative;
    left: 20px;
    font-size: 17px;
    font-weight: 500;
    top: 10px;
}

.modal-no-btn{
    position: absolute;
    right: 200px;
    bottom: 25px;
    width: 150px;
    height: 50px;
    color: var(--icon) !important;
    background: var(--shadow) !important;
}

.modal-yes-btn{
    position: absolute;
    right: 30px;
    bottom: 25px;
    width: 150px;
    height: 50px;
}

.show-all-images{
    font-size:13px !important;
    cursor:pointer;
    width: 115px;
    text-align: center;
    opacity:0.8 !important;
    color:var(--btnColor) !important;
}

.show-all-images:hover{
    font-size:13px !important;
    color:var(--btnColor) !important;
    opacity:0.5 !important;
}

.no-assets{
    text-align: center;
    font-size: 12px;
    position: relative;
    top: 15px;
}

.new-asset-btn{
    position: relative;
    float: right;
    font-size: 12px !important;
    opacity:1 !important;
    color:var(--btnColor) !important;
}

.asset-btn-list{
    float:right;
}


.asset-btn-list li{
    float: left;
    margin-left: 15px;
}


.new-asset-btn:hover{
    opacity:0.5 !important;
    color:var(--btnColor) !important;
}

.no-asset-btn{
    position: relative;
    top: 20px;
    border-radius: 6px;
    box-shadow: 1px 1px 8px var(--shadow);
    background: #f1f1f1;
    max-width: 462px;
    max-height: 375px;
    margin: auto;
    text-align: center;
    display: block;
    left: 0;
    right: 0;
}

.no-asset-btn:hover{
    background: var(--icon) !important;
    border: 1px solid var(--icon) !important;
    color:var(--btnColor) !important;
}






.blank-asset-preview{
    height: 462px;
    width: 94%;
    background: var(--background);
    border-radius: 6px;
    position: absolute;
    left: 0px;
    top: 0;
    right: 0;
    margin: auto;
    margin-left: 3%;
}

.enhance-prompt, .stylize-prompt{
    width: 400px;
    position: absolute;
    right: 55px;
    height: 400px;
    top: 50px;
}

.asset-content-section{
    width: 408px;
    position: absolute;
    right: 49px;
    height: 400px;
    top: 100px;
}

.enhance-btn{
    width: 192px;
    height: 50px;
    margin-top: 30px;
    background: var(--shadow) !important;
    color: var(--icon) !important;
    border: 0 !important;
}

.enhance-product-btn{
    margin-right:20px;
}

.save-asset-btn{
    width: 100%;
    height: 55px;
    margin-top: 30px;
    width: 100%;
    height: 55px;
    margin-top: 30px;
}

.asset-enhance-prompt, .asset-stylize-prompt{
    height: 275px !important;
    resize: none;
}

.assset-close-ico{
    font-size: 22px;
    position: absolute;
    top: 15px;
}

.back-upload-btn{
    position: relative;
    top: 30px;
    height: 55px;
    background: none !important;
    color: var(--icon) !important;
    border: 2px solid var(--icon) !important;
    width: 110px;
}

.ai-product-btn, .ai-stylize-btn{
    float: right;
    width: 70%;
    height: 55px;
    margin-top: 30px;
    position: relative;
}

.close-upload-btn{
    position: absolute;
    right: 20px;
    font-size: 18px;
    top: 15px;
    cursor: pointer;
    z-index: 2;
}



.enhance-loader{
    position: absolute !important;
    left: 0px !important;
    right: 0 !important;
    top: 155px !important;
}

.no-fb-ad-ico{
    font-size: 25px;
    color: var(--icon);
    opacity:0.5;
}

.fb-ad-ico{
    font-size: 25px;
    color: var(--chartColor);
}


.image-loader{
    position: absolute !important;
    left: -50px !important;
    right: 0px !important;
    top: 150px !important;
}


.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }
  
  .asset-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
  }
  
.slider-image-box {
    text-align: center;
    flex-shrink: 0;
    border-radius: 10px;
    position: relative;
}
  
.slider-image-box img {
    height: 265px;
    width: auto;
    border-radius: 10px;
    box-shadow: 1px 1px 8px var(--shadow);
    background: #222;
    position: relative;
    transition:0.5s;
}

.slider-image-box img:hover {
    filter: blur(3px);  
    transition: filter 0.9s;
}

.trash-image {
    position: absolute;
    top: 105px;
    left: 0;
    font-size: 18px;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s;
    margin: auto;
    width: 50px;
    background: rgba(255, 255, 255, .6) !important;
    z-index: 10;
    color: var(--text) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    text-align: center;
    right: 0;
    margin: auto;
}

.video-slider-player{
    width: 92% !important;
    margin: auto !important;
    max-height: 274px;
    background: var(--mod);
}

.create-ad-asset{
    position: absolute;
    top: 20px;
    left: 24px;
    margin: auto;
    opacity: 0 !important;
    width: 150px;
    background: rgba(255, 255, 255, .6) !important;
    z-index: 10;
    color: var(--text) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 100px !important;
    font-size: 13px !important;
}

.slider-image-box:hover .trash-image, .grid-image-box:hover .trash-image  {
    opacity: 1;
    pointer-events: auto;
}

.slider-image-box:hover .create-ad-asset, .grid-image-box:hover .create-ad-asset {
    opacity: 1 !important;
    pointer-events: auto;
}

.trash-image:hover {
    background: #b80000;
    color: #fff;
}

.type-display{
    font-size: 12px;
    position: absolute;
    right: 20px;
    top: 220px;
    background: rgba(255, 255, 255, .5);
    padding: 5px 20px;
    border-radius: 100px;
    z-index: 10;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.no-products-table{
    text-align: center;
    color: var(--text);
    opacity:.7;
    top: 100px;
    position: relative;
}

.asset-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--brightText);
    position: absolute;
    left: 0;
    bottom: 7px;
    text-align: left;
    margin-left: 5%;
    width: 90%;
}
  
.slider-arrow {
    color: var(--icon);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    border: none;
    background: none;
    margin: 5px;
    position: relative;
    top: -15px;
}

.slider-arrow i{
    font-size: 30px;
}
  
.right-arrow{
    position:relative;
    left:10px;
}

.left-arrow{
    position: relative;
    right: 10px;
}

.search-products{
    width: 300px !important;
    position: absolute;
    right: 20px;
    top: 13px;
    height: 40px !important;
}

.all-assets-grid {
    width: 99%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
  
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 0 30px 0;
}

.grid-image-box {
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.18s, transform 0.16s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    cursor: pointer;
    min-width: 300px;
    max-width: 320px;
}

.grid-image-box:hover {

    transform: translateY(-6px) scale(1.02);
}

.grid-image-box img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.asset-title-grid{
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--brightText);
    position: absolute;
    left: 0;
    bottom: 18px;
    text-align: left;
    margin-left: 5%;
    width: 90%;
}
  
.back-to-slider{
    position: absolute;
    left: 15px;
    top: 0;
    width: 100px;
}

.table-list{
    width: 300px;
    position: relative;
    float: right;
}

.table-list li{
    float:right;
    margin-left: 15px;
}


.asset-row,
.asset-slider {
  scrollbar-width: none;   
  -ms-overflow-style: none;  
  overflow-x: auto;
  overflow-y: hidden;
}

.asset-row::-webkit-scrollbar,
.asset-slider::-webkit-scrollbar {
  display: none;       
}


.pdd-title{
    position: absolute;
    top: 16px;
    left: 24px;
}

.product-dropdown i{
    position: absolute;
    right: 20px;
    top: 22px;
    font-size: 13px;
}


.text-layer {
    position: absolute;
    left: 40px;
    top: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: move;
    user-select: none;
    z-index: 20;
    display: flex;
    align-items: center;
    min-width: 40px;
    max-width: none;
}
.text-layer.selected {
    outline: 2px dashed #3c4df9;
    background: #111a;
}
.text-layer .resize-handle {
    width: 14px;
    height: 14px;
    background: #3c4df9;
    position: absolute;
    right: -7px;
    bottom: -7px;
    border-radius: 50%;
    cursor: se-resize;
    z-index: 21;
    border: 2px solid #fff;
}
.text-layer input.text-edit {
    background: transparent;
    color: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    width: 100%;

}

.text-layer .text, .text-edit {
    white-space: nowrap;
    display: inline-block;
    width: auto;
    min-width: 40px;
    max-width: none;

}

.text-layer .color-controls {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: #24252a;
    border-radius: 12px;
    padding: 24px 28px 18px 28px;
    box-shadow: 0 4px 24px #1119;
    z-index: 100000;
    flex-direction: column;
    min-width: 240px;
    max-width: 260px;
    width: max-content;
    gap: 0;
}

.text-content-input{
    width: 100%;
    min-width: 120px;
    font-size: 17px;
    font-weight: bold;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.text-layer.selected .color-controls {
    display: flex;
}

.text-layer .color-controls .control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 6px;
}

.text-layer .color-controls .control-group label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.text-layer .color-controls input[type="color"] {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    background: #191a1f;
    cursor: pointer;
}

.text-layer .color-controls input[type="range"] {
    width: 100%;
    margin-top: 4px;
    accent-color: #3c4df9;
}

.text-layer .font-family-picker {
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 5px;
    margin-top: 2px;
    width: 100%;
    background: #23242a;
    color: #fff;
    border: 1px solid #444;
    height: 40px;
    outline:none;
}

.duplicate-text{
    font-size: 14px;
    width: 100%;
    height: 40px;
    background: none;
    color: #f1f1f1;
    border: none;
    border-radius: 4px;
    font-weight: normal;
    border: 1px solid #444;
}

.create-product-section {
    width: 1020px;
    position: absolute !important;
    left: 0;
    right: 0;
    margin: auto;
    top: 10vh;

}

.cp-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 32px;
}

.create-product-fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.top-row {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
}

.field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-form-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
    letter-spacing: 0.01em;
}

.input:focus {
    border-color: var(--icon);
}

.pr-description, .pr-features {
    min-height: 60px;
    resize: vertical;
}

.action-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.save-product-btn{
    width: 150px;
    height: 50px;
}

.cancel-product-btn{
    width: 150px;
    height: 50px;
    opacity:0.5 !important;
}

.table-img{
    width: 150px;
    border-radius: 10px;
}

.card-img{
    width: 150px;
    height: 100px;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    left: 20px;
    top: 20px;
}

.product-card{
    position: relative;
    background: var(--background);
    margin-bottom: 20px;
    height: 140px;
}

.card-title{
    position: absolute;
    left: 190px;
    top: 20px;
}


.npa-load-products{
    width: 1020px;
    margin: auto;
    top: 2vh;
    height: 700px;
}


.add-card-product-btn{
    position: absolute;
    top: 85px;
    right: 20px;
    width: 124px;
    font-size: 12px;
}

.card-desc{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 350px;
    display: block;
    position: absolute;
    left: 190px;
    top: 46px;
    font-weight: normal;
  }

  .finish-npalp{
    position: relative;
    float: right;
    width: 150px;
    top: 20px;
    right: 20px;
    opacity: .7 !important;
  }

  .npalp{
    margin-top: 20px;
    height: 500px;
    overflow: auto;
  }

  .npalp-note{
    position: relative;
    top: 55px;
  }
  .btn-added{
    opacity:0.3 !important;
  }

  .added-cards {
    display: grid;
    grid-template-columns: repeat(5, 100px);
    grid-template-rows: repeat(2, 100px);
    gap: 12px;
    padding: 8px 0;
    justify-content: start; /* Optional: or 'center' for centering */
    margin-top:20px;
}

.card-preview {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 2px solid #e2e6ee; /* Soft border for clarity */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.edit-script-prompt{
    height: 90%;
    width: 1020px;
    margin: auto;
}

.edit-script-title{
    margin-top: 10px;
    margin-bottom: 20px;
}

.reset-script-btn{
    background: indianred !important;
    margin-top: 30px;
    height: 45px;
}

.edit-script-input{
    height: 80% !important;
    resize: none !important;
    outline: none;
    padding: 20px;
    border-radius: 10px;
    background: var(--background) !important;
    border: none !important;
    position: relative;
    width: 100%;
}

.send-new-script{
    float: right;
    height: 45px;
    margin-top: 30px;
    margin-left: 20px;
    width: 250px;
}

.cancel-edit-video{
    float: right;
    height: 45px;
    margin-top: 30px;
    margin-left: 20px;
    width: 150px;
    opacity: .6 !important;
}
