/* Reset & Tool Workspace overrides */
.tool-workspace {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 70vh;
    min-height: 500px;
}

.toolbar {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.toolbar .btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.toolbar .btn i {
    margin-right: 0.4rem;
    font-size: 1.1rem;
}

.toolbar .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.toolbar .btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Specific Button Colors */
#btn-add, #btn-add-folder {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}
#btn-add:hover:not(:disabled), #btn-add-folder:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

#btn-clear {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}
#btn-clear:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

#btn-extract-all {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}
#btn-extract-all:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

#btn-password {
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.1);
    color: #d8b4fe;
}
#btn-password:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.explorer-layout {
    display: flex;
    gap: 1rem;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
    overflow-y: auto;
}

.tree-item {
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 2px;
}

.tree-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
}

.tree-item.active {
    background: var(--accent-primary);
    color: white;
}

.main-view {
    flex: 1;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.main-view.drag-active {
    border-color: var(--accent-primary);
    background: rgba(255,255,255,0.08);
}

.file-list-header {
    display: flex;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
}

.col-name { flex: 3; }
.col-size { flex: 1; }
.col-type { flex: 1; }

.file-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.file-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    align-items: center;
}

.file-item.is-file {
    cursor: pointer;
}

.file-item:hover {
    background: rgba(255,255,255,0.05);
}

.file-item i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--accent-secondary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.empty-state .drop-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.password-indicator {
    margin-left: auto;
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface-dark);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modern-input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: inherit;
    font-size: 1rem;
}

.modern-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.modal-actions .btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

#btn-modal-cancel {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}
#btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

#btn-modal-confirm {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
}
#btn-modal-confirm:hover {
    background: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 12px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
