*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;min-height:100vh;font-family:Tajawal,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:linear-gradient(180deg,#f0f4fa,#e2e8f3);color:#1e293b;direction:rtl;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-root{min-height:100vh;width:100%;display:flex;justify-content:center;align-items:flex-start;padding:1.5rem 1.25rem}.app-container{width:100%;max-width:1120px;margin:0 auto;display:flex;flex-direction:column;align-items:stretch}.app-header{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:right;margin-bottom:1.25rem;background:#fff;padding:12px 24px;border-radius:20px;box-shadow:0 4px 20px #0b1c330f}.brand-badge-wrapper{display:flex;align-items:center;gap:12px;margin-bottom:0}.brand-logo-circle{width:48px;height:48px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0b1c331f;margin-bottom:0;padding:4px;overflow:hidden;flex-shrink:0}.brand-logo-circle:hover{transform:scale(1.05)}.brand-logo-img{width:100%;height:100%;object-fit:contain;border-radius:50%}.brand-name{font-family:Playfair Display,Georgia,serif;font-size:1.4rem;font-weight:800;color:#0b1c33;line-height:1;margin-bottom:0}.brand-subtext{display:none}.app-title-group{margin-top:0;text-align:left}.app-main-heading{font-size:1.5rem;font-weight:900;color:#0b1c33;line-height:1.2;margin-bottom:0}.app-sub-heading{font-size:.82rem;color:#64748b;font-weight:500}.main-card{width:100%;background:#0b1c33;color:#fff;border-radius:24px;box-shadow:0 25px 50px -12px #0b1c3359,0 0 0 1px #ffffff14;overflow:hidden;transition:box-shadow .3s ease}.main-card:hover{box-shadow:0 30px 60px -12px #0b1c3373,0 0 0 1px #ffffff1f}.tab-navigation{display:flex;padding:12px;background:#00000040;gap:10px;border-bottom:1px solid rgba(255,255,255,.08)}.tab-button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 24px;border:1px solid transparent;border-radius:14px;background:transparent;color:#94a3b8;font-family:Tajawal,sans-serif;font-size:1.15rem;font-weight:700;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1)}.tab-button:hover{color:#f8fafc;background:#ffffff0d}.tab-button.active{background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;border-color:#fff3;box-shadow:0 6px 18px #2563eb59}.tab-icon{width:22px;height:22px}.card-body{padding:1.5rem 1.75rem}.tab-content{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.form-column-panel{display:flex;flex-direction:column;gap:16px}.workspace-column-panel{display:flex;flex-direction:column;background:#00000040;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;min-height:380px;max-height:calc(100vh - 220px);overflow-y:auto}.workspace-empty-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 1.5rem;text-align:center;min-height:320px;color:#64748b}.placeholder-icon{font-size:3rem;margin-bottom:.75rem;opacity:.8}.placeholder-title{font-size:1.15rem;font-weight:700;color:#94a3b8;margin-bottom:.4rem}.placeholder-text{font-size:.85rem;color:#64748b;max-width:280px;line-height:1.5}@media (max-width: 868px){.tab-content{grid-template-columns:1fr}}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;border:2px dashed rgba(255,255,255,.18);border-radius:18px;background:#ffffff05;text-align:center;cursor:pointer;transition:all .3s ease}.dropzone:hover,.dropzone.drag-over{border-color:#60a5fa;background:#2563eb14;transform:translateY(-2px)}.dropzone-icon-wrapper{width:64px;height:64px;border-radius:50%;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;transition:all .3s ease}.dropzone:hover .dropzone-icon-wrapper{background:#2563eb33;border-color:#60a5fa;transform:scale(1.1)}.dropzone-icon{width:32px;height:32px;color:#93c5fd}.dropzone-title{font-size:1.35rem;font-weight:800;color:#f8fafc;margin-bottom:.4rem}.dropzone-subtitle{font-size:.95rem;color:#94a3b8;margin-bottom:1.5rem}.dropzone-action-buttons{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.btn-select-files,.btn-select-folder{padding:10px 20px;border-radius:10px;font-family:Tajawal,sans-serif;font-size:.95rem;font-weight:700;cursor:pointer;transition:all .2s ease;border:none}.btn-select-files{background:#ffffff1a;color:#fff}.btn-select-files:hover{background:#fff3}.btn-select-folder{background:#3b82f633;color:#93c5fd;border:1px solid rgba(59,130,246,.4)}.btn-select-folder:hover{background:#3b82f64d}.mac-finder-hint{display:flex;align-items:center;gap:8px;margin-top:1.1rem;padding:9px 14px;background:#f59e0b12;border:1px solid rgba(245,158,11,.2);border-radius:10px;font-size:.82rem;color:#cbd5e1;line-height:1.4;text-align:right}.finder-tip-icon{font-size:1rem;flex-shrink:0}.mac-finder-hint kbd{display:inline-block;background:#ffffff1f;border:1px solid rgba(255,255,255,.25);border-radius:5px;padding:1px 6px;font-size:.82rem;font-family:IBM Plex Mono,monospace;color:#fcd34d}.top-action-container{position:sticky;top:15px;z-index:50;background:#0b1c33eb;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding:16px;border-radius:20px;border:1px solid rgba(59,130,246,.25);box-shadow:0 12px 35px -8px #0006;margin-top:1.25rem;margin-bottom:1.25rem}.compression-action-row{display:flex;align-items:flex-end;gap:12px;width:100%}.inline-name-group{flex:1;min-width:0;margin-bottom:0!important}.inline-btn{white-space:nowrap;padding:12px 20px!important;font-size:.95rem!important;height:46px;display:inline-flex;align-items:center;justify-content:center}@media (max-width: 640px){.compression-action-row{flex-direction:column;align-items:stretch}}.upload-success-toast{display:flex;align-items:center;gap:10px;background:#10b9811f;border:1px solid rgba(16,185,129,.3);color:#6ee7b7;padding:10px 14px;border-radius:12px;font-size:.88rem;margin-bottom:12px;animation:slideFadeIn .3s ease-out forwards}.upload-success-toast strong{color:#fff}.toast-icon{font-size:1.1rem}.result-card.pulse-success{animation:pulseGlow 1.2s ease-out 1}@keyframes slideFadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulseGlow{0%{box-shadow:0 0 #34d39999;transform:scale(.98)}50%{box-shadow:0 0 30px 10px #34d39966;transform:scale(1.02)}to{box-shadow:0 10px 30px -5px #0000004d;transform:scale(1)}}.picker-buttons-row{display:flex;align-items:stretch;gap:0;margin-top:1rem;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;background:#ffffff05}.picker-btn-wrapper{flex:1;display:flex}.picker-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px 12px;border:none;background:transparent;font-family:Tajawal,sans-serif;font-size:1.05rem;font-weight:700;cursor:pointer;transition:background .2s ease,transform .15s ease;color:#e2e8f0;line-height:1.2}.picker-btn.files{border-left:1px solid rgba(255,255,255,.08)}.picker-btn.files:hover{background:#ffffff0f}.picker-btn.folder{border-right:1px solid rgba(255,255,255,.08)}.picker-btn.folder:hover{background:#3b82f61a}.picker-btn-icon{width:28px;height:28px;color:#60a5fa}.picker-btn.files .picker-btn-icon{color:#94a3b8}.picker-btn-sub{font-size:.78rem;font-weight:500;color:#64748b}.picker-divider{display:flex;align-items:center;justify-content:center;padding:0 4px;font-size:.85rem;color:#475569;min-width:36px;position:relative}.picker-divider:before,.picker-divider:after{content:"";position:absolute;left:50%;width:1px;background:#ffffff14;top:12px;bottom:12px}.add-more-bar{display:flex;align-items:center;gap:10px;margin-top:1.25rem;padding:10px 14px;background:#ffffff08;border-radius:12px;border:1px solid rgba(255,255,255,.06)}.add-more-label{font-size:.88rem;color:#94a3b8;font-weight:600}.btn-add-more{padding:6px 14px;border-radius:8px;background:#ffffff14;color:#fff;border:1px solid rgba(255,255,255,.15);font-family:Tajawal,sans-serif;font-size:.88rem;font-weight:700;cursor:pointer;transition:all .2s ease}.btn-add-more:hover{background:#ffffff2e;border-color:#ffffff4d}.btn-add-more.folder{background:#3b82f626;color:#93c5fd;border-color:#3b82f64d}.btn-add-more.folder:hover{background:#3b82f647}.file-list-wrapper{margin-top:1.5rem;background:#0003;border-radius:14px;border:1px solid rgba(255,255,255,.08);padding:1.25rem}.file-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(255,255,255,.08)}.file-list-summary{display:flex;align-items:center;gap:8px}.file-count-badge{background:#2563eb;color:#fff;padding:4px 10px;border-radius:8px;font-size:.85rem;font-weight:700}.file-total-size{font-family:IBM Plex Mono,monospace;font-size:.85rem;color:#94a3b8}.folder-count-badge{background:#f59e0b33;color:#fcd34d;border:1px solid rgba(245,158,11,.35);padding:4px 10px;border-radius:8px;font-size:.85rem;font-weight:700}.folder-group-card{border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#ffffff08;overflow:hidden;margin-bottom:8px}.folder-group-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;transition:background .2s ease;gap:10px}.folder-group-header:hover{background:#ffffff0d}.folder-header-info{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.folder-icon{font-size:1.4rem;flex-shrink:0}.folder-group-title{font-size:1rem;font-weight:700;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.folder-group-meta{font-family:IBM Plex Mono,monospace;font-size:.78rem;color:#64748b;margin-top:2px;display:block}.folder-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.btn-toggle-folder{background:#ffffff0f;border:1px solid rgba(255,255,255,.12);color:#94a3b8;font-family:Tajawal,sans-serif;font-size:.8rem;font-weight:600;padding:4px 10px;border-radius:6px;cursor:pointer;transition:all .2s ease;white-space:nowrap}.btn-toggle-folder:hover{background:#ffffff1f;color:#f1f5f9;border-color:#ffffff40}.folder-contents-list{border-top:1px solid rgba(255,255,255,.06);padding:8px 12px 10px;display:flex;flex-direction:column;gap:6px;background:#00000026;max-height:220px;overflow-y:auto}.folders-section,.standalone-files-section{margin-top:1rem}.section-label{font-size:.8rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px;padding-right:4px}.folder-card{border:1px solid rgba(255,255,255,.1);border-radius:14px;overflow:hidden;margin-bottom:8px;background:#1e3a8a1a;transition:border-color .2s ease}.folder-card.expanded{border-color:#60a5fa4d}.folder-card-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:transparent;border:none;cursor:pointer;text-align:right;gap:10px;transition:background .2s ease}.folder-card-header:hover{background:#ffffff0a}.folder-card-left{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.folder-card-icon-wrap{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#1e40af,#3b82f6);display:flex;align-items:center;justify-content:center;flex-shrink:0}.folder-svg{width:22px;height:22px;color:#fff}.folder-card-info{display:flex;flex-direction:column;min-width:0}.folder-card-name{font-size:1rem;font-weight:700;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.folder-card-meta{font-family:IBM Plex Mono,monospace;font-size:.78rem;color:#64748b;margin-top:2px}.folder-card-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.folder-remove-btn{color:#ef4444;font-size:1rem;cursor:pointer;padding:4px 6px;border-radius:6px;transition:background .15s ease;line-height:1}.folder-remove-btn:hover{background:#ef444426}.chevron-icon{width:18px;height:18px;color:#64748b;transition:transform .25s cubic-bezier(.4,0,.2,1);flex-shrink:0}.folder-tree-body{border-top:1px solid rgba(255,255,255,.06);background:#0000002e;padding:6px 0 8px;max-height:300px;overflow-y:auto}.tree-file-row{display:flex;align-items:center;gap:8px;padding:7px 14px;transition:background .15s ease}.tree-file-row:hover{background:#ffffff08}.tree-file-icon{font-size:1rem;flex-shrink:0;width:20px;text-align:center}.tree-file-name{flex:1;font-size:.88rem;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.tree-file-size{font-family:IBM Plex Mono,monospace;font-size:.75rem;color:#475569;flex-shrink:0}.tree-remove-btn{background:transparent;border:none;color:#64748b;cursor:pointer;font-size:.85rem;padding:2px 5px;border-radius:4px;opacity:0;transition:all .15s ease;flex-shrink:0}.tree-file-row:hover .tree-remove-btn{opacity:1}.tree-remove-btn:hover{color:#ef4444;background:#ef44441f}.subtree-node{margin:0}.subtree-dir-header{width:100%;display:flex;align-items:center;gap:8px;padding:6px 14px;background:transparent;border:none;cursor:pointer;text-align:right;transition:background .15s ease}.subtree-dir-header:hover{background:#ffffff0a}.subtree-folder-icon{width:16px;height:16px;color:#60a5fa;flex-shrink:0}.subtree-dir-name{flex:1;font-size:.88rem;font-weight:600;color:#93c5fd;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subtree-dir-count{font-size:.75rem;color:#475569;background:#ffffff12;padding:1px 7px;border-radius:99px;font-family:IBM Plex Mono,monospace;flex-shrink:0}.standalone-files-list{display:flex;flex-direction:column;gap:6px}.btn-clear-all{background:transparent;border:none;color:#ef4444;font-family:Tajawal,sans-serif;font-size:.9rem;font-weight:700;cursor:pointer;padding:4px 8px;border-radius:6px;transition:background .2s}.btn-clear-all:hover{background:#ef444426}.file-items-scroll{max-height:240px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-left:4px}.file-item-card{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#ffffff0a;border-radius:10px;border:1px solid rgba(255,255,255,.04)}.file-item-icon{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0}.file-item-details{flex:1;min-width:0;display:flex;flex-direction:column}.file-item-name{font-size:.95rem;font-weight:600;color:#e2e8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-item-meta{font-family:IBM Plex Mono,monospace;font-size:.78rem;color:#64748b;margin-top:2px}.btn-remove-item{background:transparent;border:none;color:#94a3b8;cursor:pointer;font-size:1.1rem;padding:4px 8px;border-radius:6px;transition:all .2s}.btn-remove-item:hover{color:#ef4444;background:#ef444426}.compression-options-card{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.5rem;background:#ffffff08;padding:1.25rem;border-radius:14px;border:1px solid rgba(255,255,255,.06)}.input-group{display:flex;flex-direction:column;gap:6px}.input-label{font-size:.9rem;font-weight:700;color:#cbd5e1}.text-input,.select-input{width:100%;padding:12px 14px;background:#0f172a99;border:1px solid rgba(255,255,255,.15);border-radius:10px;color:#fff;font-family:Tajawal,sans-serif;font-size:.95rem;outline:none;transition:border-color .2s}.text-input:focus,.select-input:focus{border-color:#3b82f6}.select-input option{background:#0b1c33;color:#fff}.progress-container{margin-top:1.5rem;background:#00000040;padding:1.25rem;border-radius:14px;border:1px solid rgba(59,130,246,.3)}.progress-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.progress-status{font-size:.95rem;font-weight:600;color:#93c5fd}.progress-percentage{font-family:IBM Plex Mono,monospace;font-size:.95rem;font-weight:700;color:#60a5fa}.progress-track{width:100%;height:10px;background:#ffffff1a;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#2563eb,#38bdf8);border-radius:999px;transition:width .3s ease-out}.action-button-wrapper{margin-top:1.75rem}.btn-primary-action{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 28px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:14px;font-family:Tajawal,sans-serif;font-size:1.2rem;font-weight:800;cursor:pointer;box-shadow:0 10px 25px -5px #2563eb66;transition:all .25s ease}.btn-primary-action:hover{background:linear-gradient(135deg,#3b82f6,#1e40af);transform:translateY(-2px);box-shadow:0 14px 30px -5px #2563eb80}.btn-icon{width:24px;height:24px}.result-card{margin-top:1.75rem;background:linear-gradient(135deg,#10b9811f,#0596690d);border:1px solid rgba(16,185,129,.3);border-radius:16px;padding:1.75rem;text-align:center}.result-icon{font-size:2.5rem;margin-bottom:.5rem}.result-title{font-size:1.4rem;font-weight:800;color:#34d399;margin-bottom:.5rem}.result-subtitle{font-size:.88rem;color:#64748b;margin-bottom:1.25rem;line-height:1.5}.result-stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:1.5rem}.stat-box{background:#0000004d;padding:12px 10px;border-radius:12px;display:flex;flex-direction:column;align-items:center}.stat-label{font-size:.8rem;color:#94a3b8;margin-bottom:4px}.stat-value{font-family:IBM Plex Mono,monospace;font-size:1rem;font-weight:700;color:#f8fafc}.stat-value.highlight{color:#60a5fa}.stat-value.badge{color:#34d399}.btn-download-result{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 24px;background:#10b981;color:#fff;border:none;border-radius:12px;font-family:Tajawal,sans-serif;font-size:1.1rem;font-weight:800;cursor:pointer;transition:background .2s,transform .2s;box-shadow:0 8px 20px #10b9814d}.btn-download-result:hover{background:#059669;transform:translateY(-2px)}.selected-zip-card{margin-top:1rem}.zip-card-header{display:flex;justify-content:space-between;align-items:center;background:#ffffff0a;padding:1rem 1.25rem;border-radius:14px;border:1px solid rgba(255,255,255,.08)}.zip-info{display:flex;align-items:center;gap:12px}.zip-icon{font-size:2rem}.zip-name{font-size:1.1rem;font-weight:700;color:#f8fafc}.zip-size{font-family:IBM Plex Mono,monospace;font-size:.85rem;color:#94a3b8}.zip-entries-wrapper{margin-top:1.25rem}.entries-heading{font-size:1rem;font-weight:700;color:#cbd5e1;margin-bottom:.5rem}.app-footer{width:100%;margin-top:3rem;text-align:center;padding:1rem 0;border-top:1px solid rgba(11,28,51,.08)}.developer-banner{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#1e3a8a,#0b1c33);color:#fff;padding:10px 22px;border-radius:999px;box-shadow:0 4px 15px #0b1c3333,0 0 0 1px #ffffff1a;margin-bottom:1.25rem;transition:transform .25s ease,box-shadow .25s ease}.developer-banner:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0b1c334d}.dev-icon{font-size:1.1rem}.dev-label{font-size:.95rem;color:#93c5fd;font-weight:500}.dev-name{font-size:1.05rem;font-weight:900;color:#fff;letter-spacing:.5px;background:linear-gradient(90deg,#fff,#60a5fa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.footer-text{font-size:.9rem;color:#64748b;margin-bottom:.75rem}.footer-text strong{color:#0b1c33;font-weight:700}.security-badge{display:inline-block;font-size:.82rem;font-weight:600;color:#15803d;background:#dcfce7;padding:4px 12px;border-radius:999px}@media (max-width: 640px){.app-root{padding:1.5rem .75rem}.brand-logo-circle{width:60px;height:60px}.brand-logo-icon{width:42px;height:42px}.brand-name{font-size:1.6rem}.app-main-heading{font-size:2rem}.app-sub-heading{font-size:.95rem}.card-body{padding:1.25rem 1rem}.tab-navigation{padding:8px;gap:6px}.tab-button{font-size:1rem;padding:10px 12px}.dropzone{padding:2rem 1rem}.dropzone-title{font-size:1.15rem}.compression-options-card,.result-stats-grid{grid-template-columns:1fr}}
