body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background-color:#eef2f9;background-image:linear-gradient(160deg,#c0d4f7,#fcfcfd);color:#333;display:flex;justify-content:center;align-items:center;min-height:100vh;margin:0;padding:100px 20px 20px}.container{background-color:#fff;padding:40px;border-radius:8px;box-shadow:0 4px 15px #0000001a;width:100%;max-width:600px}h1{font-size:24px;margin-top:0;color:#2c3e50}p{color:#555;line-height:1.6}.form-group{margin-bottom:25px}label{display:block;font-weight:600;margin-bottom:8px}input[type=text]{width:100%;padding:12px;border:1px solid #ccc;border-radius:5px;font-size:16px;transition:border-color .3s,box-shadow .3s}input[type=text]:focus{border-color:#667eea;box-shadow:0 0 8px #667eea4d;outline:none}#drop-zone{border:2px dashed #ccc;border-radius:8px;padding:40px;text-align:center;cursor:pointer;transition:border-color .3s,background-color .3s}#drop-zone p{margin:0 0 10px}#drop-zone.drag-over{border-color:#667eea;background-color:#f5f6fd}.uploaded-files-container{max-height:200px;overflow-y:auto;border:1px solid #e9ecef;border-radius:8px;background-color:#f8f9fa;margin-top:10px;display:none}.uploaded-files-container.has-files{display:block}#file-list-display{padding:10px}#file-list-display .file-item{display:flex;justify-content:space-between;align-items:center;padding:10px;background-color:#fff;border:1px solid #e9ecef;border-radius:6px;margin-bottom:8px;transition:all .2s ease}#file-list-display .file-item:last-child{margin-bottom:0}#file-list-display .file-item:hover{border-color:#667eea;box-shadow:0 2px 4px #667eea1a}#file-list-display .file-item button{background:none;border:none;color:#dc3545;cursor:pointer;font-size:18px;font-weight:700;padding:4px 8px;border-radius:4px;transition:all .2s ease}#file-list-display .file-item button:hover{background-color:#dc3545;color:#fff}button{font-family:inherit;font-size:16px;font-weight:600;padding:12px 20px;border-radius:5px;cursor:pointer;border:none;transition:background-color .3s,transform .1s}button:active{transform:translateY(1px)}.btn-primary{background-color:#667eea;color:#fff;width:100%}.btn-primary:hover{background-color:#5a6fd8}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover{background-color:#5a6268}#browse-btn{background-color:#f0f0f0;border:1px solid #ccc;color:#333}#browse-btn:hover{background-color:#e0e0e0}.summary{background-color:#f9f9f9;border-left:4px solid #667eea;padding:20px;margin:30px 0;border-radius:0 5px 5px 0}#confirm-file-list{padding-left:20px}#confirm-file-list li{margin-bottom:5px}.confirmation-buttons{display:flex;justify-content:space-between}.confirmation-buttons button{width:48%}.main-header{width:100%;min-height:80px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:0 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 10px #0000001a;position:fixed;top:0;left:0;z-index:1000;box-sizing:border-box}.logo-text{font-size:1.8rem;font-weight:700;color:#fff;margin:0}#user-info{display:flex;align-items:center;width:100%;margin-left:2rem}.user-profile{display:flex;align-items:center;gap:10px;padding:5px;color:#fff;font-weight:500;white-space:nowrap}#nav-upload-btn{margin-left:auto}.user-avatar{width:32px;height:32px;border-radius:50%;background-color:#764ba2;color:#fff;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:.9rem;text-transform:uppercase}#user-email{font-weight:500}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-header h1{margin:0}.btn-help{width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,gold,#ffed4e);color:#8b6914;border:none;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;box-shadow:0 2px 8px #ffd7004d;position:relative;overflow:hidden}.btn-help:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,rgba(255,255,255,.8) 0%,transparent 70%);opacity:0;transition:opacity .3s ease;pointer-events:none}.btn-help:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:radial-gradient(circle,rgba(255,255,255,.9) 0%,transparent 70%);border-radius:50%;transform:translate(-50%,-50%);transition:all .4s ease;pointer-events:none}.btn-help:hover{transform:translateY(-2px) rotate(5deg) scale(1.05);box-shadow:0 6px 16px #ffd7004d,0 0 15px #ffd70066,inset 0 0 15px #fff3;background:linear-gradient(135deg,#ffed4e,gold,#ffed4e);animation:bulbGlow .6s ease-in-out}.btn-help:hover:before{opacity:.6;animation:bulbShine .8s ease-in-out}.btn-help:hover:after{width:35px;height:35px;animation:bulbPulse 1.5s ease-in-out infinite}.btn-help:active{transform:translateY(0) rotate(0) scale(.95);animation:bulbClick .2s ease-in-out}@keyframes bulbGlow{0%{box-shadow:0 2px 8px #ffd7004d,0 0 #ffd70000}50%{box-shadow:0 6px 16px #ffd7004d,0 0 20px #ffd70080,inset 0 0 15px #fff3}to{box-shadow:0 6px 16px #ffd7004d,0 0 15px #ffd70066,inset 0 0 15px #fff3}}@keyframes bulbShine{0%{opacity:0;transform:scale(.8)}50%{opacity:.6;transform:scale(1.05)}to{opacity:.6;transform:scale(1)}}@keyframes bulbPulse{0%,to{opacity:.4;transform:translate(-50%,-50%) scale(1)}50%{opacity:.6;transform:translate(-50%,-50%) scale(1.1)}}@keyframes bulbClick{0%{transform:translateY(-2px) rotate(5deg) scale(1.05)}50%{transform:translateY(0) rotate(0) scale(.9)}to{transform:translateY(0) rotate(0) scale(.95)}}.help-modal{display:none;position:fixed;z-index:2000;left:0;top:0;width:100%;height:100%;background-color:#00000080;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.help-modal-content{background-color:#fff;margin:5% auto;padding:0;border-radius:12px;width:90%;max-width:600px;max-height:80vh;overflow:hidden;box-shadow:0 10px 30px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-50px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}.help-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 25px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.help-modal-header h2{margin:0;font-size:20px;font-weight:600}.btn-help-close{background:none;border:none;color:#fff;font-size:24px;font-weight:700;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s ease;line-height:1;margin:0;position:relative}.btn-help-close:hover{background-color:#fff3}.help-modal-body{padding:25px;max-height:60vh;overflow-y:auto;line-height:1.6}.help-modal-body h3{color:#667eea;margin-top:0;margin-bottom:15px;font-size:16px;font-weight:600}.help-modal-body p{margin-bottom:15px;color:#555}.help-modal-body ul{margin-bottom:15px;padding-left:20px}.help-modal-body li{margin-bottom:8px;color:#555}.help-modal-body .highlight{background-color:#fff3cd;padding:2px 6px;border-radius:4px;font-weight:500;color:#856404}.help-modal-body .warning{background-color:#f8d7da;padding:10px;border-radius:6px;border-left:4px solid #dc3545;margin:15px 0;color:#721c24}.help-modal-body .info{background-color:#d1ecf1;padding:10px;border-radius:6px;border-left:4px solid #17a2b8;margin:15px 0;color:#0c5460}@media (max-width: 768px){.help-modal-content{width:95%;margin:10% auto}.help-modal-header{padding:15px 20px}.help-modal-body{padding:20px}}#nav-process-btn,#nav-history-btn{margin-left:.5rem}#logout-btn{margin-left:1.5rem;background:#ff52521a;border:1px solid rgba(255,82,82,.3);color:#ff5252}.btn-header{background:transparent;color:#fffc;border:none;padding:.6rem 1.2rem;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .2s ease-in-out;font-weight:600}.btn-header:not(#logout-btn):hover{background:#ffffff26;color:#fff;transform:translateY(-1px);box-shadow:0 2px 8px #00000026}#logout-btn:hover{background:#ff525233;color:#ff5252;border-color:#ff525280}#success-section{text-align:center;padding:20px 0}#success-section h1{color:#667eea;margin-top:20px}#success-section p{font-size:16px;margin-bottom:30px}#reset-btn{max-width:250px;margin:0 auto}.success-animation{width:120px;height:120px;margin:0 auto}.success-animation svg{width:100%;height:100%}#airplane-path,#check-path{stroke-dasharray:187;stroke-dashoffset:187;stroke-linecap:round;stroke-linejoin:round;transform-origin:center;transform-box:fill-box}#airplane-path{stroke:#667eea;animation:draw-fly-erase 2.5s ease-in-out forwards}#check-path{stroke:#50c878;animation:draw-check .4s ease-in-out 2.2s forwards}@keyframes draw-fly-erase{0%{stroke-dashoffset:187;transform:rotate(0)}20%{stroke-dashoffset:0;transform:rotate(0)}80%{stroke-dashoffset:0;transform:rotate(720deg);opacity:1}to{stroke-dashoffset:187;transform:rotate(720deg);opacity:0}}@keyframes draw-check{0%{stroke-dashoffset:187}to{stroke-dashoffset:0}}.progress-container{margin:30px 0}.progress-bar-background{width:100%;background-color:#e9ecef;border-radius:20px;height:12px;overflow:hidden}.progress-bar{width:0%;height:100%;background:linear-gradient(90deg,#667eea,#764ba2);border-radius:20px;transition:width .3s ease-in-out}.progress-text{text-align:right;font-weight:600;color:#555;margin-bottom:8px;font-size:14px}.progress-details{text-align:center;margin-top:10px;color:#666;font-size:14px;height:20px}#history-section h1{margin-bottom:20px}#history-table th,#history-table td{border-bottom:1px solid #eee;padding:12px 15px;text-align:center}#history-table tbody tr:hover{background-color:#f5f6fd}.status{padding:4px 10px;border-radius:12px;font-weight:600;font-size:12px;text-transform:uppercase}.status-processing{background-color:#fffbeb;color:#b45309}.status-processed{background-color:#ecfdf5;color:#065f46}.status-retrying{background-color:#fef3c7;color:#92400e}.status-failed{background-color:#fef2f2;color:#dc2626}.btn-download{background-color:#667eea;color:#fff;padding:6px 12px;border-radius:5px;text-decoration:none;font-size:14px;font-weight:500;transition:all .3s ease;position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:6px;min-width:100px;justify-content:center}.btn-download:hover{background-color:#5a6fd8;transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.btn-download:active{transform:translateY(0)}.btn-download.downloading{background-color:#6c757d;cursor:not-allowed;pointer-events:none}.btn-download.success{background-color:#28a745;animation:downloadSuccess .6s ease-out}.btn-download.transitioning{opacity:.7;transform:scale(.95);transition:all .3s ease}.download-spinner{width:14px;height:14px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:downloadSpin 1s linear infinite;display:none}.btn-download.downloading .download-spinner{display:block}.btn-download.downloading .download-text{display:none}@keyframes downloadSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes downloadSuccess{0%{transform:scale(1);background-color:#28a745}50%{transform:scale(1.05);background-color:#20c997}to{transform:scale(1);background-color:#28a745}}.btn-download:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.btn-download.downloading:before{left:100%;animation:downloadWave 1.5s ease-in-out infinite}@keyframes downloadWave{0%{left:-100%}50%{left:100%}to{left:100%}}.btn-header{background:transparent;color:#fffc;border:none;padding:.6rem 1.2rem;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .2s ease-in-out;font-weight:600;width:auto;position:relative;display:flex;align-items:center;gap:.5rem}.btn-header:hover{background:#ffffff26;color:#fff}.btn-header.active{background-color:#fff;color:#667eea;box-shadow:0 2px 5px #0000001a}.history-table-container{max-height:50vh;overflow-y:auto;margin-top:20px;border:1px solid #e5e7eb;border-radius:8px}#history-table{width:100%;border-collapse:collapse}#history-table th{position:sticky;top:0;background-color:#f9fafb;z-index:1}#history-table .sortable-header{cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;position:relative;padding:12px 15px;background-color:#f9fafb;border-bottom:1px solid #eee;font-weight:600;color:#374151;text-align:left;white-space:nowrap}#history-table .sortable-header:hover{background-color:#e9ecef;color:#667eea;transform:none;box-shadow:none}#history-table .sort-indicator{margin-left:8px;font-size:14px;opacity:.6;transition:all .2s ease;display:inline;white-space:nowrap}#history-table .sortable-header:hover .sort-indicator{opacity:1;color:#667eea}#history-section h1{text-align:center}#back-to-form-btn{width:auto;float:right}.loader-cell{text-align:center;padding:50px 0}.loader{border:5px solid #f3f3f3;border-top:5px solid #667eea;border-radius:50%;width:40px;height:40px;animation:spin 1.2s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-message{background-color:#fff5f5;color:#c53030;border:1px solid #fc8181;border-left-width:4px;border-radius:5px;padding:15px;margin:20px 0;text-align:center;font-weight:500}.files-table-container{max-height:30vh;overflow-y:auto;border:none;border-radius:0}#available-files-table{width:100%;border-collapse:collapse}#available-files-table th,#available-files-table td{border-bottom:1px solid #eee;padding:10px 15px;text-align:left}#available-files-table th{position:sticky;top:0;background-color:#f9fafb;font-weight:600;color:#374151;z-index:1;padding:12px 15px}#available-files-table .checkbox-cell{width:20px}#available-files-table .status-uploaded{background-color:#ecfdf5;color:#065f46}#process-files-btn{margin-top:25px}.sort-controls{display:flex;align-items:center;gap:10px;margin:15px 0;padding:10px;background-color:#f8f9fa;border-radius:6px;border:1px solid #e9ecef}.sort-label{font-weight:600;color:#495057;font-size:14px}.btn-sort{background-color:#fff;border:1px solid #dee2e6;color:#6c757d;padding:6px 12px;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-sort:hover{background-color:#e9ecef;border-color:#adb5bd;color:#495057}.btn-sort.active{background-color:#667eea;border-color:#667eea;color:#fff}.sortable-header{cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s ease;position:relative;padding:15px 20px;background-color:#f8f9fa;border-bottom:2px solid #e9ecef;font-weight:600;color:#495057}.sortable-header:hover{background-color:#e9ecef;color:#667eea;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.sort-indicator{margin-left:8px;font-size:14px;opacity:.6;transition:all .2s ease}.sortable-header:hover .sort-indicator{opacity:1;color:#667eea}.sortable-header[data-sort=name].sorted-asc .sort-indicator,.sortable-header[data-sort=date].sorted-asc .sort-indicator{content:"↑";opacity:1;color:#667eea;font-weight:700}.sortable-header[data-sort=name].sorted-desc .sort-indicator,.sortable-header[data-sort=date].sorted-desc .sort-indicator{content:"↓";opacity:1;color:#667eea;font-weight:700}.sort-controls,.sort-label,.btn-sort{display:none}.files-section{margin:20px 0;background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;overflow:hidden}.files-header{display:flex;flex-direction:column;padding:15px 25px;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:1px solid #dee2e6;gap:12px}.files-header h3{margin:0;color:#495057;font-size:18px;font-weight:600}.search-container{width:100%;margin:0;padding:0;border:none;background:transparent}.search-input-wrapper{position:relative;display:flex;align-items:center;background-color:#fff;border:1px solid #e9ecef;border-radius:8px;padding:0;transition:all .2s ease;width:100%}.search-input-wrapper:focus-within{border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.search-icon{padding:0 12px;color:#6c757d;font-size:16px;-webkit-user-select:none;user-select:none}.search-input{flex:1;border:none;padding:10px 0;font-size:14px;background:transparent;outline:none;color:#495057}.search-input::placeholder{color:#adb5bd}.clear-search-btn{background:none;border:none;color:#adb5bd;font-size:18px;font-weight:700;padding:8px 12px;cursor:pointer;border-radius:50%;transition:all .2s ease;display:none}.clear-search-btn:hover{background-color:#f8f9fa;color:#6c757d}.clear-search-btn.visible{display:block}.search-results-info{margin-top:6px;font-size:13px;color:#6c757d;text-align:center;min-height:16px}.search-results-info.has-results{color:#667eea;font-weight:500}@media (max-width: 768px){.files-header{padding:12px 20px;gap:10px}.search-container{width:100%}}#available-files-table .no-results{text-align:center;color:#6c757d;font-style:italic;padding:30px 15px}.processing-animation{width:120px;height:120px;margin:0 auto 20px}.processing-animation svg{width:100%;height:100%}#gear1,#gear2,#process-check{stroke-linecap:round;stroke-linejoin:round;transform-origin:center}#process-check{stroke:#50c878;stroke-dasharray:100;stroke-dashoffset:100}#success-section-process-file.is-loading #process-check{display:none}#success-section-process-file.is-loading #gear1{stroke:#667eea;animation:spin-large 1.5s linear infinite}#success-section-process-file.is-loading #gear2{stroke:#764ba2;animation:spin-small 1.5s linear infinite}#success-section-process-file:not(.is-loading) #gear1,#success-section-process-file:not(.is-loading) #gear2{display:none}#success-section-process-file:not(.is-loading) #process-check{display:block;animation:draw-check-process .5s ease-out forwards}@keyframes spin-large{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin-small{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes draw-check-process{0%{stroke-dashoffset:100}to{stroke-dashoffset:0}}#success-section-process-file.is-loading #back-to-process-btn{display:none}.user-profile{display:flex;align-items:center;gap:10px;padding:5px 10px;background-color:#ffffff1a;border-radius:20px;color:#fff;font-weight:500;white-space:nowrap}.user-avatar{width:30px;height:30px;border-radius:50%;background-color:#764ba2;color:#fff;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:.8rem;text-transform:uppercase}
