/* Modal */

.assets-modal{
    display:none;
    pointer-events: none; 
    position: absolute;
    width: 300px;
    height:auto;
    overflow-y: hidden;	
    pointer-events: auto; /* Modal itself is clickable */
}

.assets-modal.show{
    display:flex;
}

.assets-modal-content{

/*    width:530px;
    max-width:95%;*/
    background:#fff;
    border-radius:14px;
    padding:14px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);

}

/* Header */

.assets-modal-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:5px;
    padding:0px;

}

.assets-modal-header h2{

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 8px 0px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.assets-close{

    font-size:17px;
    color:#777;
    cursor:pointer;

}

.assets-close:hover{
    color:#000;
}

/* Search */

.assets-modal .search-box{

    position:relative;
    margin-bottom:20px;

}

.assets-modal .search-box i{

    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#666;

}

.assets-modal .search-box input{

    width:100%;
    height:46px;
    border:1px solid #cfcfcf;
    border-radius:10px;
    padding-left:45px;
    font-size:17px;
    outline:none;

}

/* Asset List */

.assets-modal .asset-list{

    max-height:350px;
    min-height:350px;
    overflow-y:auto;
    margin-bottom:25px;

}

.assets-modal .asset{

    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:5px 0;
    border-bottom:1px solid #e5e5e5;

}

.assets-modal .asset-left{

    display:flex;
    align-items:flex-start;
    gap:15px;

}

.assets-modal .file-icon{

    font-size:26px;
    color:#333;
    margin-top:5px;

}

.assets-modal .asset-name{

    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 8px 4px 8px 0px; */
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;

}

.assets-modal .asset-name:hover{
	color:blue;
	text-decoration: underline;
	cursor:pointer;
}
.assets-modal .asset-type{

    color:#777;
    font-size:15px;

}

.assets-modal .asset-actions{

    display:flex;
    gap:20px;
    align-items:center;
    padding-right: 10px;

}

.assets-modal .asset-actions i{

    cursor:pointer;
    color:#111;
    font-size:18px;
    transition:.2s;

}

.assets-modal .asset-actions i:hover{

    transform:scale(1.1);

}

.asset-actions .delete{

    color:#ef2b1c;

}

.asset-actions .save{

    color:#19f749;

}

/* Footer */

.assets-modal .add-btn{

    width:100%;
    height:52px;
    border:none;
    background:#ef2217;
    color:#fff;
    border-radius:12px;
    font-size:24px;
    font-weight:600;
    cursor:pointer;

}

.assets-modal .add-btn:hover{

    background:#d61d13;

}

/* Scrollbar */

.assets-modal .asset-list::-webkit-scrollbar{
    width:8px;
}

.assets-modal .asset-list::-webkit-scrollbar-thumb{
    background:#bbb;
    border-radius:10px;
}

.assets-modal .asset-list::-webkit-scrollbar-track{
    background:#eee;
}
.assets-modal .edit-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 2px solid #d9d9d9;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.assets-modal .edit-input:hover {
    border-color: #b5b5b5;
}

.assets-modal .edit-input:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.15);
}

.assets-modal .edit-input::placeholder {
    color: #999;
    font-weight: 400;
}

.assets-save-btn,
.assets-cancel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assets-save-btn {
    color: #16a34a;
    background: #e8f5e9;
}

.assets-save-btn:hover {
    background: #16a34a;
    color: #fff;
}

.assets-cancel-btn {
    color: #dc2626;
    background: #fdecec;
}

.assets-cancel-btn:hover {
    background: #dc2626;
    color: #fff;
}

.assets-modal .edit_action
{
    display: none !important;
}
.assets-modal .action_hidden
{
    display: none !important;
}
.assets-modal .action_show
{
    display: flex !important;
}
#asset_view
{
	background-color: white;z-index: 500;display: none;position: absolute;top: 0;left: 0;justify-content: center;align-items: center;width:100%;height:100%;
}
#asset_view img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#asset_view video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.previous_asset,.skip_asset
{
	    width: 100px;
	    text-align: center;
	    background: red;
	    color: white;
	    bottom: 5px;
	    z-index: 10;
	    position: absolute;
	    cursor:pointer;
}
.previous_asset
{
	left:10px;
}
.skip_asset
{
	right:10px;
}

.asset-card{
    display:flex;
    gap:15px;
    border-bottom:1px solid #d5d5d5;
    border-radius:8px;
    padding:5px;
    background:#fff;
    align-items:flex-start;
}

.drag-handle{
    font-size:28px;
    cursor:grab;
    color:#777;
    padding-top:5px;
}

.assets-modal .thumb{
    width:160px;
    height:120px;
    object-fit:cover;
    border-radius:6px;
    border:1px solid #ddd;
}

.assets-modal .content{
    flex:1;
}

.assets-modal .asset-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 0px 0px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.asset-title:hover
{
   color:blue;
   text-decoration: underline;
   cursor:pointer;	
}

.asset-type{
    color:#777;
    margin-bottom:7px;
}

.assets-modal textarea{
    width:100%;
    min-height:70px;
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
    resize: none;
}

.assets-modal .actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

.assets-modal .btn{
    padding:8px 15px;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.assets-modal .edit-btn{
    background:#27ae60;
    color:white;
}

.assets-modal .info-btn{
    background:#3498db;
    color:white;
}

.assets-modal .delete-btn{
    background:#e74c3c;
    color:white;
}

.sortable-ghost{
    opacity:0.4;
}

.modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    z-index:999;
} 

#assetModal
{
	top:100px;
	left:100px;
}
#addedAssetModal
{
	right:100px;
	top:100px;
	width:275px;
}

.assets-modal .delete-icon
{
    color: #dc3545;
    cursor: pointer;
    position: relative;
    padding-top: 5px;
    float: right;
    padding-right: 5px;
}
} 
