/* Drag & drop visual feedback */
.drag-shadow {
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 2px dashed #4ade80;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 1em;
    color: #222;
}

.all-files-folder-title.dragover {
    border: 2px solid #4ade80 !important;
    background: #e6fff2;
    border-radius: 6px;
}

.all-files-list.dragover-root > .all-files-item {
    border-bottom: 2px solid #4ade80;
    background: #e6fff2;
}
/* Extracted styles from interface HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1e1e1e;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background-color: #2d2d2d;
    padding: 12px 16px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.burger-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.burger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #4CAF50;
    font-size: 22px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.header-btn.compile {
    background-color: #4CAF50;
}

.header-btn.compile:hover {
    background-color: #45a049;
}

.header-btn.save {
    background-color: #2196F3;
}

.header-btn.save:hover {
    background-color: #0b7dda;
}

.header-btn.logout {
    background-color: #f44336;
}

.header-btn.logout:hover {
    background-color: #da190b;
}

.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    /*width: 250px;*/
    background-color: #252525;
    border-right: 1px solid #444;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Disk usage indicator */
.disk-usage {
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    margin-bottom: 5px;
}

.disk-usage-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 12px;
    margin-bottom: 6px;
}

.disk-usage-label i {
    color: #666;
}

.disk-usage-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.disk-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.disk-usage-fill.warning {
    background: linear-gradient(90deg, #ff9800, #f57c00);
}

.disk-usage-fill.danger {
    background: linear-gradient(90deg, #f44336, #d32f2f);
}

.category {
    margin-bottom: 20px;
}

.category-title {
    padding: 10px 15px;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
    margin-bottom: 5px;
}

.category-title i {
    font-size: 18px;
}

.file-list {
    list-style: none;
}

/* All files nested menu */
.all-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.all-files-folder {
    cursor: pointer;
}

.all-files-folder-title {
    padding: 10px 15px 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    transition: all 0.2s;
}

.all-files-folder-title:hover {
    background-color: #333;
}

.all-files-folder-title i {
    color: #ffc107;
    width: 18px;
    transition: transform 0.2s;
}

.all-files-folder-title i.fa-chevron-right {
    color: #888;
    font-size: 12px;
    margin-left: auto;
}

.all-files-folder.open > .all-files-folder-title i.fa-chevron-right {
    transform: rotate(90deg);
}

.all-files-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background-color: #1a1a1a;
}

.all-files-folder.open > .all-files-sublist {
    display: block;
}

.all-files-item {
    padding: 8px 15px 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 13px;
    transition: all 0.2s;
}

.all-files-item:hover {
    background-color: #333;
    color: #fff;
}

.all-files-item.active {
    background-color: #2d4d2d;
    color: #fff;
}

.all-files-item i {
    color: #888;
    width: 16px;
}

.drag-handle {
    cursor: grab;
    color: #666;
    width: 14px;
    font-size: 12px;
    flex-shrink: 0;
}

.drag-handle:active {
    cursor: grabbing;
}

.all-files-item i.fa-file-alt { color: #9e9e9e; }
.all-files-item i.fa-file-code { color: #2196F3; }
.all-files-item i.fa-cog { color: #ff9800; }
.all-files-item i.fa-puzzle-piece { color: #e91e63; }
.all-files-item i.fa-microchip { color: #9c27b0; }

.all-files-item.binary {
    opacity: 0.7;
    cursor: not-allowed;
}
.all-files-item.binary span {
    color: #888;
}

.file-item {
    padding: 12px 15px 12px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.file-item:hover {
    background-color: #333;
}

.file-item.active {
    background-color: #2d4d2d;
    border-left-color: #4CAF50;
}

.file-item i {
    color: #2196F3;
    width: 18px;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    /*width: 250px;*/
    height: calc(100vh - 60px);
    background-color: #252525;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-tabs {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}

.editor-tab {
    padding: 12px 20px;
    background-color: #333;
    border-right: 1px solid #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
}

.editor-tab.active {
    background-color: #1e1e1e;
}

.editor-container {
    flex: 1;
    /*padding: 20px;*/
    overflow: hidden;
    display: flex;
}*

textarea {
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: none;
    resize: none;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px;
    outline: none;
    border-radius: 4px;
}

.status-bar {
    background-color: #007ACC;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-actions {
    display: flex;
    gap: 8px;
    padding-right: 10px;
}

.action-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color: #e0e0e0;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover { background: rgba(255,255,255,0.06); }


@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .mobile-menu {
        display: flex;
    }
    /* hide editor tabs on mobile — selection via burger menu only */
    .editor-tabs .editor-tab {
        display: none;
    }
    .editor-tab {
        padding: 10px 15px;
        min-width: 100px;
    }
    .header-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .status-bar {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .burger-btn {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
    .menu-overlay {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .editor-tabs {
        padding: 10px;
    }
    .editor-tabs {
        padding: 10px;
    }
    .header {
        padding: 10px;
    }
    .logo span {
        font-size: 16px;
    }
    .editor-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    textarea {
        font-size: 13px;
        padding: 12px;
    }
    .header-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .header-buttons {
        gap: 5px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .file-item, .editor-tab, .header-btn, .burger-btn {
        min-height: 44px;
    }
    .file-item:active {
        background-color: #333;
    }
    .header-btn:active, .burger-btn:active {
        opacity: 0.8;
    }
}

/* Unified modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none; }

.modal-box {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    width: 420px;
    max-width: calc(100% - 40px);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #4ade80;
    font-size: 16px;
    font-weight: 600;
}
.modal-header i { font-size: 20px; }

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-status {
    color: #e2e8f0;
    font-size: 15px;
    margin-bottom: 16px;
}

.modal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.modal-progress-bar {
    width: 280px;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    width: 0%;
    transition: width 200ms ease;
    border-radius: 5px;
}

.modal-progress-percent {
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
    min-width: 45px;
}

.modal-success-icon {
    color: #4ade80;
    font-size: 48px;
    margin: 10px 0;
}
.modal-success-icon.hidden { display: none; }

.modal-footer {
    margin-top: 20px;
}
.modal-footer.hidden { display: none; }

.modal-close-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.modal-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,222,128,0.4);
}

/* Archive modal styles */
.archive-modal-box {
    max-width: 420px;
}
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}
.archive-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.archive-item:hover {
    background: rgba(74,222,128,0.15);
    border-color: #4ade80;
}
.archive-item i {
    color: #4ade80;
    font-size: 18px;
}
.archive-item span {
    flex: 1;
    color: #e0e0e0;
    font-size: 14px;
}
.archive-item .archive-unpack-icon {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}
.archive-item:hover .archive-unpack-icon {
    color: #4ade80;
}
.archive-no-found {
    text-align: center;
    padding: 20px;
    color: #888;
}
.archive-no-found.hidden { display: none; }
.archive-no-found i {
    font-size: 40px;
    color: #ef4444;
    margin-bottom: 12px;
}
.archive-no-found p {
    margin: 8px 0;
    color: #ccc;
}
.archive-hint {
    font-size: 13px;
    color: #888 !important;
    line-height: 1.5;
}

/* Goto line modal styles */
.goto-modal-box {
    max-width: 320px;
}
.goto-input-container {
    margin: 15px 0;
}
.goto-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(74,222,128,0.3);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.goto-input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
}
.goto-input::placeholder {
    color: rgba(255,255,255,0.3);
}
.goto-input::-webkit-outer-spin-button,
.goto-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.goto-input[type=number] {
    -moz-appearance: textfield;
}
.goto-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 10px;
}
.goto-error.hidden { display: none; }
.goto-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.modal-cancel-btn {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}
.modal-cancel-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.modal-go-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.modal-go-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,222,128,0.4);
}

/* Legacy auth modal styles for compatibility */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auth-modal {
    background: #1f1f1f;
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid #333;
    color: #eaeaea;
    width: 420px;
    max-width: calc(100% - 40px);
    text-align: center;
}

.auth-modal h2 {
    margin-bottom: 12px;
}

.auth-status {
    margin-top: 8px;
    font-size: 14px;
    color: #cfcfcf;
}

.editor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-size: 18px;
    background: #1e1e1e;
}

.loading-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.progress-bar {
    width: 260px;
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#4caf50,#8bc34a);
    width: 0%;
    transition: width 300ms linear;
}

.progress-percent {
    min-width: 40px;
    text-align: right;
    color: #dcdcdc;
    font-size: 13px;
}

.hidden { display: none !important; }

/* Save progress - now uses unified .modal-overlay styles */

/* Compile overlay */
.compile-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.7); z-index:2000; backdrop-filter:blur(4px); }
.compile-overlay.hidden { display:none; }
.compile-modal { background:linear-gradient(145deg, #1a1a2e, #16213e); width:750px; max-width:calc(100% - 30px); border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05); overflow:hidden; }
.compile-header { display:flex; align-items:center; gap:10px; padding:16px 20px; background:rgba(0,0,0,0.3); border-bottom:1px solid rgba(255,255,255,0.1); color:#4ade80; font-size:16px; font-weight:600; }
.compile-header i { font-size:18px; }
.compile-log { height:400px; max-height:60vh; overflow-y:auto; padding:16px 20px; font-family:'Consolas','Monaco','Courier New',monospace; font-size:13px; line-height:1.6; color:#e2e8f0; background:#0d1117; text-align:left; white-space:pre-wrap; word-break:break-word; }
.compile-log::-webkit-scrollbar { width:8px; }
.compile-log::-webkit-scrollbar-track { background:#1a1a2e; }
.compile-log::-webkit-scrollbar-thumb { background:#4ade80; border-radius:4px; }
.compile-footer { padding:14px 20px; background:rgba(0,0,0,0.3); border-top:1px solid rgba(255,255,255,0.1); display:flex; justify-content:flex-end; }
.compile-close-btn { background:linear-gradient(135deg, #4ade80, #22c55e); color:#000; border:none; padding:10px 20px; border-radius:6px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:8px; transition:transform 0.15s, box-shadow 0.15s; }
.compile-close-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(74,222,128,0.4); }

/* ============================================
   FILE SYSTEM MANAGEMENT STYLES
   ============================================ */

/* FS Actions in category title */
.category-title {
  position: relative;
}

.fs-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.fs-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.fs-btn:hover {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

/* Item action buttons (delete, rename, extract) */
.item-actions {
  display: none;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

.all-files-folder-title:hover .item-actions,
.all-files-item:hover .item-actions {
  display: flex;
}

.item-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 10px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.2s;
}

.item-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.item-btn.delete:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.item-btn.extract:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

/* File System Modal Styles */
.fs-modal-box {
  width: 420px;
  max-width: calc(100% - 30px);
}

.fs-input-container {
  margin: 12px 0;
}

.fs-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.fs-input:focus {
  border-color: #4ade80;
}

.fs-path-info {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
  word-break: break-all;
}

.fs-error {
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.fs-footer {
  gap: 10px;
}

/* Upload Modal */
.upload-modal-box {
  max-width: 500px;
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 15px 0;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
}

.upload-area i {
  font-size: 40px;
  color: #4ade80;
  margin-bottom: 12px;
}

.upload-area p {
  color: #888;
  font-size: 14px;
}

.upload-area.has-file {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.upload-area.has-file p {
  color: #4ade80;
}

.upload-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.upload-select-btn {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-select-btn:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ade80;
  color: #4ade80;
}

.upload-files-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  max-height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.upload-files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #888;
}

.upload-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.upload-clear-btn:hover {
  color: #f87171;
}

.upload-files-list-content {
  overflow-y: auto;
  max-height: 150px;
  padding: 8px 0;
}

.upload-file-item {
  padding: 6px 12px;
  font-size: 12px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-item i {
  color: #4ade80;
  font-size: 11px;
  flex-shrink: 0;
}

.upload-file-item.folder i {
  color: #fbbf24;
}

.upload-progress-container {
  margin: 15px 0;
}

.upload-progress-total {
  margin-bottom: 12px;
}

.upload-progress-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.upload-current-file {
  color: #4ade80;
  font-family: 'Consolas', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.upload-progress-current {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-progress-current .progress-bar {
  flex: 1;
}

.upload-progress-current span {
  font-size: 12px;
  color: #888;
  min-width: 35px;
  text-align: right;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 4px;
  transition: width 0.3s;
  width: 0%;
}

/* Extract Modal */
.extract-dest-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.extract-dest-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.extract-dest-select:focus {
  border-color: #4ade80;
}

.extract-dest-select option {
  background: #1a1a2e;
  color: #fff;
}

.extract-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

/* Delete Modal */
.delete-header {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

.delete-header i {
  color: #ef4444;
}

.delete-path {
  font-family: 'Consolas', monospace;
  font-size: 13px;
  color: #f59e0b;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 0 15px;
  word-break: break-all;
}

.modal-delete-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
}

.modal-delete-btn:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Archive file icon */
.all-files-item[data-archive="true"] .fas {
  color: #f59e0b;
}

