.imgzip{border:1px solid #006abe;border-radius:4px;padding:1em;}

.imgzip .input-section{background-color:#ffffff;border-radius:12px;box-shadow:0 3px 15px #ebebeb;padding:1.2rem;margin-bottom:1rem;}

.imgzip .input-section h1{text-align:center;font-family:inherit;font-weight:500;line-height:1.1;font-size:36px;border-bottom:1px solid rgb(240,240,240);margin-bottom:1rem;padding-bottom:1rem;}

.imgzip .input-section .input-group{display:flex;flex-direction:row;gap:1rem;width:100%;align-items:stretch;}

.imgzip .input-section .file-box{width:66.666%;border:2px dashed #ddd;border-radius:8px;padding:1.2rem;text-align:center;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;box-sizing:border-box;}

.imgzip .input-section .file-box:hover{border-color:#2d8cf0;background:#f8f9ff;}

.imgzip .input-section .file-box input{display:none;}

.imgzip .input-section .file-box p{margin:0;color:#666;font-size:1rem;}

.imgzip .input-section .input-control{width:33.333%;display:flex;flex-direction:column;gap:0.8rem;}

.imgzip .input-section .input-control select{padding:0.9rem 1.2rem;border:1px solid #ebebeb;box-sizing:border-box;border-radius:8px;font-size:1rem;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);background-color:#fafafa;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center;background-size:1rem;}

.imgzip .input-section .input-control select:focus{outline:none;border-color:#2d8cf0;background-color:#ffffff;box-shadow:0 0 0 3px rgba(45,140,240,0.1);}

.imgzip .input-section .input-control button{padding:0.9rem 1.8rem;background-color:#006abe;color:white;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;white-space:nowrap;}

.imgzip .input-section .input-control button:hover{background-color:#1e78e5;transform:translateY(-1px);box-shadow:0 4px 12px rgba(45,140,240,0.2);}

.imgzip .input-section .input-control button:active{transform:translateY(0);box-shadow:0 2px 8px rgba(45,140,240,0.2);}

.batch-bar{display:flex;align-items:center;justify-content:space-between;padding:0.8rem 1rem;background:#f6f8ff;border-radius:12px;margin-bottom:1rem;gap:1rem;}

.batch-check-wrap{display:flex;align-items:center;gap:0.5rem;font-size:0.95rem;}

.batch-download{padding:0.7rem 1.6rem;background:#006abe;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:0.3s;}

.batch-download:disabled{background:#cccccc;cursor:not-allowed;}

.imgzip #result{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:0;}

.imgzip #result.active{margin-bottom:1.5rem;}

.imgzip #result .result-card{background:#fff;border-radius:16px;box-shadow:0 5px 20px rgba(0,0,0,0.06);padding:1rem 1.2rem;display:flex;align-items:center;gap:1rem;width:100%;box-sizing:border-box;position:relative;}

.card-checkbox{width:18px;height:18px;flex-shrink:0;cursor:pointer;}

.result-card .thumb-img{width:60px;height:60px;border-radius:8px;object-fit:cover;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.1);flex-shrink:0;filter:grayscale(100%);transition:filter 0.3s;}

.result-card .thumb-img:hover{transform:scale(1.05);transition:0.2s;}

.result-card.compressing .thumb-img{filter:grayscale(0);}

.result-card .wait-txt{flex:1;text-align:center;font-size:14px;color:#999;padding:8px 0;}

.result-card .progress-box{flex:1;display:flex;flex-direction:column;gap:8px;}

.result-card .progress-row{display:flex;align-items:center;gap:12px;width:100%;}

.result-card .progress-wrap{flex:1;height:8px;background:#eee;border-radius:99px;overflow:hidden;position:relative;}

.result-card .progress-bar{height:100%;width:0%;background:#006abe;border-radius:99px;transition:width 0.08s linear;}

.result-card .progress-num{font-size:14px;color:#333;font-weight:500;white-space:nowrap;min-width:40px;text-align:right;}

.result-card .info-below{font-size:0.85rem;color:#666;line-height:1.6;}

.result-card .info-below strong{color:#006abe;font-weight:600;}

.result-card .wait-below{text-align:center;font-size:14px;color:#999;padding:4px 0;}

.result-card .download-btn{background:#07c160;color:#fff;border:none;border-radius:10px;padding:0.7rem 1.4rem;font-size:0.9rem;cursor:pointer;transition:all 0.3s;box-shadow:0 4px 10px rgba(7,193,96,0.15);white-space:nowrap;flex-shrink:0;}

.result-card .download-btn:hover{background:#06ad56;transform:translateY(-2px);}

.result-card .download-btn.disabled{background:#cccccc;cursor:not-allowed;transform:none;box-shadow:none;pointer-events:none;}

.result-card .download-btn.downloaded{background:#cccccc;cursor:pointer;transform:none;box-shadow:none;}

.result-card .delete-btn{position:absolute;top:8px;right:8px;width:24px;height:24px;line-height:22px;text-align:center;background:rgba(0,0,0,0.5);color:#fff;border-radius:50%;font-size:18px;cursor:pointer;transition:all 0.2s;z-index:10;}
.result-card .delete-btn:hover{background:rgba(255,0,0,0.7);transform:scale(1.1);}

.imgzip .panel{padding:1.5rem;background-color:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,0.1);}

.imgzip .panel .panel-heading{font-size:1.2rem;font-weight:600;color:#333;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:1px solid #ebebeb;}

.imgzip .panel .panel-body p{color:#666;line-height:1.8;}

.imgzip .panel .panel-body p:last-child{margin-bottom:0;}

.img-zoom-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.85);z-index:1000;align-items:center;justify-content:center;}

.img-zoom-modal .img-zoom-content{max-width:92%;max-height:92%;position:relative;}

.img-zoom-modal .img-zoom-content img{max-width:100%;max-height:85vh;border-radius:8px;}

.img-zoom-modal .img-zoom-close{position:absolute;top:-40px;right:-40px;color:#fff;font-size:28px;font-weight:300;cursor:pointer;opacity:0.8;transition:opacity 0.2s;}

.img-zoom-close:hover{opacity:1;}

@media (max-width:768px){
    .imgzip{padding:.5rem;}
    .imgzip .input-section h1{font-size:20px;}
    .imgzip .input-section .input-group{flex-direction:column;gap:1rem;}
    .imgzip .input-section .file-box{width:100%;padding:1.5rem;}
    .imgzip .input-section .input-control{width:100%;}
    .batch-bar{flex-direction:row;align-items:center;justify-content:space-between;padding:0.6rem 0.8rem;}
    .batch-check-wrap{font-size:0.85rem;}
    .batch-download{padding:0.5rem 1rem;font-size:0.85rem;}
    .imgzip #result .result-card{flex-wrap:nowrap;padding:0.8rem;gap:0.6rem;}
    .result-card .thumb-img{width:50px;height:50px;}
    .result-card .progress-box{min-width:0;flex:1;}
    .result-card .download-btn{padding:0.5rem 0.8rem;font-size:0.8rem;}
    .result-card .delete-btn{top:4px;right:4px;width:22px;height:22px;line-height:20px;font-size:16px;}
    .card-checkbox{width:16px;height:16px;}
    .img-zoom-modal .img-zoom-close{top:-30px;right:0;}
}
